diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-01 22:07:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-01 22:07:31 +0000 |
commit | 17727285df6985c6c939e688b03e37d1fdc92fed (patch) | |
tree | 61b7f6db7573d3c39ccb53dd7098d445f08a5b2a /Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex | |
parent | ec9ec3509f5e8c7b23ae5005dd7bb4d0b6fbeb4f (diff) |
pst-node (1feb22)
git-svn-id: svn://tug.org/texlive/trunk@61838 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex | 81 |
1 files changed, 47 insertions, 34 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex index da8501112ca..5ff16cb6cf5 100644 --- a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex @@ -1,4 +1,6 @@ -%% $Id: pst-node-doc.tex 1164 2020-04-01 09:12:28Z herbert $ +\RequirePackage{pdfmanagement-testphase} +\DeclareDocumentMetadata{} +%% $Id: pst-node-doc.tex 438 2022-01-31 17:45:26Z herbert $ \documentclass[fontsize=11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small, headinclude=false,footinclude=false,oneside]{pst-doc} \listfiles @@ -6,7 +8,7 @@ \input{pst-node} \let\pstFV\fileversion -\usepackage[utf8]{inputenc} +%\usepackage[utf8]{inputenc} \usepackage{pst-plot} \let\belowcaptionskip\abovecaptionskip % @@ -14,8 +16,8 @@ \newcommand\psBox[3][white]{\rput(#2){\rnode{#2}{% \psframebox[fillcolor=#1]{\xstrut\makebox[3.2cm]{\tabular{c}#3\endtabular}}}}} \def\bgImage{% -\psscalebox{0.85}{% -\begin{pspicture}(-1,-1)(21,7) +\psscalebox{0.75}{% +\begin{pspicture}(-1,-1)(20,7) \psset{framearc=0.2,shadow,fillstyle=solid,shadowcolor=black!55} \psBox[blue!30]{7,6}{politische\\Kommunikation} \psBox[red!30]{3,4}{interpersonale\\Kommunikation} @@ -57,7 +59,7 @@ \author{Timothy Van Zandt\\Michael Sharpe\\Herbert Vo\ss} \date{\today} -\maketitle +\settitle \begin{abstract} This version of \LPack{pst-node} uses the extended keyval handling @@ -2438,15 +2440,18 @@ For example, which represents a unit vector in the tangent direction to the curve at \texttt{P}. The expression in \texttt{t} in this case is algebraic, which is detected automatically by the macro. + \begin{LTXexample}[width=.35\textwidth] \begin{pspicture}[showgrid](-.5,-.5)(2.5,2) -\def\exn{cos(t) | sin(t)} -\psparametricplot[algebraic]{0}{2}{\exn} -\curvepnode{1}{\exn}{P} -\psdot(P)\uput[45](P){P} +\def\exnA{cos(t) | sin(t)} +\psparametricplot[algebraic]{0}{2}{\exnA} +\curvepnode{1}{\exnA}{D} +\psdot(D)\uput[45](D){D} \end{pspicture} \end{LTXexample} + \vspace{2pc} + \begin{BDef} \Lcs{psparnode}\Largb{t}\Largb{expression in t}\Largb{<nodename>} @@ -2475,15 +2480,16 @@ For example, \begin{LTXexample}[width=.35\textwidth] \begin{pspicture}[showgrid](-.5,-.5)(2.5,3) -\def\exn{t+t^2 | 2*Ex(-t)} +\def\exnB{t+t^2 | 2*Ex(-t)} \psset{plotpoints=100} -\psparametricplot[algebraic]{0}{1}{\exn} -\curvepnodes{0}{1}{\exn}{P} -\psdot(P50)\uput[75](P50){P50} -\psdot(P99)\uput[75](P99){P99} +\psparametricplot[algebraic]{0}{1}{ \exnB } +\curvepnodes{0}{1}{ \exnB }{Q} +\psdot(Q50)\uput[75](Q50){Q50} +\psdot(Q99)\uput[75](Q99){Q99} \end{pspicture} \end{LTXexample} + \begin{BDef} \Lcs{fnpnode}\Largb{xval}\Largb{expression in x}\Largb{nodename} @@ -2505,10 +2511,10 @@ For example, \begin{LTXexample}[width=.35\textwidth] \begin{pspicture}[showgrid](-.5,-.5)(2.5,3) -\def\exn{x x 1 add mul 2 div} -\psplot{0}{2}{\exn} -\fnpnode{0.5}{\exn}{Q} -\psdot(Q)\uput[-45](Q){Q} +\def\exnC{x x 1 add mul 2 div} +\psplot{0}{2}{\exnC} +\fnpnode{0.5}{\exnC}{R} +\psdot(R)\uput[-45](R){R} \end{pspicture} \end{LTXexample} \vspace{2pc} @@ -2521,11 +2527,13 @@ For example, Is similar to \Lcs{curvenodes}, but for the graph of a function. The keyword \Lkeyword{algebraic} must be specified if your expression is indeed algebraic. + + \begin{LTXexample}[width=.35\textwidth] \begin{pspicture}[showgrid](-.5,-.5)(2.5,3) -\def\exn{x x 1 add mul 2 div} -\psplot{0}{2}{\exn} -\fnpnodes[plotpoints=10]{0}{2}{\exn}{A} +\def\exnD{x x 1 add mul 2 div} +\psplot{0}{2}{\exnD} +\fnpnodes[plotpoints=10]{0}{2}{\exnD}{A} \psdot(A4)\uput[-45](A4){A4} \end{pspicture} \end{LTXexample} @@ -2551,6 +2559,8 @@ get a PostScript error if the node you specify is undefined. is effectively \Lcs{getnodelist}\Largb{P}\Largb{}\verb|(1,2)(2;3)...|, just a quick way to turn a list of coordinates into a node sequence P0 P1 ... + + \begin{BDef} \Lcs{psnline}\OptArgs\Largb{arrows}\Largr{coors}\Largb{name} \end{BDef} @@ -2563,9 +2573,9 @@ turn a list of coordinates into a node sequence P0 P1 ... \begin{LTXexample}[width=.35\textwidth] \begin{pspicture}[showgrid,algebraic](-.5,-.5)(2.5,2) -\pnodes{P}(.1,.1)(1;10)(*2 {x^2/4})(0,1.4) -%defines P0..P3--now join them -\psnline[arrowscale=2]{-D>}(0,3){P} +\pnodes{B}(.1,.1)(1;10)(*2 {x^2/4})(0,1.4) +%definesuP0..P3--now join them +\psnline[arrowscale=2]{-D>}(0,3){B} \end{pspicture} \end{LTXexample} \vspace{2pc} @@ -2579,16 +2589,21 @@ for example, expects that there are nodes named P3..P8, and gives the same resu \pspolygon[linewidth=1pt]{->}(P3)(P4)(P5)(P6)(P7)(P8) \end{verbatim} + Conversion between any angle unit and degree unit +%\makeatletter +%\def\pst@par{} +%\makeatother + \begin{LTXexample}[pos=t,vsep=1cm] \begin{pspicture}[showgrid=b](-2,-2)(2,2) \def\N{9 }% \degrees[\N] -\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoDeg}{t dup cos exch sin}{P} -\psnpolygon(0,\numexpr\Pnodecount-1){P} -\foreach \i in {0,1,...,\numexpr\Pnodecount-1}{% - \uput{6pt}[\i]{!\i\space 90 DegtoAny sub}(P\i){\psline{->}(0,12pt)}} +\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoDeg}{t dup cos exch sin}{C} +\psnpolygon(0,\numexpr\Cnodecount-1){C} +\foreach \i in {0,1,...,\numexpr\Cnodecount-1}{% + \uput{6pt}[\i]{!\i\space 90 DegtoAny sub}(C\i){\psline{->}(0,12pt)}} \end{pspicture} \end{LTXexample} @@ -2600,17 +2615,15 @@ Conversion between any angle unit and radian unit \begin{pspicture}[showgrid=b](-2,-2)(2,2) \def\N{9 }% \degrees[\N] -\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoRad}{cos(t)|sin(t)}{P} -\psnpolygon(0,\numexpr\Pnodecount-1){P} -\foreach \i in {0,1,...,\numexpr\Pnodecount-1}{% - \uput{6pt}[\i]{!\i\space Pi 2 div RadtoAny sub}(P\i){\psline{->}(0,12pt)}} +\curvepnodes[plotpoints=\numexpr\N+1]{0}{\N AnytoRad}{cos(t)|sin(t)}{D} +\psnpolygon(0,\numexpr\Dnodecount-1){D} +\foreach \i in {0,1,...,\numexpr\Dnodecount-1}{% + \uput{6pt}[\i]{!\i\space Pi 2 div RadtoAny sub}(D\i){\psline{->}(0,12pt)}} \end{pspicture} \end{LTXexample} - - \begin{BDef} \Lcs{psncurve}\OptArgs\Largb{arrows}\Largr{coors}\Largb{name} \end{BDef} |