Skip to content

Commit 1f2dd1e

Browse files
committed
One last attempt to hack latexmkrc
1 parent 9fea020 commit 1f2dd1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/latex/latexmkrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
$latex = 'xelatex --no-pdf ' . $ENV{'LATEXOPTS'} . ' %O %S';
2-
$pdflatex = 'echo "using custom latexmkrc"; for f in *.tex_; do xelatex -jobname="${f%.*}" -interaction=nonstopmode -recorder "$f"; done; xelatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
2+
$pdflatex = 'echo "using custom latexmkrc"; '
3+
. 'for f in *.tex_; do xelatex -jobname="${f%.*}" -interaction=nonstopmode -recorder "$f"; done; '
4+
. 'xelatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
35
$lualatex = 'lualatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
46
$xelatex = 'xelatex --no-pdf ' . $ENV{'LATEXOPTS'} . ' %O %S';
57
$makeindex = 'makeindex -s python.ist %O -o %D %S';
68
add_cus_dep( "glo", "gls", 0, "makeglo" );
79
sub makeglo {
810
return system( "makeindex -s gglo.ist -o '$_[0].gls' '$_[0].glo'" );
911
}
12+
$success_cmd = 'if [ -n "$READTHEDOCS" ]; then echo "moving PDFs"; '
13+
. 'for f in *.tex_; '
14+
. 'do mv -f "${f%.*}.pdf" "/home/docs/checkouts/readthedocs.org/user_builds/mdtf-diagnostics/artifacts/latest/sphinx_pdf/${f%.*}.pdf"; '
15+
. 'done; fi'

0 commit comments

Comments
 (0)