diff --git a/services/clsi/app/js/CompileManager.js b/services/clsi/app/js/CompileManager.js index 69aa1114db..3bd121fbce 100644 --- a/services/clsi/app/js/CompileManager.js +++ b/services/clsi/app/js/CompileManager.js @@ -131,6 +131,10 @@ function doCompile(request, callback) { // override default texlive openout_any environment variable 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) const isLaTeXFile = request.rootResourcePath != null diff --git a/services/clsi/config/settings.defaults.js b/services/clsi/config/settings.defaults.js index cd22f7bed4..a31e37dc3a 100644 --- a/services/clsi/config/settings.defaults.js +++ b/services/clsi/config/settings.defaults.js @@ -66,6 +66,7 @@ module.exports = { filestoreDomainOveride: process.env.FILESTORE_DOMAIN_OVERRIDE, texliveImageNameOveride: process.env.TEX_LIVE_IMAGE_NAME_OVERRIDE, texliveOpenoutAny: process.env.TEXLIVE_OPENOUT_ANY, + texliveMaxPrintLine: process.env.TEXLIVE_MAX_PRINT_LINE, sentry: { dsn: process.env.SENTRY_DSN, },