Merge pull request #173 from overleaf/bg-openout-any

add setting TEXLIVE_OPENOUT_ANY
This commit is contained in:
Brian Gough 2020-06-08 09:03:05 +01:00 committed by GitHub
commit 8464ce33a1
2 changed files with 5 additions and 0 deletions

View file

@ -142,6 +142,10 @@ module.exports = CompileManager = {
)
// set up environment variables for chktex
const env = {}
if (Settings.texliveOpenoutAny && Settings.texliveOpenoutAny !== '') {
// override default texlive openout_any environment variable
env.openout_any = Settings.texliveOpenoutAny
}
// only run chktex on LaTeX files (not knitr .Rtex files or any others)
const isLaTeXFile =
request.rootResourcePath != null

View file

@ -57,6 +57,7 @@ module.exports = {
parallelSqlQueryLimit: process.env.FILESTORE_PARALLEL_SQL_QUERY_LIMIT || 1,
filestoreDomainOveride: process.env.FILESTORE_DOMAIN_OVERRIDE,
texliveImageNameOveride: process.env.TEX_LIVE_IMAGE_NAME_OVERRIDE,
texliveOpenoutAny: process.env.TEXLIVE_OPENOUT_ANY,
sentry: {
dsn: process.env.SENTRY_DSN
}