add setting TEXLIVE_OPENOUT_ANY

This commit is contained in:
Brian Gough
2020-06-04 11:47:22 +01:00
parent 0d44fb704b
commit 3e3e4503eb
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