From d1c302ed5a53246283181ec1ab9a537ec5a6959e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 19 Mar 2018 21:48:26 +0000 Subject: auto-pst-pdf-lua (19mar18) git-svn-id: svn://tug.org/texlive/trunk@47028 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty | 29 ++++++++++++++++------ 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/auto-pst-pdf-lua') diff --git a/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty b/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty index 00c156c7766..bae13851734 100644 --- a/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty +++ b/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty @@ -1,7 +1,8 @@ %% -%% This is file `auto-pst-pdf-lua.sty', +%% This is file `auto-pst-pdf-lua.sty', a modified version of +%% auto-pst-pdf from Will Robertson %% -%% Copyright (C) 2018 Herbert Voß +%% Copyright (C) 2018 Herbert Voss %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c @@ -12,8 +13,8 @@ %% version 2005/12/01 or later. %% %% -\ProvidesPackage{auto-pst-pdf-lua}[2018/03/17 v0.01 Wrapper for auto-pst-pdf-lua] -\RequirePackage{ifpdf,xkeyval,ifplatform} +\ProvidesPackage{auto-pst-pdf-lua}[2018/03/17 v0.02 using auto-pst-pdf for LuaLaTeX] +\RequirePackage{ifpdf,xkeyval,ifplatform,ifluatex} \newif\if@app@off@ \newif\if@app@crop@ \newcounter{app@runs} @@ -67,6 +68,11 @@ cleanup={log,aux,dvi,ps,pdf}, runs=1 } +\ifluatex\else + \PackageWarning{auto-pst-pdf-lua}% + {^^J No LuaTeX running! + ^^J Package auto-pst-pdf-lua falls back to auto-pst-pdf!}% +\fi \ifwindows \ExecuteOptionsX{pspdf={}} \else @@ -111,10 +117,17 @@ \OnlyIfFileExists{\@tempa}{\app@exe{\app@rm "\@tempa"}}}} \def\app@remove@container{\app@try@rm{\app@pics}} \def\app@cleanup{\app@try@rm{\app@rm@files}} -\def\app@cmd@latex#1#2{dvilualatex \app@latex@opts\space - "\unexpanded{\let\APPmakepictures\empty\input} #1"} -\def\app@cmd@extralatex#1#2{dvilualatex \app@latex@opts\space - "\unexpanded{\let\APPmakepictures\undefined\input} #1"} +\ifluatex + \def\app@cmd@latex#1#2{dvilualatex \app@latex@opts\space + "\unexpanded{\let\APPmakepictures\empty\input} #1"} + \def\app@cmd@extralatex#1#2{dvilualatex \app@latex@opts\space + "\unexpanded{\let\APPmakepictures\undefined\input} #1"} +\else + \def\app@cmd@latex#1#2{latex \app@latex@opts\space + "\unexpanded{\let\APPmakepictures\empty\input} #1"} + \def\app@cmd@extralatex#1#2{latex \app@latex@opts\space + "\unexpanded{\let\APPmakepictures\undefined\input} #1"} +\fi \def\app@cmd@dvips#1#2{dvips \app@dvips@opts\space -o "#2" "#1"} \def\app@cmd@pstopdf#1#2{ps2pdf \app@pspdf@opts\space "#1" "#2"} \def\app@cmd@pdfcrop#1#2{pdfcrop \app@pdfcrop@opts\space "#1" "#2"} -- cgit v1.2.3