summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-06-18 23:09:00 +0000
committerKarl Berry <karl@freefriends.org>2014-06-18 23:09:00 +0000
commit451b2f3d546ab208d12ccab29befbf4577374c2e (patch)
tree0acda79bafce79afe36258aae2e02561eeead79e /Master/texmf-dist/doc/generic
parent6271138aedb2f61eee0225300db1569008084a10 (diff)
pstricks-add (13jun14)
git-svn-id: svn://tug.org/texlive/trunk@34298 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/Changes5
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdfbin5112398 -> 5115226 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex167
3 files changed, 142 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/Changes b/Master/texmf-dist/doc/generic/pstricks-add/Changes
index 88e985b699d..b8535206e8d 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/Changes
+++ b/Master/texmf-dist/doc/generic/pstricks-add/Changes
@@ -1,4 +1,4 @@
-%% $Id: Changes 914 2014-05-17 20:02:53Z herbert $
+%% $Id: Changes 923 2014-06-16 07:31:28Z herbert $
%%
pstricks-add.pro -----------
0.23 2009-12-17 - add RGBtoGRAY and WavelengthToGRAY
@@ -39,7 +39,8 @@ pstricks-add.sty ----------- (hv)
pstricks-add.tex ----------- (hv)
- v 3.68 2014-05-17 - another minor fixe to \psStep
+ v 3.73 2014-06-16 - enable \ncput et al for \psVector
+ v 3.72 2014-06-12 - allow multiple coors for \psVector
v 3.67 2014-05-07 - some minor fixes to \psStep
v 3.66 2014-04-17 - added \psBigArrow
v 3.65 2014-01-21 - added \ignorespaces for \psStartPoint
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
index 925fc26054c..8b265124401 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
+++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
index 72530064e63..c4c2fad2532 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
+++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
@@ -1,4 +1,4 @@
-%% $Id: pstricks-add-doc.tex 914 2014-05-17 20:02:53Z herbert $
+%% $Id: pstricks-add-doc.tex 924 2014-06-16 21:25:49Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside]{pst-doc}
\listfiles
@@ -16,7 +16,7 @@
\usepackage{pstricks-add}
\let\pstricksaddFV\fileversion
\usepackage{pst-eucl,pst-fun,pst-func,multirow}
-\usepackage{pifont}
+\usepackage{pifont,pst-func}
\let\belowcaptionskip\abovecaptionskip
%
\def\textat{\char064}%
@@ -234,24 +234,28 @@ for the horizontal line in \Lkeyval{psMarkAngleLineStyle} and preset to
\end{lstlisting}
-\begin{pspicture}[showgrid](10,10)
+ \begin{pspicture}[showgrid](10,10)
\psStartPoint(1,1)
- \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10)
- \psVector[linestyle=dashed](4;110)
+ \psVector(3;30)(4;60)\nbput{$V_2$}
+ \psVector[linecolor=red](3;10)\nbput{$V_3$}
+ \psVector[linestyle=dashed](4;110)\nbput{$V_4$}
\psStartPoint(1,1)\psset{markAngle}
- \psVector[linestyle=dashed](4;110)\psVector[linecolor=red](3;10)
- \psVector(4;60)\psVector(3;30)
-\end{pspicture}
+ \psVector[linestyle=dashed](4;110)\ncput*{$V_1$}
+ \psVector[linecolor=red](3;10)\ncput*{$V_2$}
+ \psVector(4;60)(3;30)\ncput*{$V_4$}
+ \end{pspicture}
\begin{lstlisting}
-\begin{pspicture}[showgrid](10,10)
+ \begin{pspicture}[showgrid](10,10)
\psStartPoint(1,1)
- \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10)
- \psVector[linestyle=dashed](4;110)
+ \psVector(3;30)(4;60)\nbput{$V_2$}
+ \psVector[linecolor=red](3;10)\nbput{$V_3$}
+ \psVector[linestyle=dashed](4;110)\nbput{$V_4$}
\psStartPoint(1,1)\psset{markAngle}
- \psVector[linestyle=dashed](4;110)\psVector[linecolor=red](3;10)
- \psVector(4;60)\psVector(3;30)
-\end{pspicture}
+ \psVector[linestyle=dashed](4;110)\ncput*{$V_1$}
+ \psVector[linecolor=red](3;10)\ncput*{$V_2$}
+ \psVector(4;60)(3;30)\ncput*{$V_4$}
+ \end{pspicture}
\end{lstlisting}
All end points of the vectors are saved in node names with the preset name \verb=Vector#=,
@@ -266,13 +270,13 @@ the endpoint of the third vector or the name of the starting point of the forth
\begin{pspicture}[showgrid,linewidth=1pt](10,10.4)
\psStartPoint[A](1,1)% nodes have the base name A
- \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10)
- \psVector[linestyle=dashed](4;110)
+ \psVector(3;30)(4;60)\psVector[linecolor=red](3;10)
+ \psVector[linestyle=dashed](4;110)\nbput{$V_3$}
\psline{->}(A0)(A4)
\psStartPoint[B](1,1)\psset{markAngle}% nodes have the base name B
- \psVector[linestyle=dashed](4;110)
- \psVector[linecolor=red](3;10)
- \psVector(4;60)\psVector(3;30)
+ \psVector[linestyle=dashed](4;110)\naput{$V_1$}
+ \psVector[linecolor=red](3;10)\ncput*{$V_2$}
+ \psVector(4;60)(3;30)
\psline[arrows=-D>,arrowscale=2,linewidth=1.5pt,linecolor=red](B2)(A2)
\psline[arrows=-D>,arrowscale=2,linewidth=1.5pt,linecolor=blue](A3)(B3)
\multido{\iA=0+1}{5}{\uput[0](A\iA){A\iA}\uput[180](B\iA){B\iA}}
@@ -281,16 +285,16 @@ the endpoint of the third vector or the name of the starting point of the forth
\begin{lstlisting}
\begin{pspicture}[showgrid,linewidth=1pt](10,10.4)
\psStartPoint[A](1,1)% nodes have the base name A
- \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10)
- \psVector[linestyle=dashed](4;110)
+ \psVector(3;30)(4;60)\psVector[linecolor=red](3;10)
+ \psVector[linestyle=dashed](4;110)\nbput{$V_3$}
\psline{->}(A0)(A4)
\psStartPoint[B](1,1)\psset{markAngle}% nodes have the base name B
- \psVector[linestyle=dashed](4;110)
- \psVector[linecolor=red](3;10)
- \psVector(4;60)\psVector(3;30)
+ \psVector[linestyle=dashed](4;110)\naput{$V_1$}
+ \psVector[linecolor=red](3;10)\ncput*{$V_2$}
+ \psVector(4;60)(3;30)
\psline[arrows=-D>,arrowscale=2,linewidth=1.5pt,linecolor=red](B2)(A2)
\psline[arrows=-D>,arrowscale=2,linewidth=1.5pt,linecolor=blue](A3)(B3)
- \multido{\iA=0+1}{5}{\uput[0](A\iA){A\iA}\uput[180](B\iA){B\iA}
+ \multido{\iA=0+1}{5}{\uput[0](A\iA){A\iA}\uput[180](B\iA){B\iA}}
\end{pspicture}
\end{lstlisting}
@@ -996,7 +1000,8 @@ into the above structure for using it with the example file.
\end{LTXexample}
\emph{Important} is the option \verb|-dNOSAFER| for the \texttt{ps2pdf} run, otherwise Ghostscript
-didn't allow the run of external data files.
+didn't allow the run of external data files. Important optional arguments are
+\Lkeyword{colored}, \Lkeyword{colorOffset}, and \Lkeyword{colSteps}.
%--------------------------------------------------------------------------------------
\section{Random dots}
@@ -1609,6 +1614,89 @@ the mathematical function in postfix or algebraic notation (with
There is also an optional argument \Lkeyword{noVerticalLines} which suppresses all
vertical lines of the step function in the output.
+\iffalse
+
+
+
+\definecolor{BeigeTS}{rgb}{0.98,0.95,0.87}
+\definecolor{CornBlauTS}{rgb}{0.39,0.59,0.93}
+\definecolor{SandBraun}{rgb}{0.96,0.64,0.38}
+
+\begin{LTXexample}[pos=t,preset=\centering]
+\psset{yunit=1.25cm,arrowinset=0.02,arrowlength=2,linewidth=0.5pt,saveNodeCoors,NodeCoorPrefix=n,PrintCoord}
+\def\funkf{2*sqrt(x)*cos(ln(x))*sin(x)}
+\begin{pspicture}[plotpoints=500,algebraic,fontscale=5,markZeros,dotscale=0.7](-0.5,-3)(10,2.5)
+\psStep[fillstyle=solid,fillcolor=BeigeTS,opacity=0.7,linewidth=0.3pt,linecolor=SandBraun!50](0.001,9.5){40}{\funkf}
+\psStep[StepType=Riemann,fillstyle=solid,opacity=0.3,fillcolor=CornBlauTS,linecolor=CornBlauTS,linewidth=0.3pt]%
+(0.001,9.5){40}{\funkf}
+\psaxes[labelFontSize=\scriptstyle,ticksize=-0.1 0]{->}(0,0)(0,-2.75)(10,2.5)
+\psplot[linecolor=BeigeTS!60,linewidth=0.8pt]{0.001}{9.75}{\funkf}
+\psplotTangent[linecolor=blue, Derive={Derive(1,\funkf)}]{1.29}{1.5}{\funkf}
+\uput[90](6,1.2){$f(x)=2\cdot\sqrt{x}\cdot\cos{(\ln{x})}\cdot\sin{x}$}
+\psZero[xShift=-0.2,yShift=0.15,linecolor=blue!50!black!90,ydecimals=0,postString={1},Newton](0.5,1){\funkf}{0}{N1}
+\psZero[xShift=-0.05,yShift=0.15,linecolor=blue!50!black!90,ydecimals=0,postString={2}](2,4){\funkf}{0}{N2}
+\psZero[xShift=-0.45,yShift=0.15,linecolor=blue!50!black!90,ydecimals=0,postString={3}](4,6){\funkf}{0}{N3}
+\psZero[xShift=-0.45,yShift=0.15,linecolor=blue!50!black!90,ydecimals=0,postString={4}](6,7){\funkf}{0}{N4}
+\psZero[xShift=-0.45,yShift=0.15,linecolor=blue!50!black!90,ydecimals=0,postString={5}](9,11){\funkf}{0}{N5}
+\psZero[xShift=-1.15,yShift=0,linecolor=blue!50!black!90,PtName={M},postString={m=1}](0.5,2){Derive(1,\funkf)-1+\funkf}{\funkf}{M}
+\pcline{->}(0.5,-1)(M)
+\nbput[nrot=:U,labelsep=0.01]{\scriptsize Steigung ist hier \psPrintValueNew[PSfont=Palatino-Roman,decimals=0,round=true,fontscale=7]{nMx,{Derive(1,\funkf)}}}
+%\psdot[linecolor=green,strokeopacity=0.8](*{nMx} {\funkf})
+\uput[90](*{nMx} {\funkf}){$m=$\psPrintValueNew[PSfont=Palatino-Roman,decimals=0,round=true,fontscale=8]{nMx,{Derive(1,\funkf)}}}
+\end{pspicture}
+\end{LTXexample}
+
+
+
+
+
+\begin{pspicture}(-0.5,-1.5)(10.2,1.5)
+ \psaxes[labelFontSize=\scriptstyle]{->}(0,0)(0,-1.5)(10.2,1.5)
+ \psplot[linewidth=.6pt,algebraic]{0}{10}{sqrt(x)*cos(x)*sin(x)}
+ \psStep[algebraic,StepType=infimum,fillstyle=solid,opacity=0.3,fillcolor=green!50!black!30,linecolor=green,linewidth=0.1pt,strokeopacity=0.8](0,10){50}%
+ {sqrt(x)*cos(x)*sin(x)}
+\end{pspicture}
+
+
+\psset{yunit=1.25cm,plotpoints=500}
+\begin{pspicture}(-0.5,-1.5)(10,1.5)
+ \psaxes[labelFontSize=\scriptstyle]{->}(0,0)(0,-1.5)(10,1.5)
+ \psStep[algebraic,StepType=supremum,fillstyle=solid,opacity=0.3,fillcolor=green!50!black!30,linecolor=green,linewidth=0.1pt](0,10){50}%
+ {sqrt(x)*cos(x)*sin(x)}
+ \psplot[linewidth=.5pt,algebraic]{0}{10}{sqrt(x)*cos(x)*sin(x)}
+\end{pspicture}
+
+
+
+\begin{pspicture}(-0.5,-0.5)(10,3)
+ \psaxes[labelFontSize=\scriptstyle]{->}(10,3)
+ \psplot[plotpoints=500,linewidth=.5pt,algebraic]{0}{10}{sqrt(x)}
+ \psStep[linecolor=green,StepType=upper,fillstyle=solid,opacity=0.3,fillcolor=green!50!black!60,linewidth=0.3pt](0,9){9}{x sqrt}
+ \psStep[linecolor=BeigeTS,StepType=lower,fillstyle=hlines,hatchcolor=BeigeTS,hatchwidth=0.3pt,hatchsep=1.2pt,linewidth=0.3pt](0,9){9}{x sqrt }
+\end{pspicture}
+
+
+
+\psset{plotpoints=500}
+\begin{pspicture}(-0.5,-2.25)(10,3)
+ \psaxes[labelFontSize=\scriptstyle]{->}(0,0)(0,-2.25)(10,3)
+ \psplot[linewidth=0.5pt,algebraic]{0}{10}{sqrt(x)*sin(x)}
+ \psStep[algebraic,linecolor=SandBraun,linewidth=0.4pt,StepType=upper](0,9){20}{sqrt(x)*sin(x)}
+ \psStep[linecolor=CornBlauTS,linewidth=0.4pt,linestyle=dashed,dash=1.6pt 1.6pt](0,9){20}{x sqrt x RadtoDeg sin mul}
+\end{pspicture}
+
+
+
+\psset{yunit=1.25cm,plotpoints=500}
+\begin{pspicture}(-0.5,-1.5)(10,1.5)
+ \psaxes[labelFontSize=\scriptstyle]{->}(0,0)(0,-1.5)(10,1.5)
+ \psStep[algebraic,StepType=Riemann,fillstyle=solid,opacity=0.3,fillcolor=CornBlauTS,linecolor=CornBlauTS,linewidth=0.2pt](0,10){50}%
+ {sqrt(x)*cos(x)*sin(x)}
+ \psplot[linewidth=.5pt,algebraic]{0}{10}{sqrt(x)*cos(x)*sin(x)}
+\end{pspicture}
+
+\fi
+
\clearpage
%--------------------------------------------------------------------------------------
@@ -1670,6 +1758,9 @@ be used in the default ways for nodes:
\end{LTXexample}
+
+
+
\subsection{\nxLcs{psplotTangent} and option \nxLkeyword{Tnormal}}
%--------------------------------------------------------------------------------------
There is an additional option, named \Lkeyword{Derive} for an
@@ -1718,6 +1809,7 @@ radian unit!
\egroup
\end{center}
+
\begin{lstlisting}
\def\F{x RadtoDeg dup dup cos exch 2 mul cos add exch 3 mul cos add}
\def\Fp{x RadtoDeg dup dup sin exch 2 mul sin 2 mul add exch 3 mul sin 3 mul add neg}
@@ -1850,13 +1942,32 @@ a \Lnotation{|} (see example).
\begin{pspicture}(-4,-4)(4,6)
\parametricplot[algebraic,plotpoints=500,linewidth=3\pslinewidth]{0}{3.141592}{\LissaAlg}
\multido{\r=0.000+0.314}{11}{%
- \psplotTangent[algebraic,linecolor=red,arrows=<->]{\r}{1.5}{\LissaAlg} }
+ \psplotTangent[algebraic,linecolor=red,arrows=<->]{\r}{1.5}{\LissaAlg}}
\multido{\r=0.157+0.314}{11}{%
- \psplotTangent[algebraic,linecolor=blue,arrows=<->,%
+ \psplotTangent[algebraic,linecolor=blue,arrows=<->,
Derive=\LissaAlgDer]{\r}{1.5}{\LissaAlg} }
\end{pspicture}
\end{LTXexample}
+\iffalse
+\begin{LTXexample}[pos=t,wide]
+\psset{yunit=2cm,xunit=1.2cm,plotpoints=500,arrowinset=0.02,arrowlength=2,algebraic}
+\def\funkf{2*sqrt(x)*cos(ln(x))*sin(x)}
+\begin{pspicture}[showgrid](-1,-3)(10,3.2)
+\psaxes[labelFontSize=\scriptstyle,subticks=5,ticksize=-0.1 0,labelsep=0.07]{->}(0,0)(0,-2.75)(10,2.5)
+\psplot{0.001}{9.75}{\funkf}
+\psplotTangent[linecolor=blue,Derive={Derive(1,\funkf)},
+ showpoints,nodesep=0]{0.35}{1.5}{\funkf}
+\psplotTangent[linecolor=blue,Derive={Derive(1,\funkf)},Tnormal,
+ nodesepA=-3,nodesepB=0,strokeopacity=0.4]{0.35}{1.5}{\funkf}
+\psdot[linecolor=cyan](ENormal)
+\psdot[linecolor=cyan](ENormalE)
+\psdot[linecolor=red](OCurve)
+\psdot[linecolor=green](ETangent)
+\psdot[linecolor=green](ETangentE)
+\end{pspicture}
+\end{LTXexample}
+\fi
\clearpage
\section{Successive derivatives of a function}