Merge pull request #4943 from overleaf/bg-increase-max-print-line

allow setting texlive max_print_line variable

GitOrigin-RevId: 7588fed6aa5868a6ed6b6121cbd6f9c008c2aa0f
This commit is contained in:
Brian Gough 2021-09-21 09:52:34 +01:00 committed by Copybot
parent 9e24affe7a
commit dc576f3b6f
2 changed files with 5 additions and 0 deletions

View file

@ -131,6 +131,10 @@ function doCompile(request, callback) {
// override default texlive openout_any environment variable // override default texlive openout_any environment variable
env.openout_any = Settings.texliveOpenoutAny env.openout_any = Settings.texliveOpenoutAny
} }
if (Settings.texliveMaxPrintLine && Settings.texliveMaxPrintLine !== '') {
// override default texlive max_print_line environment variable
env.max_print_line = Settings.texliveMaxPrintLine
}
// only run chktex on LaTeX files (not knitr .Rtex files or any others) // only run chktex on LaTeX files (not knitr .Rtex files or any others)
const isLaTeXFile = const isLaTeXFile =
request.rootResourcePath != null request.rootResourcePath != null

View file

@ -66,6 +66,7 @@ module.exports = {
filestoreDomainOveride: process.env.FILESTORE_DOMAIN_OVERRIDE, filestoreDomainOveride: process.env.FILESTORE_DOMAIN_OVERRIDE,
texliveImageNameOveride: process.env.TEX_LIVE_IMAGE_NAME_OVERRIDE, texliveImageNameOveride: process.env.TEX_LIVE_IMAGE_NAME_OVERRIDE,
texliveOpenoutAny: process.env.TEXLIVE_OPENOUT_ANY, texliveOpenoutAny: process.env.TEXLIVE_OPENOUT_ANY,
texliveMaxPrintLine: process.env.TEXLIVE_MAX_PRINT_LINE,
sentry: { sentry: {
dsn: process.env.SENTRY_DSN, dsn: process.env.SENTRY_DSN,
}, },