mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +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 } {
|
export function getTexCmd(id: string): { cmd: string; options: ExecOptions } {
|
||||||
return {
|
return {
|
||||||
cmd: `pdflatex -interaction nonstopmode ${getDocPath(id)}`,
|
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