texlive[47028] Master/texmf-dist: auto-pst-pdf-lua (19mar18)
commits+karl at tug.org
commits+karl at tug.org
Mon Mar 19 22:48:26 CET 2018
Revision: 47028
http://tug.org/svn/texlive?view=revision&revision=47028
Author: karl
Date: 2018-03-19 22:48:26 +0100 (Mon, 19 Mar 2018)
Log Message:
-----------
auto-pst-pdf-lua (19mar18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes
trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README
trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.pdf
trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex
trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty
Modified: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes 2018-03-19 21:47:57 UTC (rev 47027)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes 2018-03-19 21:48:26 UTC (rev 47028)
@@ -1,4 +1,5 @@
auto-pst-pdf-lua.sty ----------------
+v 0.02 2018-03-19 added test for luatex run
v 0.01 2018-03-17 first CTAN version
Modified: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README 2018-03-19 21:47:57 UTC (rev 47027)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README 2018-03-19 21:48:26 UTC (rev 47028)
@@ -1,9 +1,9 @@
-This package is a wrapper for package auto-pst-pdf
-from Will Robertson which itself is a wrapper
-for pst-pdf from Rolf Niepraschk.
+This package is a slightly modified version of auto-pst-pdf
+from Will Robertson which itself is a wrapper for pst-pdf
+from Rolf Niepraschk.
auto.pst-pdf-lua allows the use of lualatex
-tohether with PostScript related code, eg. PSTricks
+together with PostScript related code, eg. PSTricks
%% It may be distributed and/or modified under the
@@ -13,3 +13,6 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
+
+
+Herbert Voß, hvoss at tug.org
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex 2018-03-19 21:47:57 UTC (rev 47027)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex 2018-03-19 21:48:26 UTC (rev 47028)
@@ -15,13 +15,14 @@
\usepackage{babel}
\usepackage[a4paper,tmargin=1cm,bmargin=1.5cm,includeheadfoot]{geometry}
\usepackage{listings}
-\title{\texttt{auto-pst-pdf-lua}, v. 0.01\\ using Lua\LaTeX\ with PSTricks}
+\title{\texttt{auto-pst-pdf-lua}, v. 0.02\\ using Lua\LaTeX\ with PSTricks}
\author{Herbert Voß}
\begin{document}
\maketitle
The package is based on \texttt{auto-pst-pdf} and uses for the \texttt{latex} run the
-program \texttt{dvilualatex}.
+program \texttt{dvilualatex}. The package can have all optional arguments which are
+possible for \texttt{auto-pst-pdf}.
\section{The example code}
@@ -47,8 +48,9 @@
An example for PostScript code:
+\bigskip
\begin{postscript}
-\As \crdAs
+\As~\Ad~\Ac~\Ah~\crdAs~\crdAd~\crdAc~\crdAh
\end{postscript}
\end{document}
\end{lstlisting}
@@ -63,9 +65,28 @@
An example for PostScript code:
+\bigskip
\begin{postscript}
-\As \crdAs
+\As~\Ad~\Ac~\Ah~\crdAs~\crdAd~\crdAc~\crdAh
\end{postscript}
+\section{Caveats}
+
+When running \texttt{dvilualatex} the package \texttt{fontspec} cannot be active. If you
+need it, then just just the \texttt{\textbackslash ifpdf} switch:
+
+\begin{verbatim}
+\ifpdf
+ \usepackage{fontspec}%% for the lualatex run(s)
+ \usepackage{dejavu-otf}
+\else
+ \usepackage[T1]{fontenc}% for the dvilualatex run
+ \usepackage[utf8]{inputenc}
+ \usepackage{dejavu}
+\fi
+\end{verbatim}
+
+
+
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty 2018-03-19 21:47:57 UTC (rev 47027)
+++ trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty 2018-03-19 21:48:26 UTC (rev 47028)
@@ -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 at app@off@
\newif\if at app@crop@
\newcounter{app at 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 at exe{\app at rm "\@tempa"}}}}
\def\app at remove@container{\app at try@rm{\app at pics}}
\def\app at cleanup{\app at try@rm{\app at rm@files}}
-\def\app at cmd@latex#1#2{dvilualatex \app at latex@opts\space
- "\unexpanded{\let\APPmakepictures\empty\input} #1"}
-\def\app at cmd@extralatex#1#2{dvilualatex \app at latex@opts\space
- "\unexpanded{\let\APPmakepictures\undefined\input} #1"}
+\ifluatex
+ \def\app at cmd@latex#1#2{dvilualatex \app at latex@opts\space
+ "\unexpanded{\let\APPmakepictures\empty\input} #1"}
+ \def\app at cmd@extralatex#1#2{dvilualatex \app at latex@opts\space
+ "\unexpanded{\let\APPmakepictures\undefined\input} #1"}
+\else
+ \def\app at cmd@latex#1#2{latex \app at latex@opts\space
+ "\unexpanded{\let\APPmakepictures\empty\input} #1"}
+ \def\app at cmd@extralatex#1#2{latex \app at latex@opts\space
+ "\unexpanded{\let\APPmakepictures\undefined\input} #1"}
+\fi
\def\app at cmd@dvips#1#2{dvips \app at dvips@opts\space -o "#2" "#1"}
\def\app at cmd@pstopdf#1#2{ps2pdf \app at pspdf@opts\space "#1" "#2"}
\def\app at cmd@pdfcrop#1#2{pdfcrop \app at pdfcrop@opts\space "#1" "#2"}
More information about the tex-live-commits
mailing list