texlive[44320] Master/texmf-dist: pst-tools (13may17)
commits+karl at tug.org
commits+karl at tug.org
Sun May 14 01:04:07 CEST 2017
Revision: 44320
http://tug.org/svn/texlive?view=revision&revision=44320
Author: karl
Date: 2017-05-14 01:04:07 +0200 (Sun, 14 May 2017)
Log Message:
-----------
pst-tools (13may17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/pst-tools/Changes
trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.bib
trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf
trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex
trunk/Master/texmf-dist/tex/generic/pst-tools/pst-tools.tex
trunk/Master/texmf-dist/tex/latex/pst-tools/pst-tools.sty
Modified: trunk/Master/texmf-dist/doc/generic/pst-tools/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-tools/Changes 2017-05-13 23:01:40 UTC (rev 44319)
+++ trunk/Master/texmf-dist/doc/generic/pst-tools/Changes 2017-05-13 23:04:07 UTC (rev 44320)
@@ -1,4 +1,5 @@
..... pst-tools.tex
+0.06 2017-05-12 - added style mmpaper
0.05 2014-05-12 - new optional arguments for printing values
on PS level
0.04 2013-07-08 - ???
Modified: trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.bib
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.bib 2017-05-13 23:01:40 UTC (rev 44319)
+++ trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.bib 2017-05-13 23:04:07 UTC (rev 44320)
@@ -1,3 +1,4 @@
+y%% -*-bibtex-*-
@STRING{tugboat = {TUGboat} }
@STRING{beiprogramm = {{\TeX}-Beiprogramm} }
@STRING{bretter = {Bretter, die die Welt bedeuten} }
@@ -13,68 +14,49 @@
@STRING{theaterkasse = {Von der Theaterkasse} }
@STRING{theatertage = {{\TeX}-Theatertage} }
- at 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. }
+ at Book{PSTricks2,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}rafik f\"ur \TeX{} und \LaTeX},
+ edition = {7},
+ publisher = {DANTE -- Lehmanns},
+ year = {2016},
+ address = {Heidelberg/Berlin}
}
- at 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. }
+ at Book{PSTricks-E,
+ author = {Herbert Vo\ss},
+ title = {{\PST} {G}raphics for \LaTeX},
+ edition = {1},
+ publisher = {UIT},
+ year = {2011},
+ address = {Cambridge}
}
+ at Book{companion04,
+ author = {Frank Mittelbach and Michel Goosens et al},
+ title = {The {\LaTeX} {C}ompanion},
+ edition = {2},
+ publisher = {Addison-Wesley Publishing Company},
+ year = {2004},
+ address = {Boston}
+}
+
+ at Book{unbound,
+ author = {Alan Hoenig},
+ title = {\TeX{} {U}nbound: \LaTeX{} \& \TeX{} {S}trategies, {F}onts, {G}raphics, and {M}ore},
+ publisher = {Oxford University Press},
+ year = {1998},
+ address = {London}
+}
@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,
+ edition = 2,
year = {2007},
address = {Reading, Mass.}
}
-
- at 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},
@@ -86,7 +68,7 @@
}
@Article{girou:02:,
- author = {{Timothy van} Zandt and Denis Girou},
+ author = {{Timothy Van} Zandt and Denis Girou},
title = {Inside {PST}ricks},
journal = TUGboat,
year = 1994,
@@ -97,7 +79,7 @@
@Book{PostScript,
Author = {Kollock, Nikolai G.},
- Title = {Post{S}cript richtig eingesetzt: vom {K}onzept zum
+ Title = {PostScript richtig eingesetzt: vom {K}onzept zum
praktischen {E}insatz},
Publisher = {IWT},
Address = {Vaterstetten},
@@ -106,7 +88,7 @@
@Manual{pstricks,
Title = {PSTricks - {\PS} macros for generic {\TeX}},
- Author = {{Timothy van} Zandt},
+ Author = {{Timothy Van} Zandt},
Organization = {},
Address = {\url{http://www.tug.org/application/PSTricks}},
Note = {},
@@ -113,18 +95,9 @@
year = 1993
}
- at 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},
+ Author = {{Timothy Van} Zandt},
Organization = {},
Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}},
Note = {},
@@ -131,36 +104,3 @@
year = 1997
}
- at 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}
-}
-
- at Book{voss:math,
- author = {Herbert Vo\ss},
- title = {Typesetting mathematics with \LaTeX},
- publisher = {UIT},
- year = {2010},
- address = {Cambridge}
-}
-
- at Book{PSTricks2-UIT,
- author = {Herbert Vo\ss},
- title = {PSTricks -- Graphics for \TeX\ and \LaTeX},
- publisher = {UIT},
- year = {2011},
- address = {Cambridge}
-}
-
- at Manual{wolfram,
- author = {Eric Weisstein},
- title = {Wolfram MathWorld},
- publisher = {{Wolfram}},
- year = {2007},
- address = {\url{http://mathworld.wolfram.com}}
-}
-
Modified: trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex 2017-05-13 23:01:40 UTC (rev 44319)
+++ trunk/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex 2017-05-13 23:04:07 UTC (rev 44320)
@@ -1,4 +1,4 @@
-%% $Id: pst-func-doc.tex 599 2011-11-03 19:38:28Z herbert $
+%% $Id: pst-tools-doc.tex 456 2017-05-12 19:35:55Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
smallheadings, headexclude,footexclude,oneside]{pst-doc}
\usepackage[utf8]{inputenc}
@@ -22,6 +22,23 @@
\psset{unit=1cm}
+\section{Predefined styles}
+
+The style \Lkeyword{mmpaper} is defined for \Lcs{psgrid}:
+%\newpsstyle{mmpaper}{subgriddiv=5,gridlabels=0,gridwidth=1pt,gridcolor=orange,subgridwidth=0.1pt,subgridcolor=orange!90}
+
+\begin{LTXexample}[width=0.5\linewidth,frame=,pos=r]
+\begin{pspicture}(6,3)
+\psgrid[style=mmpaper](6,3)
+\end{pspicture}
+
+\begin{pspicture}(6,3)
+\psgrid[style=mmpaper,
+ gridcolor=blue,subgridcolor=blue!80](6,3)
+\end{pspicture}
+\end{LTXexample}
+
+
\section{\Lcs{psPrintValue}}\label{sec:printValue}
This macro allows to \Index{print} single values of a math function. It has the syntax
@@ -40,7 +57,7 @@
\begin{tabularx}{\linewidth}{@{}l|>{\ttfamily}l>{\ttfamily}lX@{}}
\textrm{name} & \textrm{value} & \textrm{default}\\\hline
\Lkeyword{PSfont} & PS font name & Times & only valid \PS font names are possible, e.g.
- \Lps{Times-Roman}, \Lps{Helvetica}, \Lps{Courier}, \Lps{AvantGard}, \Lps{Bookman}\\
+ \Lps{Times-Roman}, \Lps{Helvetica}, \Lps{Courier}, \Lps{Helvetica}, \Lps{Bookman}\\
\Lkeyword{postString} & <string> & \{\} & will be appended to the number string\\
\Lkeyword{trimSpaces} & <boolean> & false & will strip spaces on the right\\
\Lkeyword{fontscale} & <number> & 10 & the font scale in pt\\
@@ -62,7 +79,7 @@
\makebox[1em]{\iA}
\makebox[5em]{\psPrintValue[PSfont=Helvetica,xShift=-10]{\iA\space sin}}
\makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3,xShift=-20]{\iA\space cos}}\hspace{1em}
- \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\iA\space sqrt}}
+ \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=Helvetica]{\iA\space sqrt}}
\makebox[7em]{\psPrintValue[comma,PSfont=Times-Italic]{\iA\space dup sin exch cos add}}
\makebox[6em]{\psPrintValue[PSfont=Palatino-Roman]{\iA\space dup sin dup mul exch cos dup mul add}}\\}
\end{center}
@@ -77,7 +94,7 @@
\makebox[1em]{\iA}
\makebox[5em]{\psPrintValue[PSfont=Helvetica,xShift=-10]{\iA\space sin}}
\makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3,xShift=-20]{\iA\space cos}}\hspace{1em}
- \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\iA\space sqrt}}
+ \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=Helvetica]{\iA\space sqrt}}
\makebox[7em]{\psPrintValue[comma,PSfont=Times-Italic]{\iA\space dup sin exch cos add}}
\makebox[6em]{\psPrintValue[PSfont=Palatino-Roman]{\iA\space dup sin dup mul exch cos dup mul add}}\\}
\end{lstlisting}
@@ -94,7 +111,7 @@
\multido{\rA=0+0.1}{18}{\makebox[1em]{\rA}
\makebox[5em]{\psPrintValue[PSfont=Helvetica,xShift=-10]{\rA, sin(x)}}
\makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3,xShift=-20]{\rA,cos(x)}}\hspace{1em}
- \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\rA,sqrt(x)}}
+ \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=Helvetica]{\rA,sqrt(x)}}
\makebox[7em]{\psPrintValue[comma,PSfont=Times-Italic]{\rA,sin(x)+cos(x)}}
\makebox[6em]{\psPrintValue[PSfont=Palatino-Roman]{\rA,sin(x)^2+cos(x)^2}}\\}
\end{center}
@@ -108,7 +125,7 @@
\multido{\rA=0+0.1}{18}{\makebox[1em]{\rA}
\makebox[5em]{\psPrintValue[PSfont=Helvetica,xShift=-10]{\rA, sin(x)}}
\makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3,xShift=-20]{\rA,cos(x)}}\hspace{1em}
- \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\rA,sqrt(x)}}
+ \makebox[5em]{\psPrintValue[valuewidth=15,linecolor=blue,PSfont=Helvetica]{\rA,sqrt(x)}}
\makebox[7em]{\psPrintValue[comma,PSfont=Times-Italic]{\rA,sin(x)+cos(x)}}
\makebox[6em]{\psPrintValue[PSfont=Palatino-Roman]{\rA,sin(x)^2+cos(x)^2}}\\}
\end{lstlisting}
Modified: trunk/Master/texmf-dist/tex/generic/pst-tools/pst-tools.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-tools/pst-tools.tex 2017-05-13 23:01:40 UTC (rev 44319)
+++ trunk/Master/texmf-dist/tex/generic/pst-tools/pst-tools.tex 2017-05-13 23:04:07 UTC (rev 44320)
@@ -1,4 +1,4 @@
-%% $Id: pst-tools.tex 599 2011-11-03 19:38:28Z herbert $
+%% $Id: pst-tools.tex 456 2017-05-12 19:35:55Z herbert $
%%
%% This is file `pst-tools.tex',
%%
@@ -26,8 +26,8 @@
% interface to the `xkeyval' package
\pst at addfams{pst-tools}
%
-\def\fileversion{0.05}
-\def\filedate{2014/05/12}
+\def\fileversion{0.06}
+\def\filedate{2017/05/12}
\message{`PST-tools' v\fileversion, \filedate\space (hv)}
%
\define at key[psset]{pst-tools}{decimalSeparator}[.]{\def\psk at decimalSeparator{#1}}%
@@ -49,6 +49,8 @@
\def\txG{ true setglobal globaldict begin }
\def\etxG{ end false setglobal }
%
+\newpsstyle{mmpaper}{subgriddiv=5,gridlabels=0,gridwidth=1pt,gridcolor=orange,subgridwidth=0.1pt,subgridcolor=orange!90}
+%
\def\psPrintValue{\pst at object{psPrintValue}}
\def\psPrintValue at i#1{\expandafter\psPrintValue at ii#1,,\@nil}
\def\psPrintValue at ii#1,#2,#3\@nil{% #1,#2 only for algebraic code
@@ -77,9 +79,10 @@
\define at boolkey[psset]{pst-tools}[Pst@]{science}[true]{%
\ifPst at science\def\psk at Scin{true }\else\def\psk at Scin{false }\fi}
\psset[pst-tools]{science=false,round=false}
+%
\def\psPrintValueNew{\pst at object{psPrintValueNew}}
-\def\psPrintValueNew at i#1{\expandafter\psPrintValueNew at ii#1,,\@nil}
-\def\psPrintValueNew at ii#1,#2,#3\@nil{% #1,#2 only for algebraic code
+\def\psPrintValueNew at i#1{\expandafter\psPrintValueNew at ii#1,,!!}
+\def\psPrintValueNew at ii#1,#2,#3!!{% #1,#2 only for algebraic code
\begin at SpecialObj
\addto at pscode{ % thanks to Buddy Ledger
/mfont { \psk at PSfont findfont \psk at fontscale scalefont setfont } bind def
@@ -90,13 +93,13 @@
/Func (#2) tx at AlgToPs begin AlgToPs end cvx def
Func
\else #1 \fi
- /value ED
+ /value exch def
\psk at Scin {
- value 0 ne { value log floor cvi /expon ED }{ /expon 0 def } ifelse
+ value 0 ne { value log floor cvi /expon exch def }{ /expon 0 def } ifelse
value 10 expon exp div
\psk at decimals -1 gt { 10 \psk at decimals exp dup 3 1 roll mul
\ifPst at round round \else cvi \fi exch div } if
- \psk at decimals 0 eq { cvi } if /numb ED
+ \psk at decimals 0 eq { cvi } if /numb exch def
expon \psk at valuewidth string cvs /expon exch def
numb \psk at valuewidth string cvs
\ifPst at comma dot2comma \fi % do we have to change dot to comma
@@ -116,7 +119,7 @@
show
} ifelse
}%
- \end at SpecialObj%
+ \end at SpecialObj
}
%
\catcode`\@=\PstAtCode\relax
Modified: trunk/Master/texmf-dist/tex/latex/pst-tools/pst-tools.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pst-tools/pst-tools.sty 2017-05-13 23:01:40 UTC (rev 44319)
+++ trunk/Master/texmf-dist/tex/latex/pst-tools/pst-tools.sty 2017-05-13 23:04:07 UTC (rev 44320)
@@ -5,4 +5,4 @@
\ProvidesFile{pst-tools.tex}
[\filedate\space v\fileversion\space `PST-tools' (hv)]
\endinput
-%% $Id: pst-tools.sty 355 2010-06-21 10:02:44Z herbert $
+%% $Id: pst-tools.sty 456 2017-05-12 19:35:55Z herbert $
More information about the tex-live-commits
mailing list