texlive[47011] Master: auto-pst-pdf-lua (18mar18)
commits+karl at tug.org
commits+karl at tug.org
Sun Mar 18 22:51:29 CET 2018
Revision: 47011
http://tug.org/svn/texlive?view=revision&revision=47011
Author: karl
Date: 2018-03-18 22:51:28 +0100 (Sun, 18 Mar 2018)
Log Message:
-----------
auto-pst-pdf-lua (18mar18)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/libexec/ctan2tds
trunk/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/
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/
trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty
trunk/Master/tlpkg/tlpsrc/auto-pst-pdf-lua.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/Changes 2018-03-18 21:51:28 UTC (rev 47011)
@@ -0,0 +1,4 @@
+auto-pst-pdf-lua.sty ----------------
+
+v 0.01 2018-03-17 first CTAN version
+
Added: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README 2018-03-18 21:51:28 UTC (rev 47011)
@@ -0,0 +1,15 @@
+This package is a wrapper for package 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
+
+
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% 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.
Property changes on: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.pdf
===================================================================
(Binary files differ)
Index: 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.pdf 2018-03-18 18:14:18 UTC (rev 47010)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.pdf 2018-03-18 21:51:28 UTC (rev 47011)
Property changes on: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: 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 (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex 2018-03-18 21:51:28 UTC (rev 47011)
@@ -0,0 +1,71 @@
+\listfiles
+\documentclass[english]{article}
+
+\usepackage{pst-poker}
+\usepackage[cleanup={}]{auto-pst-pdf-lua}
+\ifpdf
+ \usepackage{fontspec}
+ \usepackage{dejavu-otf}
+\else
+ \usepackage[T1]{fontenc}
+ \usepackage[utf8]{inputenc}
+ \usepackage{dejavu}
+\fi
+
+\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}
+\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}.
+
+
+\section{The example code}
+
+\lstset{basicstyle=\ttfamily\small,language={[LaTeX]TeX},frame=lrtb}
+\begin{lstlisting}
+\documentclass{article}
+\usepackage{pst-poker}
+\usepackage{auto-pst-pdf-lua}
+\ifpdf
+ \usepackage{fontspec}
+ \usepackage{dejavu-otf}
+\else
+ \usepackage[T1]{fontenc}
+ \usepackage[utf8]{inputenc}
+ \usepackage{dejavu}
+\fi
+
+\begin{document}
+
+An example for using Luacode:
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+
+An example for PostScript code:
+
+\begin{postscript}
+\As \crdAs
+\end{postscript}
+\end{document}
+\end{lstlisting}
+
+\section{The output}
+
+And here comes the output when running with \verb|lualatex --shell-escape <file>|:
+
+
+An example for using Luacode:
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+
+An example for PostScript code:
+
+\begin{postscript}
+\As \crdAs
+\end{postscript}
+
+
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/auto-pst-pdf-lua/auto-pst-pdf-lua-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: 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 (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty 2018-03-18 21:51:28 UTC (rev 47011)
@@ -0,0 +1,176 @@
+%%
+%% This is file `auto-pst-pdf-lua.sty',
+%%
+%% Copyright (C) 2018 Herbert Voß
+%%
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% 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.
+%%
+%%
+\ProvidesPackage{auto-pst-pdf-lua}[2018/03/17 v0.01 Wrapper for auto-pst-pdf-lua]
+\RequirePackage{ifpdf,xkeyval,ifplatform}
+\newif\if at app@off@
+\newif\if at app@crop@
+\newcounter{app at runs}
+\def\app at suffix{autopp}
+\edef\app at jobname{\jobname-\app at suffix}
+\edef\app at pics{\jobname-pics.pdf}
+\DeclareOptionX{off}[]{\@app at off@true}
+\define at choicekey{auto-pst-pdf-lua.sty}{crop}[\@tempa\@tempb]{on,off}{%
+ \ifcase\@tempb\relax
+ \@app at crop@true
+ \or
+ \@app at crop@false
+ \fi}
+\DeclareOptionX{on}[]{\@app at off@false}
+\DeclareOptionX{ext}{\def\app at ext{#1}}
+\DeclareOptionX{latex}{%
+ \def\app at latex@opts{%
+ \ifwindows
+ -disable-write18
+ \else
+ -no-shell-escape
+ \fi
+ -jobname="\app at jobname"
+ -interaction=batchmode
+ #1}}
+\DeclareOptionX{dvips}{\def\app at dvips@opts{#1}}
+\DeclareOptionX{pspdf}{\def\app at pspdf@opts{#1}}
+\DeclareOptionX{pdfcrop}{\def\app at pdfcrop@opts{#1}}
+
+\DeclareOptionX{cleanup}{%
+ \let\app at rm@files\@empty
+ \@for\@ii:=#1\do{%
+ \edef\app at rm@files{\app at rm@files,\app at jobname.\@ii}}}
+
+\DeclareOptionX{runs}{%
+ \setcounter{app at runs}{#1}% support calc
+ \ifnum\c at app@runs > \z@
+ \else
+ \app at PackageWarning{The number of runs must be at least one.}%
+ \c at app@runs\@ne
+ \fi}
+
+\DeclareOptionX*{\PassOptionsToPackage{\CurrentOption}{pst-pdf-lua}}
+
+\ExecuteOptionsX{%
+ ext=tex,
+ crop=on,
+ latex={},
+ dvips={-Ppdf},
+ pdfcrop={},
+ cleanup={log,aux,dvi,ps,pdf},
+ runs=1
+}
+\ifwindows
+ \ExecuteOptionsX{pspdf={}}
+\else
+ \ExecuteOptionsX{pspdf={-dAutoRotatePages=/None}}
+\fi
+\ProcessOptionsX
+\def\app at exe{\immediate\write18}
+\def\app at nl{^^J\space\space\space\space}
+\newcommand\app at PackageError[2]{%
+ \PackageError{auto-pst-pdf-lua}{\app at nl #1^^J}{#2}}
+\newcommand\app at PackageWarning[1]{%
+ \PackageWarning{auto-pst-pdf-lua}{\app at nl #1^^JThis warning occured}}
+\newcommand\app at PackageInfo[1]{\PackageInfo{auto-pst-pdf-lua}{#1}}
+\newcommand\OnlyIfFileExists[2]{\IfFileExists{#1}{#2}{}}
+\newcommand\NotIfFileExists[2]{\IfFileExists{#1}{}{#2}}
+\def\app at convert#1#2#3{%
+ \OnlyIfFileExists{#2}{%
+ \app at exe{\csname app at cmd@#1\endcsname{#2}{#3}}%
+ \NotIfFileExists{#3}{\app at PackageWarning{Creation of #3 failed.}}}}
+\def\app at compile{%
+ \app at cleanup
+ \app at remove@container
+ \loop\ifnum\c at app@runs > \@ne
+ \app at convert{extralatex}{\jobname.\app at ext}{\app at jobname.dvi}%
+ \advance\c at app@runs\m at ne
+ \repeat
+ \app at convert{latex}{\jobname.\app at ext}{\app at jobname.dvi}%
+ \app at convert{dvips}{\app at jobname.dvi}{\app at jobname.ps}%
+ \if at app@crop@
+ \app at convert{pstopdf}{\app at jobname.ps}{\app at jobname.pdf}%
+ \app at convert{pdfcrop}{\app at jobname.pdf}{\app at pics}%
+ \else
+ \app at convert{pstopdf}{\app at jobname.ps}{\app at pics}%
+ \fi
+ \IfFileExists{\app at pics}
+ {\app at cleanup}
+ {\app at PackageWarning{Could not create \app at pics.
+ Auxiliary files not deleted.}}}
+\edef\app at rm{\ifwindows del \else rm -- \fi}
+\newcommand\app at try@rm[1]{%
+ \@for\@tempa:=#1\do{%
+ \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"}
+\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"}
+\ifpdf
+ \if at app@off@\else
+ \ifshellescape
+ \app at exe{echo " "}
+ \app at exe{echo "-------------------------------------------------"}
+ \app at exe{echo "auto-pst-pdf-lua: Auxiliary LaTeX compilation"}
+ \app at exe{echo "-------------------------------------------------"}
+ \app at compile
+ \app at exe{echo "-------------------------------------------------"}
+ \app at exe{echo "auto-pst-pdf-lua: End auxiliary LaTeX compilation"}
+ \app at exe{echo "-------------------------------------------------"}
+ \else
+ \app at PackageError{%
+ "shell escape" (or "write18") is not enabled:\app at nl
+ auto-pst-pdf-lua will not work!}
+ {You need to run LaTeX with the equivalent of
+ "lualatex -shell-escape"\app at nl
+ Or turn off auto-pst-pdf-lua.}%
+ \fi
+ \fi
+ \if at app@crop@
+ \PassOptionsToPackage{notightpage}{pst-pdf}
+ \fi
+\else
+ \ifx\APPmakepictures\@undefined
+ \PassOptionsToPackage{inactive}{pst-pdf}
+ \else
+ \if at app@crop@
+ \PassOptionsToPackage{notightpage}{pst-pdf}
+ \fi
+ \fi
+\fi
+\RequirePackage{pst-pdf}
+\let\app at ig\includegraphics
+\newcommand\matlabfig[2][]{%
+ \begin{postscript}
+ \renewcommand\resizebox[3]{##3}%
+ \renewcommand\includegraphics[2][]{\app at ig[#1]{##2}}%
+ \input{#2}%
+ \end{postscript}}
+\newcommand\mathfig[2][]{%
+ \begin{postscript}
+ \input{#2-psfrag}%
+ \includegraphics[#1]{#2-psfrag}%
+ \end{postscript}}
+\newcommand\psfragfig[2][]{%
+ \@ifnextchar[
+ {\app at psfragfig[#1]{#2}}
+ {\app at psfragfig[#1]{#2}[]}}
+\def\app at psfragfig[#1]#2[#3]{%
+ \begin{postscript}
+ \InputIfFileExists{#2-psfrag}{}{}%
+ #3
+ \includegraphics[#1]{#2}%
+ \end{postscript}}
+\InputIfFileExists{\jobname-psfrag}{}{}
Property changes on: trunk/Master/texmf-dist/tex/latex/auto-pst-pdf-lua/auto-pst-pdf-lua.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-03-18 18:14:18 UTC (rev 47010)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-03-18 21:51:28 UTC (rev 47011)
@@ -51,7 +51,8 @@
assignment assoccnt astro asyfig
asymptote-faq-zh-cn asymptote-by-example-zh-cn asymptote-manual-zh-cn
asypictureb attachfile
- aucklandthesis augie auncial-new aurical aurl autobreak autopdf
+ aucklandthesis augie auncial-new aurical aurl
+ auto-pst-pdf-lua autobreak autopdf
authoraftertitle authorarchive authorindex
auto-pst-pdf autoaligne autoarea automata autonum autosp avantgar avremu
awesomebox axodraw2
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds 2018-03-18 18:14:18 UTC (rev 47010)
+++ trunk/Master/tlpkg/libexec/ctan2tds 2018-03-18 21:51:28 UTC (rev 47011)
@@ -134,6 +134,7 @@
'augie', "&MAKEaugie",
'aurical', "&MAKEaurical",
'aurora', "die 'skipping, nocommercial license'",
+ 'auto-pst-pdf-lua', "&MAKEflatten",
'auto1', "die 'skipping, nonfree font support'",
'autolatex', "die 'skipping, not self-locating'",
'autotab', "die 'skipping, noinfo license, latex 2.09'",
Added: trunk/Master/tlpkg/tlpsrc/auto-pst-pdf-lua.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc 2018-03-18 18:14:18 UTC (rev 47010)
+++ trunk/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc 2018-03-18 21:51:28 UTC (rev 47011)
@@ -5,6 +5,7 @@
#
depend collection-basic
#
+depend auto-pst-pdf-lua
depend checkcites
depend chickenize
depend combofont
More information about the tex-live-commits
mailing list