mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-29 19:20:39 +02:00
pre
This commit is contained in:
@@ -83,15 +83,17 @@ export default async function latexToSVG(latex, chapter, localeStrings, block) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Finally: run the conversion
|
// Finally: run the conversion
|
||||||
console.log(
|
process.stdout.write(
|
||||||
`- running xelatex for block [${chapter}:${locale}:${block}] (${hash}.tex)`
|
`- running xelatex for block [${chapter}:${locale}:${block}] (${hash}.tex): `
|
||||||
);
|
);
|
||||||
|
try {
|
||||||
runCmd(
|
runCmd(
|
||||||
`xelatex -output-directory "${path.dirname(
|
`xelatex -output-directory "${path.dirname(
|
||||||
TeXfilename
|
TeXfilename
|
||||||
)}" "${TeXfilename}"`,
|
)}" "${TeXfilename}"`,
|
||||||
hash
|
hash
|
||||||
);
|
);
|
||||||
|
console.log(`✓`);
|
||||||
|
|
||||||
process.stdout.write(` - cropping PDF to document content: `);
|
process.stdout.write(` - cropping PDF to document content: `);
|
||||||
try {
|
try {
|
||||||
@@ -119,6 +121,10 @@ export default async function latexToSVG(latex, chapter, localeStrings, block) {
|
|||||||
console.log(`✕`);
|
console.log(`✕`);
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log(`✕`);
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we hardcode the size of this LaTeX SVG image, because we absolutely
|
// Make sure we hardcode the size of this LaTeX SVG image, because we absolutely
|
||||||
|
Reference in New Issue
Block a user