From 1166be27a287015a471154b2bee3f8197578e24e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 20 May 2018 21:30:42 +0000 Subject: thucoursework (20may18) git-svn-id: svn://tug.org/texlive/trunk@47781 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/pdflatex-preserve-pdf | 12 +++++++++++- Master/tlpkg/libexec/ctan2tds | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'Master/tlpkg') diff --git a/Master/tlpkg/bin/pdflatex-preserve-pdf b/Master/tlpkg/bin/pdflatex-preserve-pdf index f9d70b1e571..befbc364301 100755 --- a/Master/tlpkg/bin/pdflatex-preserve-pdf +++ b/Master/tlpkg/bin/pdflatex-preserve-pdf @@ -15,8 +15,18 @@ # Authors are sometimes responsive to supporting an alternate method for # running the dtx that does not remake the doc (e.g., \ifpdf), but not # always. So we need this workaround. +# +# With a first arg --engine, the second arg is the name of the program +# to invoke, instead of pdflatex. + +if test x"$1" = x--engine; then + shift + engine=$1; shift +else + engine=pdflatex +fi basefile=`echo "$1" | sed 's/\.[^.]*$//'` mv "$basefile.pdf" save.pdf -pdflatex "$@" +$engine "$@" 'latex', # interaction for .pl 'teubner' => 'latex', # interaction 'termlist' => 'tex', # interaction for .pl + 'thucoursework' => 'pdflatex-preserve-pdf --engine xelatex', 'thumb' => 'latex -translate-file=empty.tcx', # no 8-bit 'tikz-page' => 'tex -8bit', # no doc remake, 8-bit name 'todonotes' => 'latex', # requires interaction -- cgit v1.2.3