set TEXMFLOCAL

This commit is contained in:
Thomas Ruoff
2021-11-24 00:18:56 +01:00
parent 2e0c974ce2
commit 3d9d9dd03a

View File

@@ -16,6 +16,12 @@ export function getPdfPath(id: string) {
export function getTexCmd(id: string): { cmd: string; options: ExecOptions } {
return {
cmd: `pdflatex -interaction nonstopmode ${getDocPath(id)}`,
options: { cwd: getDirPath(id) },
options: {
cwd: getDirPath(id),
env: {
...process.env,
TEXMFHOME: path.join(process.cwd(), 'texmf'),
}
},
}
}