From ea7bf6d58ff9206527e6c128a6c0fcba6fdef559 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 24 Jan 2009 16:36:04 +0000 Subject: pst-func 0.59 (23jan09) git-svn-id: svn://tug.org/texlive/trunk@11959 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-func/Changes | 1 + .../doc/generic/pst-func/pst-func-doc.pdf | Bin 2854335 -> 2854625 bytes .../doc/generic/pst-func/pst-func-doc.tex | 20 ++++++------ .../texmf-dist/tex/generic/pst-func/pst-func.tex | 34 +++++++++++++++++++-- 4 files changed, 43 insertions(+), 12 deletions(-) diff --git a/Master/texmf-dist/doc/generic/pst-func/Changes b/Master/texmf-dist/doc/generic/pst-func/Changes index d1d858b05fe..1b0f4d4691c 100644 --- a/Master/texmf-dist/doc/generic/pst-func/Changes +++ b/Master/texmf-dist/doc/generic/pst-func/Changes @@ -1,4 +1,5 @@ ..... pst-func.tex +0.59 2009-01-23 - add option \psk@xShift for \psPrintValue 0.58 2008-12-08 - add the ChebyshevT and ChebyshevU (first and second kind) the macros are only wrappers for the PS routines - take the optional argument comma from pstricks-add into diff --git a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.pdf b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.pdf index 18fc3f85dda..e15923af2fe 100644 Binary files a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.pdf and b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.pdf differ diff --git a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex index 3b97fe8ed01..d5770da871b 100644 --- a/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-func/pst-func-doc.tex @@ -50,6 +50,7 @@ Rafal Bartczuk, Manuel Luque, Jose-Emilio Vila-Forcen, Timothy Van Zandt, +Michael Zedler, and last but not least \url{http://mathworld.wolfram.com} \end{abstract} @@ -775,7 +776,7 @@ The integral sin and cosin are defined as \clearpage -\section{\Lcs{psIntegral}, \Lcs{psCumIntegral} and \Lcs{psConv}} +\section{\nxLcs{psIntegral}, \nxLcs{psCumIntegral}, and \nxLcs{psConv}} These new macros\footnote{Created by Jose-Emilio Vila-Forcen} allows to plot the result of an integral using the Simpson numerical integration rule. The first one is the result of the integral of a function with two variables, and @@ -784,9 +785,9 @@ integral of a function (similar to \Lcs{psGaussI} but valid for all functions). one is the result of a convolution. They are defined as: % \begin{align} -\text{psIntegral}(x) &= \int_a^b f(x,t)\mathrm{d}t \\ -\text{psCumIntegral}(x) &= \int_{\text{xStart}}^{x} f(t)\mathrm{d}t \\ -\text{psConv}(x) & = \int_a^b f(t)g(x-t)\mathrm{d}t +\text{\Lcs{psIntegral}}(x) &= \int\limits_a^b f(x,t)\mathrm{d}t \\ +\text{\Lcs{psCumIntegral}}(x) &= \int\limits_{\text{xStart}}^{x} f(t)\mathrm{d}t \\ +\text{\Lcs{psConv}}(x) &= \int\limits_a^b f(t)g(x-t)\mathrm{d}t \end{align} % In the first one, the integral is performed from $a$ to $b$ and the function $f$ depends @@ -1690,7 +1691,7 @@ Important is the fact, that \Lcs{psPrintValue} works on \PS\ side. For \TeX\ it zero dimension. This is the reason why you have to put it into a box, which reserves horizontal space. -There are the following new options: +There are the following valid options for \Lcs{psPrintValue}: \noindent\medskip \begin{tabularx}{\linewidth}{@{}l|>{\ttfamily}l>{\ttfamily}lX@{}} @@ -1702,6 +1703,7 @@ There are the following new options: real number; if it is too small, no value is printed\\ \Lkeyword{decimals} & & -1 & the number of printed decimals, a negative value prints all possible digits.\\ +\Lkeyword{xShift} & & 0 & the x shift in pt for the output, relative to the current point.\\ \end{tabularx} \begin{center} @@ -1710,8 +1712,8 @@ There are the following new options: \makebox[5em]{$\sqrt x$}\makebox[7em]{$\sin x+\cos x$}\makebox[6em]{$\sin^2 x+\cos^2 x$}\\[3pt] \multido{\iA=0+10}{18}{ \makebox[1em]{\iA} - \makebox[5em]{\psPrintValue[PSfont=Helvetica]{\iA\space sin}} - \makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3]{\iA\space cos}}\hspace{1em} + \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[comma,valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\iA\space sqrt}} \makebox[7em]{\psPrintValue[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}}\\} @@ -1725,8 +1727,8 @@ There are the following new options: \makebox[5em]{$\sqrt x$}\makebox[7em]{$\sin x+\cos x$}\makebox[6em]{$\sin^2 x+\cos^2 x$}\\[3pt] \multido{\iA=0+10}{18}{ \makebox[1em]{\iA} - \makebox[5em]{\psPrintValue[PSfont=Helvetica]{\iA\space sin}} - \makebox[4em][r]{\psPrintValue[PSfont=Courier,fontscale=10,decimals=3]{\iA\space cos}\hspace{1em}} + \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[comma,valuewidth=15,linecolor=blue,PSfont=AvantGarde]{\iA\space sqrt}} \makebox[7em]{\psPrintValue[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}}\\} diff --git a/Master/texmf-dist/tex/generic/pst-func/pst-func.tex b/Master/texmf-dist/tex/generic/pst-func/pst-func.tex index 4f07a235ddd..c3bbc38e39a 100644 --- a/Master/texmf-dist/tex/generic/pst-func/pst-func.tex +++ b/Master/texmf-dist/tex/generic/pst-func/pst-func.tex @@ -29,8 +29,8 @@ % interface to the `xkeyval' package \pst@addfams{pst-func} -\def\fileversion{0.58} -\def\filedate{2008/12/08} +\def\fileversion{0.59} +\def\filedate{2009/01/23} \message{`PST-func' v\fileversion, \filedate\space (hv)} % \pstheader{pst-func.pro} @@ -335,7 +335,7 @@ Output Index get 46 eq { Output Index 44 put } if } for \fi - 0 0 moveto Output show grestore + \psk@xShift\space 0 moveto Output show grestore }% \end@SpecialObj% } @@ -838,6 +838,34 @@ \end@ClosedObj% } % +\def\psCplot{\def\pst@par{}\pst@object{psCplot}} +\def\psCplot@i#1#2#3#4{% start | end | complex variables | function + \pst@killglue + \begingroup + \use@par + \@nameuse{beginplot@\psplotstyle}% + \addto@pscode{% + \psplot@init + /x #1 def + /x1 #2 def + /dx x1 x sub \psk@plotpoints div def + #3 + /xy { +% x + tx@FuncDict begin + #4 aload pop \pst@number\psyunit mul exch \pst@number\psxunit mul exch + end + } def}% + \gdef\psplot@init{}% + \@pstfalse + \@nameuse{testqp@\psplotstyle}% + \if@pst + \psplot@ii + \else + \psplot@iii + \fi + \endgroup + \ignorespaces} % \catcode`\@=\PstAtCode\relax % -- cgit v1.2.3