mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-02 22:17:18 +01:00
set TEXMFLOCAL
This commit is contained in:
@@ -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'),
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user