Spaces:
Sleeping
Sleeping
Push Bot
commited on
Commit
·
70ffa8e
1
Parent(s):
c68d808
Force XeLaTeX via latexmk -pdf -pdflatex=xelatex (keep -f and nonstop)
Browse files
app.py
CHANGED
|
@@ -435,12 +435,12 @@ def _compile_poster_pdf(OUTPUT_DIR: Path, logs):
|
|
| 435 |
pretex = r"\nonstopmode\scrollmode\makeatletter\let\pgf@error\pgf@warning\let\GenericError\GenericWarning\let\PackageError\PackageWarning\makeatother"
|
| 436 |
if _has("latexmk"):
|
| 437 |
cmd = [
|
| 438 |
-
"latexmk", "-
|
| 439 |
"-interaction=nonstopmode", "-file-line-error",
|
| 440 |
f"-pretex={pretex}",
|
| 441 |
tex_path.name,
|
| 442 |
]
|
| 443 |
-
logs.append("▶ Compiling with latexmk (-xelatex
|
| 444 |
elif _has("xelatex"):
|
| 445 |
# Inject pretex macros via direct input to engine (no file mutation)
|
| 446 |
injected = pretex + f"\\input{{{tex_path.name}}}"
|
|
@@ -511,12 +511,12 @@ def _compile_tex_to_pdf(tex_path: Path, logs):
|
|
| 511 |
pretex = r"\nonstopmode\scrollmode\makeatletter\let\pgf@error\pgf@warning\let\GenericError\GenericWarning\let\PackageError\PackageWarning\makeatother"
|
| 512 |
if _has("latexmk"):
|
| 513 |
cmd = [
|
| 514 |
-
"latexmk", "-
|
| 515 |
"-interaction=nonstopmode", "-file-line-error",
|
| 516 |
f"-pretex={pretex}",
|
| 517 |
tex_path.name,
|
| 518 |
]
|
| 519 |
-
logs.append("▶ Compiling with latexmk (-xelatex
|
| 520 |
elif _has("xelatex"):
|
| 521 |
injected = pretex + f"\\input{{{tex_path.name}}}"
|
| 522 |
cmd = ["xelatex", "-interaction=nonstopmode", "-file-line-error", injected]
|
|
|
|
| 435 |
pretex = r"\nonstopmode\scrollmode\makeatletter\let\pgf@error\pgf@warning\let\GenericError\GenericWarning\let\PackageError\PackageWarning\makeatother"
|
| 436 |
if _has("latexmk"):
|
| 437 |
cmd = [
|
| 438 |
+
"latexmk", "-pdf", "-pdflatex=xelatex", "-f",
|
| 439 |
"-interaction=nonstopmode", "-file-line-error",
|
| 440 |
f"-pretex={pretex}",
|
| 441 |
tex_path.name,
|
| 442 |
]
|
| 443 |
+
logs.append("▶ Compiling with latexmk (-pdf -pdflatex=xelatex -f, pretex demote errors) …")
|
| 444 |
elif _has("xelatex"):
|
| 445 |
# Inject pretex macros via direct input to engine (no file mutation)
|
| 446 |
injected = pretex + f"\\input{{{tex_path.name}}}"
|
|
|
|
| 511 |
pretex = r"\nonstopmode\scrollmode\makeatletter\let\pgf@error\pgf@warning\let\GenericError\GenericWarning\let\PackageError\PackageWarning\makeatother"
|
| 512 |
if _has("latexmk"):
|
| 513 |
cmd = [
|
| 514 |
+
"latexmk", "-pdf", "-pdflatex=xelatex", "-f",
|
| 515 |
"-interaction=nonstopmode", "-file-line-error",
|
| 516 |
f"-pretex={pretex}",
|
| 517 |
tex_path.name,
|
| 518 |
]
|
| 519 |
+
logs.append("▶ Compiling with latexmk (-pdf -pdflatex=xelatex -f, pretex demote errors) …")
|
| 520 |
elif _has("xelatex"):
|
| 521 |
injected = pretex + f"\\input{{{tex_path.name}}}"
|
| 522 |
cmd = ["xelatex", "-interaction=nonstopmode", "-file-line-error", injected]
|