summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/pst-exa/Changes1
-rw-r--r--Master/texmf-dist/doc/latex/pst-exa/README12
-rw-r--r--Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty97
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/pst-exa.tlpsrc0
6 files changed, 112 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/pst-exa/Changes b/Master/texmf-dist/doc/latex/pst-exa/Changes
new file mode 100644
index 00000000000..83ecb654995
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pst-exa/Changes
@@ -0,0 +1 @@
+0.01 2010-01-01 first CTAN version \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pst-exa/README b/Master/texmf-dist/doc/latex/pst-exa/README
new file mode 100644
index 00000000000..49344318b9a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pst-exa/README
@@ -0,0 +1,12 @@
+The package \LPack{pst-exa} was created to realize examples with printed code and output
+side by side or on top of each other. The package looks in the image directory for the source
+code of the examples and inserts only the code between the environment \Lenv{document},
+which is the sequence \LBEG{document} \ldots\ \LEND{document}.
+
+The package provides the environment \Lenv{PSTexample} with the optional
+arguments. For more information read the documentation of pst2pdf.
+
+Using pst-exa makes only sense together with the Perl script pst2pdf, which
+allows the use of Postscript code and running the document in pdf mode.
+
+2010-01-04 \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty b/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty
new file mode 100644
index 00000000000..1fec2902c89
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty
@@ -0,0 +1,97 @@
+% $Id: pst-exa.sty 239 2010-01-01 17:23:13Z herbert $
+%% BEGIN pst-exa.tex
+%%
+%% Code and image side by side or on top of
+%% each other with PSTricks.
+%%
+%% COPYRIGHT 2010 by Herbert Voss, hvoss tug.org.
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt.
+%%
+%
+\NeedsTeXFormat{LaTeX2e}
+\RequirePackage{graphicx}
+\RequirePackage{listings}
+\RequirePackage{pst-xkey}
+\def\fileversion{0.01}
+\def\filedate{2010/01/01}
+%
+\ProvidesPackage{pst-exa}[\filedate\ v\fileversion\ PSTricks example code (hv)]
+
+\lstset{basicstyle=\ttfamily\footnotesize,numbers=left,numbersep=0.5pt,
+ xleftmargin=1em,
+ numberstyle=\tiny,breaklines,
+ language=PSTricks}
+\pst@addfams{pst-exa}
+\define@key[psset]{pst-exa}{pos}[l]{%
+ \ifx#1l\def\psk@exa@pos{0}
+ \else
+ \ifx#1r\def\psk@exa@pos{1}
+ \else
+ \ifx#1b\def\psk@exa@pos{2}
+ \else \def\psk@exa@pos{3}
+ \fi\fi\fi}
+\psset[pst-exa]{pos=l}
+\define@key[psset]{pst-exa}{halign}[c]{\def\psk@exa@halign{#1}}
+\psset[pst-exa]{halign=c}
+\define@key[psset]{pst-exa}{valign}[c]{\def\psk@exa@valign{#1}}
+\psset[pst-exa]{valign=c}
+\define@key[psset]{pst-exa}{frame}[{}]{\def\psk@exa@frame{#1}}
+\psset[pst-exa]{frame=}
+\newlength\pst@exa@width
+\define@key[psset]{pst-exa}{width}[0.5\linewidth]{\pssetlength\pst@exa@width{#1}}
+\psset[pst-exa]{width=0.5\linewidth}
+\newlength\pst@exa@sep
+\define@key[psset]{pst-exa}{sep}[1em]{\pssetlength\pst@exa@sep{#1}}
+\psset[pst-exa]{sep=1em}
+%
+\def\PSTfilename@i#1.#2.#3\@nil{\xdef\PSTfilename{#1.#2.tex}}%
+%
+\providecommand\IncludeGraphics[2][]{}
+\renewcommand\IncludeGraphics[2][]{%
+ \expandafter\PSTfilename@i#2\@nil%
+ \includegraphics[#1]{#2}}
+%
+\newenvironment{PSTexample}[1][]
+ {\par\noindent\psset{#1}%
+ \begin{lrbox}{\pst@hbox}}
+ {\end{lrbox}%
+ \ifcase\psk@exa@pos
+ \minipage{\pst@exa@width}%
+ \ifdim\wd\pst@hbox<\linewidth\usebox\pst@hbox%
+ \else\resizebox{\linewidth}{!}{\usebox\pst@hbox}\fi
+ \endminipage\kern\pst@exa@sep%
+ \pst@dimm=\linewidth%
+ \advance\pst@dimm by -\pst@exa@width%
+ \advance\pst@dimm by -\pst@exa@sep%
+ \minipage{\pst@dimm}%
+ \lstinputlisting[includerangemarker=false,firstnumber=1,
+ linerange=\\begin\{document\}-\\end\{document\}]{\PSTfilename}
+ \endminipage%
+ \or
+ \pst@dimm=\linewidth%
+ \advance\pst@dimm by -\pst@exa@width
+ \advance\pst@dimm by -\pst@exa@sep
+ \minipage{\pst@dimm}%
+ \lstinputlisting[includerangemarker=false,firstnumber=1,
+ linerange=\\begin\{document\}-\\end\{document\}]{\PSTfilename}
+ \endminipage\kern\pst@exa@sep%
+ \minipage{\pst@exa@width}%
+ \ifdim\wd\pst@hbox<\linewidth\usebox\pst@hbox%
+ \else\resizebox{\linewidth}{!}{\usebox\pst@hbox}\fi
+ \endminipage
+ \or
+ \lstinputlisting[includerangemarker=false,firstnumber=1,
+ linerange=\\begin\{document\}-\\end\{document\}]{\PSTfilename}
+ \par\vskip\pst@exa@sep%
+ \usebox\pst@hbox\par
+ \or
+ \usebox\pst@hbox\par
+ \vskip\pst@exa@sep%
+ \lstinputlisting[includerangemarker=false,firstnumber=1,
+ linerange=\\begin\{document\}-\\end\{document\}]{\PSTfilename}\par
+ \fi}
+%
+\endinput \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 3bfa1d3e775..f8f3dc85506 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -210,7 +210,7 @@ my @WorkingTLP = qw(
pst-2dplot pst-3d pst-3dplot pst-abspos pst-am pst-asr pst-bar
pst-barcode pst-bezier pst-blur pst-bspline
pst-calendar pst-circ pst-cox pst-dbicons pst-diffraction
- pst-eps pst-eucl pst-fill
+ pst-eps pst-eucl pst-exa pst-fill
pst-fr3d pst-fractal pst-fun pst-func
pst-gantt pst-geo pst-grad pst-infixplot pst-jtree pst-knot pst-labo
pst-lens pst-light3d pst-math pst-mirror
diff --git a/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc b/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
index 077a813cf54..9d7d6e8d26a 100644
--- a/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
@@ -24,6 +24,7 @@ depend pst-dbicons
depend pst-diffraction
depend pst-eps
depend pst-eucl
+depend pst-exa
depend pst-fill
depend pst-fr3d
depend pst-fractal
diff --git a/Master/tlpkg/tlpsrc/pst-exa.tlpsrc b/Master/tlpkg/tlpsrc/pst-exa.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/pst-exa.tlpsrc