From 3864d9407972dec949ebd588a084249aa5855380 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 3 Dec 2017 22:19:10 +0000 Subject: pst-tools (3dec17) git-svn-id: svn://tug.org/texlive/trunk@45978 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-tools/Changes | 3 ++ .../doc/generic/pst-tools/pst-tools-doc.pdf | Bin 111946 -> 116833 bytes .../doc/generic/pst-tools/pst-tools-doc.tex | 48 ++++++++++++++++++--- 3 files changed, 46 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/doc/generic/pst-tools') diff --git a/Master/texmf-dist/doc/generic/pst-tools/Changes b/Master/texmf-dist/doc/generic/pst-tools/Changes index 0f96c059cec..0b2745e9985 100644 --- a/Master/texmf-dist/doc/generic/pst-tools/Changes +++ b/Master/texmf-dist/doc/generic/pst-tools/Changes @@ -1,4 +1,6 @@ ..... pst-tools.tex +0.09b 2017-12-03 - modified pro file + - added PostScript function list to the documentation 0.09a 2017-11-29 - modified pro file 0.09 2017-10-04 - renamed macro \psGetElement to \psRegisterList 0.08 2017-10-02 - new macro \psGetElement @@ -19,6 +21,7 @@ ---- pst-tools.pro +0.06 2017-11-30 - added function concatarray 0.05 2017-11-29 - added function concatstrings 0.04 2013-10-26 - added function /ps@reverseOrderOfPoints - modified /rightTrim diff --git a/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf b/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf index 712e241453e..299cc4ad38c 100644 Binary files a/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf and b/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.pdf differ diff --git a/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex b/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex index 9be46ca3adc..2473feb2fed 100644 --- a/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-tools/pst-tools-doc.tex @@ -1,6 +1,6 @@ -%% $Id: pst-tools-doc.tex 613 2017-10-04 07:29:50Z herbert $ -\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false, - smallheadings, headexclude,footexclude,oneside]{pst-doc} +%% $Id: pst-tools-doc.tex 675 2017-12-03 08:39:12Z herbert $ +\documentclass[11pt,english,BCOR=10mm,DIV=13,toc=bibliography,parskip=false, + headings=small, headinclude=false,footinclude=false,oneside]{pst-doc} \usepackage[utf8]{inputenc} \usepackage{pst-tools} \let\pstToolsFV\fileversion @@ -213,8 +213,46 @@ It must be a comma separated list. \end{pspicture} - - +\section{List of the defined PostScript functions} + +\footnotesize +\begin{verbatim} +/Pi2 1.57079632679489661925640 def +/factorial { % n on stack, returns n! +/MoverN { % m n on stack, returns the binomial coefficient m over n +/ps@ReverseOrderOfPoints { % on stack [P1 P2 P3 ...Pn]=>[Pn,Pn-1,...,P2,P1] +/cxadd { % [a1 b1] [a2 b2] = [a1+a2 b1+b2] +/cxneg { % [a b] +/cxsub { cxneg cxadd } def % same as negative addition +/cxmul { % [a1 b1] [a2 b2] +/cxsqr { % % [a b]^2 = [a^2-b^2 2ab] = [a2 b2] +/cxsqrt { % +/cxarg { % [a b]->arg(z)=atan(b/a) +/cxlog { % [a b]->log[a b] = [a^2-b^2 2ab] = [a2 b2] +/cxnorm2 { % [a b]->a^2+b^2 +/cxnorm { % +/cxconj { % [a b]->[a -b] +/cxre { 0 get } def % real value +/cxim { 1 get } def % imag value +/cxrecip { % [a b]->1/[a b] = ([a -b]/(a^2+b^2) +/cxmake1 { 0 2 array astore } def % make a complex number, real given +/cxmake2 { 2 array astore } def % dito, both given +/cxdiv { cxrecip cxmul } def +/cxrmul { % [a b] r->[r*a r*b] +/cxrdiv { % [a b] r->[1/r*a 1/r*b] +/cxconv { % theta->exp(i theta) = cos(theta)+i sin(theta) polar<->cartesian +/bubblesort { % on stack must be an array [ ... ] +/concatstringarray{ % [(a) (b) ... (z)] --> (ab...z) 20100422 +/concatstrings{ % (a) (b) -> (ab) +/reversestring { % (aBC) -> (CBa) +/concatarray{ % [a c] [b d] -> [a c b d] +/dot2comma {% on stack a string (...) +/rightTrim { % on stack the string and the character number to be stripped +/psStringwidth /stringwidth load def +/psShow /show load def +\end{verbatim} + +\normalsize \clearpage \section{List of all optional arguments for \texttt{pst-tools}} -- cgit v1.2.3