diff options
author | Karl Berry <karl@freefriends.org> | 2014-09-24 21:44:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-09-24 21:44:18 +0000 |
commit | 3e6ef3ef642cc8eba3862a5e491c92cece2bd07a (patch) | |
tree | 687b1effe5930bbb735c46884dbf4a6fe56c953e | |
parent | ab53e4ac1fa7c4f7e35d26bc4fa9b055305371ee (diff) |
pst-exa (24sep14)
git-svn-id: svn://tug.org/texlive/trunk@35248 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/pst-exa/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.bib | 181 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.pdf | bin | 218102 -> 56513 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.tex | 12 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty | 381 | ||||
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 1 |
6 files changed, 489 insertions, 87 deletions
diff --git a/Master/texmf-dist/doc/latex/pst-exa/Changes b/Master/texmf-dist/doc/latex/pst-exa/Changes index 83ecb654995..9a245d60f59 100644 --- a/Master/texmf-dist/doc/latex/pst-exa/Changes +++ b/Master/texmf-dist/doc/latex/pst-exa/Changes @@ -1 +1,2 @@ +0.05 2014-09-24 added style options (pablo) 0.01 2010-01-01 first CTAN version
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.bib b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.bib new file mode 100644 index 00000000000..473fe07ab53 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.bib @@ -0,0 +1,181 @@ +@STRING{tugboat = {TUGboat} } +@STRING{beiprogramm = {{\TeX}-Beiprogramm} } +@STRING{bretter = {Bretter, die die Welt bedeuten} } +@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} } +@STRING{editorial = {Editorial} } +@STRING{fremdebuehne = {Von fremden B{\"u}hnen} } +@STRING{fundus = {Aus dem Fundus} } +@STRING{hinterbuehne = {Hinter der B{\"u}hne} } +@STRING{leserbrief = {Leserbrief(e)} } +@STRING{magazin = {Magazin} } +@STRING{rezension = {Rezensionen} } +@STRING{schonimmer = {Was Sie schon immer {\"u}ber {\TeX} wissen wollten \dots} } +@STRING{theaterkasse = {Von der Theaterkasse} } +@STRING{theatertage = {{\TeX}-Theatertage} } + +@Article{ dtk02.2:jackson.voss:plot-funktionen, + author = {Laura E. Jackson and Herbert Vo{\ss}}, + title = {Die {P}lot-{F}unktionen von {\texttt{pst-plot}}}, + journal = dtk, + year = 2002, + volume = {2/02}, + altvolume = 2, + altnumber = 14, + month = jun, + pages = {27--34}, + annote = bretter, + keywords = {}, + abstract = { Im letzten Heft wurden die mathematischen Funktionen von + \PS~im Zusammenhang mit dem {\LaTeX}-Paket + \texttt{pst-plot} zum Zeichnen von Funktionen beschrieben + und durch Beispiele erl{\"a}utert. In diesem Teil werden + die bislang nur erw{\"a}hnten Plot-Funktionen f{\"u}r + externe Daten behandelt. } +} + +@Article{ dtk02.1:voss:mathematischen, + author = {Herbert Vo{\ss}}, + title = {Die mathematischen {F}unktionen von {P}ost{S}cript}, + journal = dtk, + year = 2002, + volume = {1/02}, + altvolume = 1, + altnumber = 14, + month = mar, + pages = {}, + annote = bretter, + keywords = {}, + abstract = { \PS, faktisch genauso alt wie {\TeX}, ist im + Verh{\"a}ltnis dazu allgemein noch weniger bekannt, wenn es + darum geht zu beurteilen, was es denn nun im eigentlichen + Sinne ist. Au{\ss}erdem wird h{\"a}ufig vergessen, dass + sich mit den \PS-Funktionen viele Dinge erledigen lassen, + bei denen sonst auf externe Programme zur{\"u}ckgegriffen + wird. Dies wird im Folgenden f{\"u}r die mathematischen + Funktionen im Zusammenhang mit dem Paket \texttt{pst-plot} + gezeigt. } +} + +@Book{tlgc2, + author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Denis Roegel and Herbert Vo{\ss}}, + title = {The {\LaTeX} {G}raphics {C}ompanion}, + publisher = {{Addison-Wesley Publishing Company}}, + edition = second, + year = {2007}, + address = {Reading, Mass.} +} + + +@Book{voss:chaos, + author = {Herbert Vo{\ss}}, + title = {Chaos und {F}raktale selbst programmieren: von {M}andelbrotmengen + {\"u}ber {F}arbmanipulationen zur perfekten Darstellung}, + publisher = {{Franzis Verlag}}, + year = {1994}, + address = {Poing} +} + +@Article{girou:01:, + author = {Denis Girou}, + title = {Pr\'esentation de {PST}ricks}, + journal = {Cahier {GUT}enberg}, + year = 1994, + volume = {16}, + month = apr, + pages = {21-70} +} + +@Article{girou:02:, + author = {{Timothy van} Zandt and Denis Girou}, + title = {Inside {PST}ricks}, + journal = TUGboat, + year = 1994, + volume = {15}, + month = sep, + pages = {239-246} +} + +@Book{PostScript, + Author = {Kollock, Nikolai G.}, + Title = {Post{S}cript richtig eingesetzt: vom {K}onzept zum + praktischen {E}insatz}, + Publisher = {IWT}, + Address = {Vaterstetten}, + year = 1989, +} + +@Manual{pstricks, + Title = {PSTricks - {\PS} macros for generic {\TeX}}, + Author = {{Timothy van} Zandt}, + Organization = {}, + Address = {\url{http://www.tug.org/application/PSTricks}}, + Note = {}, + year = 1993 +} + +@Manual{pst-plot, + Title = {\texttt{pst-plot}: Plotting two dimensional functions and data}, + Author = {{Timothy van} Zandt}, + Organization = {}, + Address = {\url{CTAN:graphics/pstricks/generic/pst-plot.tex}}, + Note = {}, + year = 1999 +} + +@Manual{multido, + Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition}, + Author = {{Timothy van} Zandt}, + Organization = {}, + Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}}, + Note = {}, + year = 1997 +} + +@Book{PSTricks2, + author = {Herbert Vo\ss}, + title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX}, + edition = {6.}, + publisher = {DANTE -- Lehmanns}, + year = {2010}, + address = {Heidelberg/Berlin} +} + +@Book{voss:math, + author = {Herbert Vo\ss}, + title = {Typesetting mathematics with \LaTeX}, + publisher = {UIT}, + year = {2010}, + address = {Cambridge} +} + +@Book{PSTricks2-UIT, + author = {Herbert Vo\ss}, + title = {PSTricks -- Graphics for \TeX\ and \LaTeX}, + publisher = {UIT}, + year = {2011}, + address = {Cambridge} +} + +@Book{LaTeXRef-UIT, + author = {Herbert Vo\ss}, + title = {{\LaTeX} quick reference}, + publisher = {UIT}, + year = {2012}, + address = {Cambridge} +} + +@Manual{wolfram, + author = {Eric Weisstein}, + title = {Wolfram MathWorld}, + publisher = {{Wolfram}}, + year = {2007}, + address = {\url{http://mathworld.wolfram.com}} +} + +@Manual{pst-tools, + author = {Herbert Voß}, + title = {\texttt{pst-tools} -- Helper functions}, + publisher = {CTAN}, + year = {2012}, + address = {\url{CTAN:/graphics/pstricks/contrib/pst-tools}} +} diff --git a/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.pdf b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.pdf Binary files differindex 90d4d26daf0..1faf862603c 100644 --- a/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.pdf +++ b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.pdf diff --git a/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.tex b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.tex index 8037430885a..235b3485073 100644 --- a/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.tex +++ b/Master/texmf-dist/doc/latex/pst-exa/pst-exa-doc.tex @@ -1,5 +1,4 @@ \documentclass[pagesize=auto, fontsize=14pt, DIV=9, parskip=half]{scrartcl} - \usepackage{fixltx2e} \usepackage{etex} \usepackage{lmodern} @@ -12,12 +11,12 @@ \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} \newcommand*{\pkg}[1]{\textsf{#1}} \newcommand*{\env}[1]{\texttt{#1}} - +\def\PS{PostScript} \addtokomafont{title}{\rmfamily} -\title{The \pkg{pst-exa} package\thanks{This manual corresponds to \pkg{pst-exa.sty}~v0.01, dated~2010/01/01.}} +\title{The \pkg{pst-exa} package\thanks{This manual corresponds to \pkg{pst-exa.sty}~v0.05, dated~2014/09/24.}} \author{Herbert Voß\thanks{\mail{hvoss@tug.org}}} -\date{2010/01/01} +\date{\today} \begin{document} @@ -35,4 +34,9 @@ arguments. For more information read the documentation of \texttt{pst2pdf}. Using \pkg{pst-exa} makes only sense together with the Perl script \texttt{pst2pdf}, which allows the use of Postscript code and running the document in \textsc{pdf} mode. +\nocite{*} +\bibliographystyle{plain} +\bibliography{\jobname} + + \end{document} diff --git a/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty b/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty index 1fec2902c89..6dba2a4f926 100644 --- a/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty +++ b/Master/texmf-dist/tex/latex/pst-exa/pst-exa.sty @@ -1,10 +1,11 @@ -% $Id: pst-exa.sty 239 2010-01-01 17:23:13Z herbert $ +% $Id: pst-exa.sty 113 2014-09-24 11:14:36Z 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. +%% COPYRIGHT 2015- by Herbert Voss, <hvoss@tug.org> +%% Pablo Gozález Luengo <pablogonz@yahoo.com> %% %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed from CTAN @@ -12,86 +13,300 @@ %% % \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)] +\def\filedate{2014/09/24} +\def\fileversion{v0.5} +\ProvidesPackage{pst-exa}[\filedate\space\fileversion\space] +\RequirePackage{etoolbox} +\RequirePackage{xcolor} +\RequirePackage{showexpl}% +\RequirePackage{accsupp} +\RequirePackage{changepage}% +\RequirePackage{tcolorbox}% +\tcbuselibrary{listings,breakable,skins,xparse}% +\newcommand*{\noaccsupp}[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}} +\renewcommand*\SX@Info{}% +% Colors +\definecolor{hellgelb}{rgb}{1,1,0.8} +\definecolor{colKeys}{rgb}{0,0,1} +\definecolor{colIdentifier}{rgb}{0,0,0} +\definecolor{colComments}{rgb}{1,0,0} +\definecolor{colString}{rgb}{0,0.5,0} +% patch listings (etoolbox) +\patchcmd{\lsthk@SelectCharTable}{`)}{``}{}{} +% Define PSTexa languaje and common options +\lstdefinelanguage{PSTexa}{ + language=PSTricks,% + texcsstyle=*\color{blue},% + basicstyle=\ttfamily\small,% + columns=flexible,% + identifierstyle=\color{colIdentifier},% + keywordstyle=\color{colKeys},% + stringstyle=\color{colString},% + showspaces=false,% + showstringspaces=false,% + numberstyle=\tiny,% + breaklines=true,% + tabsize=4,% + breakautoindent=true,% + extendedchars=true, % + keepspaces=true,% + commentstyle=\color{colComments},% + morekeywords={psellipseAB,pnodes,postcript,psRing},% + morecomment=[l]\%,% + morestring=[b]"%, + }[keywords,tex,comments]% +% end PSTexa languaje +% Bolean +\newif\ifpstexa@swpl % swpl: true, tcb: false +\newif\ifmypack@pdf % option pdf +% Options +\DeclareOption{swpl}{\pstexa@swpltrue} +\DeclareOption{tcb}{\pstexa@swplfalse} +\DeclareOption{pdf}{\mypack@pdftrue} +% Proces options +\ProcessOptions* +% Star code for swpl option +\ifpstexa@swpl +% Environment for code +\lstnewenvironment{PSTcode} + {% +\lstset{ + language=PSTexa,% + frame=single,% + numbers=left,% + numbersep=1em,% + numberstyle=\tiny\color{black!75}\noaccsupp,% + rulecolor=\color{black!67},% + framesep=\fboxsep,% + framerule=\fboxrule,% + xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,% + xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,% + backgroundcolor=\color[rgb]{1,1,0.8},% +% literateee +literate=*{\{}{{\textcolor{blue}{\{}}}{1} + {\}}{{\textcolor{blue}{\}}}}{1} + {[}{{\textcolor{blue}{[}}}{1} + {]}{{\textcolor{blue}{]}}}{1} + {(}{{\textcolor{blue}{(}}}{1} + {)}{{\textcolor{blue}{)}}}{1} + {\$}{{\textcolor{red}{\$}}}{1} + {\#}{{\textcolor{red}{\#}}}{1}%, + }% close lstset + }% +{}% close PSTcode -\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} +% Change position for images +\renewcommand*\SX@resultInput{% + \ifx\SX@graphicname\@empty + \begingroup + \MakePercentComment\makeatother\catcode`\^^M=5\relax + \SX@@preset\SX@preset + \if@SX@rangeaccept + \let\SX@tempa=\SX@input + \else + \let\SX@tempa=\input + \fi + \SX@tempa{\SX@codefile}\par% + \endgroup \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 + \sbox\SX@tempbox{\includegraphics{\SX@graphicname}} + \begin{center} + \expandafter\includegraphics\expandafter[\SX@graphicparam]{\SX@graphicname} + \end{center} + \fi +}% end change postition +% PSTexample definition in swpl + \lstnewenvironment{PSTexample}[1][] + {% + \lstset{% + language=PSTexa,% + frame=single,% + numbers=left,% + numbersep=1em,% + numberstyle=\tiny\color{black!75}\noaccsupp,% + rulecolor=\color{black!67},% + framesep=\fboxsep,% + framerule=\fboxrule,% + xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,% + xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,% + backgroundcolor=\color[rgb]{1,1,0.8},% +% literate for swpl, need inside the explpreset + explpreset={ +% literate +literate=*{\{}{{\textcolor{blue}{\{}}}{1} + {\}}{{\textcolor{blue}{\}}}}{1} + {[}{{\textcolor{blue}{[}}}{1} + {]}{{\textcolor{blue}{]}}}{1} + {(}{{\textcolor{blue}{(}}}{1} + {)}{{\textcolor{blue}{)}}}{1} + {\$}{{\textcolor{red}{\$}}}{1} + {\#}{{\textcolor{red}{\#}}}{1},% + codefile=\jobname.swpl,% + hsep=\columnsep,% + vsep=15pt,% + pos=l,% + wide=false,% + rframe={},% + preset=\centering,% + } % close explpreset + } % close lstset + \@temptokena{#1}% + \begingroup + \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne + \expandafter\lstset\expandafter{\SX@explpreset,#1}% + \edef\x{\endgroup + \def\noexpand\SX@codefile{\SX@codefile}% + \def\noexpand\SX@graphicname{\SX@graphicname}% + \def\noexpand\SX@graphicparam{\SX@graphicparam}}% + \x + \xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile, + graphic={[\SX@graphicparam]{\SX@graphicname}}}% + \setbox\@tempboxa=\hbox\bgroup% Warum noetig? + \lst@BeginWriteFile{\SX@codefile}% +% Change position for images + } + {% + \lst@EndWriteFile\egroup + \SX@put@code@result + }% close environment +% end swpl code +\else +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%% Star code for tcb option %%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Define style for tcolorbox +\lstdefinestyle{pstexample}{% + language=PSTexa,% + framesep=\fboxsep,% + framerule=\fboxrule,% + xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,% + xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,% +% literateee +literate=*{\{}{{\textcolor{blue}{\{}}}{1} + {\}}{{\textcolor{blue}{\}}}}{1} + {[}{{\textcolor{blue}{[}}}{1} + {]}{{\textcolor{blue}{]}}}{1} + {(}{{\textcolor{blue}{(}}}{1} + {)}{{\textcolor{blue}{)}}}{1} + {\$}{{\textcolor{red}{\$}}}{1} + {\#}{{\textcolor{red}{\#}}}{1}%, + } +% Set options for tcb using pgfkeys +\tcbset{ + hwidth/.store in=\hwidth,% width left/right + hwidth=0.5\linewidth,% set default + graphic/.style 2 args={comment={\includegraphics[#1]{#2}}},% image coment + pos/.is choice,% Define pos=t,b,l,r + numbers/.is choice,% Define number=true,false,etc + after=\par,% + fcolor/.style={colframe=#1},% Frame color + tcolor/.style={colbacktitle=#1},,% Colback title color + bcolor/.style={colback=#1},% Background color + scolor/.style={drop fuzzy shadow=#1},% Shadow color + hsep/.style={sidebyside gap=#1},% Horizontal sep + vsep/.style={middle=#1}%,% Vertical sep + } +% Config pos=t,b,l,r for pdftex +%\ifpdf +\ifmypack@pdf +\tcbset{ + pos/r/.style={listing outside comment,righthand width=\hwidth},% + pos/l/.style={comment outside listing,lefthand width=\hwidth},% + pos/b/.style={listing above comment},% + pos/t/.style={comment above listing},% + pos/e/.code={\ifoddpage\tcbset{pos=l}\else\tcbset{pos=r}\fi}%, + } +% Config pos=t,b,l,r xetex/latex +\else +\tcbset{ + pos/r/.style={listing outside text,righthand width=\hwidth},% + pos/l/.style={text outside listing,lefthand width=\hwidth},% + pos/b/.style={listing above text},% + pos/t/.style={text above listing},% + pos/e/.code={\ifoddpage\tcbset{pos=l}\else\tcbset{pos=r}\fi}, + } +\fi % close pdf option for tcb +% Star common code for tcb +\tcbset{ +numbers/true/.style={% + listing options={% + style=pstexample,% + numbers=left,% + numbersep=0.5em,% + framesep=\fboxsep,% + framerule=\fboxrule,% + xleftmargin=-\dimexpr\fboxsep-\fboxrule\relax,% + xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,% + numberstyle=\tiny\color{black!75}\noaccsupp,% + }% close listings options + },% close numbers true +numbers/none/.style={% + listing options={% + style=pstexample,% + xleftmargin=-1.5em,% + xrightmargin=-\dimexpr\fboxsep-\fboxrule\relax,% + numbers=none + }% close listings options + },% close numbers none +numbers/out/.style={% + listing options={% + style=pstexample,% + xleftmargin=-1.5em,% + numbers=left,% + numbersep=1em,% + numberstyle=\tiny\color{black!75}\noaccsupp,% + }% close listings options + },% close numbers out +numbers/fancy/.style={ + overlay={\begin{tcbclipinterior}\fill[red!20!blue!20!white] (frame.south west)% + rectangle ([xshift=12pt]frame.north west);\end{tcbclipinterior}},% + listing options={% + style=pstexample,% + numbers=left,% + numbersep=0.85em,% + xleftmargin=0em,% + numberstyle=\tiny\color{black!75}\noaccsupp,% + }% close listings options + }%,% +} % close tcb settings +% Default PSTexample environment style +\tcbset{ +psexample/.style={% + enhanced,% + autoparskip, + center lower,% + drop fuzzy shadow=gray,% + hsep=\columnsep,% + vsep=15pt,% + title style={draw=none,fill=none},% + pos=l,% + numbers=true,% + tcolor=black!67,% + bcolor=hellgelb,% + fcolor=black!67,% + top=-2.5mm,bottom=-2.5mm,boxsep=3pt,% + fonttitle=\bfseries\small,boxrule=0.8pt + }% close psexample settings +} % close tcbset +% Default PSTexample environment style +\tcbset{ +pscode/.style={% + enhanced,% + autoparskip, + arc=0mm,% + drop fuzzy shadow=gray,% + title style={draw=none,fill=none},% + listing only, + numbers=out,% + bcolor=hellgelb,% + fcolor=black!67,% + top=-2.5mm,bottom=-2.5mm,boxsep=3pt,% + fonttitle=\bfseries\small,boxrule=0.8pt + }% close psexample settings +} +% Define PSTexample environment +\NewTCBListing{PSTexample}{O{}}{psexample,#1} +\NewTCBListing{PSTcode}{O{}}{pscode,#1} +%% end PSTexample environment +\fi +\endinput diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index b90e88f4c1c..6df8c4b94bf 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -819,6 +819,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'pst-electricfield', "&MAKEpst", 'pst-eps', "&MAKEpst", 'pst-eucl', "&MAKEpst", + 'pst-exa', "&MAKEflatten", 'pst-fill', "&MAKEpst", 'pst-fit', "&MAKEpst", 'pst-fr3d', "&MAKEpst", |