summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/auto-pst-pdf-lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-03-19 21:48:26 +0000
committerKarl Berry <karl@freefriends.org>2018-03-19 21:48:26 +0000
commitd1c302ed5a53246283181ec1ab9a537ec5a6959e (patch)
treef04f6d143b61f2ea7062fda4bd088742b439302a /Master/texmf-dist/tex/latex/auto-pst-pdf-lua
parente9d014b9f582dae216b9085123ce1a17286f2230 (diff)
auto-pst-pdf-lua (19mar18)
git-svn-id: svn://tug.org/texlive/trunk@47028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/auto-pst-pdf-lua')
-rw-r--r--Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty29
1 files changed, 21 insertions, 8 deletions
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"}