| 1 |
%% $Id: pst-arrow-doc.tex 164 2021-08-25 19:26:42Z herbert $ |
| 2 |
\errorcontextlines=100 |
| 3 |
\documentclass[11pt,english,BCOR10mm,DIV=14,bibliography=totoc,parskip=false,smallheadings, |
| 4 |
headexclude,footexclude,twoside]{pst-doc} |
| 5 |
\usepackage{pst-node,hvlogos,pst-arrow} |
| 6 |
\let\pstArrowFV\fileversion |
| 7 |
\lstset{preset=\centering,pos=l,wide=false,vsep=5mm,language=PSTricks,%width=0.5\linewidth, |
| 8 |
morekeywords={multidipole,parallel},basicstyle=\footnotesize\ttfamily} |
| 9 |
% |
| 10 |
\renewcommand\bgImage{\begin{pspicture}(5,6) |
| 11 |
\psset{arrowscale=2} |
| 12 |
\pnode(3,4){A}\pnode(5,6){B}\pnode(5,0){C} |
| 13 |
\psbezier[ArrowInside=->,% |
| 14 |
showpoints=true](A)(B)(C) |
| 15 |
\psset{linestyle=none,ArrowInside=-<} |
| 16 |
\psbezier[ArrowInsideNo=4](0,0)(A)(B)(C) |
| 17 |
\psset{ArrowInside=-o} |
| 18 |
\psbezier[ArrowInsidePos=0.1](0,0)(A)(B)(C) |
| 19 |
\psbezier[ArrowInsidePos=0.9](0,0)(A)(B)(C) |
| 20 |
\psset{ArrowInside=-*} |
| 21 |
\psbezier[ArrowInsidePos=0.3](0,0)(A)(B)(C) |
| 22 |
\psbezier[ArrowInsidePos=0.7](0,0)(A)(B)(C) |
| 23 |
\end{pspicture} |
| 24 |
} |
| 25 |
|
| 26 |
\addbibresource{\jobname.bib} |
| 27 |
\begin{document} |
| 28 |
|
| 29 |
\title{\texttt{pst-arrow}} |
| 30 |
\subtitle{A PSTricks package for drawing arrows; v.\pstArrowFV} |
| 31 |
\author{Herbert Voß} |
| 32 |
%\docauthor{Herbert Vo\ss} |
| 33 |
\date{\today} |
| 34 |
|
| 35 |
\settitle |
| 36 |
|
| 37 |
\tableofcontents |
| 38 |
|
| 39 |
\begin{abstract} |
| 40 |
\noindent |
| 41 |
The \LPack{pstricks} related package provides more arrow types. |
| 42 |
|
| 43 |
%\vfill\noindent |
| 44 |
%Thanks to: \\ |
| 45 |
% Jean-C\^ome Charpentier. |
| 46 |
\end{abstract} |
| 47 |
|
| 48 |
%-------------------------------------------------------------------------------------- |
| 49 |
\section{Arrows} |
| 50 |
%-------------------------------------------------------------------------------------- |
| 51 |
\LPack{pstricks} defines the following "`arrows"': |
| 52 |
|
| 53 |
\def\myline#1{\psline[linecolor=red,linewidth=0.5pt,arrowscale=1.5]{#1}(0,1ex)(1.3,1ex)}% |
| 54 |
\def\mylineA#1{\psline[linecolor=red,linewidth=0.5pt,arrowscale=4.5]{#1}(0,1ex)(2,1ex)}% |
| 55 |
\psset{arrowscale=1.5} |
| 56 |
\begin{longtable}{@{} c @{\qquad} p{3cm} l @{}}% |
| 57 |
Value & Example & Name \\[2pt]\hline |
| 58 |
\Lnotation{-} & \myline{-} & None\\ |
| 59 |
\Lnotation{<->} & \myline{<->} & Arrowheads.\\ |
| 60 |
\Lnotation{>-<} & \myline{>-<} & Reverse arrowheads.\\ |
| 61 |
\Lnotation{<{<}-{>}>} & \myline{<<->>} & Double arrowheads.\\ |
| 62 |
\Lnotation{{>}>-{<}<} & \myline{>>-<<} & Double reverse arrowheads.\\ |
| 63 |
\Lnotation{{|}-{|}} & \myline{|-|} & T-bars, flush to endpoints.\\ |
| 64 |
\Lnotation{{|}*-{|}*} & \myline{|*-|*} & T-bars, centered on endpoints.\\ |
| 65 |
\Lnotation{[-]} & \myline{[-]} & Square brackets.\\ |
| 66 |
\Lnotation{]-[} & \myline{]-[} & Reversed square brackets.\\ |
| 67 |
\Lnotation{(-)} & \myline{(-)} & Rounded brackets.\\ |
| 68 |
\Lnotation{)-(} & \myline{)-(} & Reversed rounded brackets.\\ |
| 69 |
\Lnotation{o-o} & \myline{o-o} & Circles, centered on endpoints.\\ |
| 70 |
\Lnotation{*-*} & \myline{*-*} & Disks, centered on endpoints.\\ |
| 71 |
\Lnotation{oo-oo} & \myline{oo-oo} & Circles, flush to endpoints.\\ |
| 72 |
\Lnotation{**-**} & \myline{**-**} & Disks, flush to endpoints.\\ |
| 73 |
\Lnotation{{|}<->{|}} & \myline{|<->|} & T-bars and arrows.\\ |
| 74 |
\Lnotation{{|}>-<{|}} & \myline{|>-<|} & T-bars and reverse arrows.\\ |
| 75 |
\Lnotation{h-h{}} & \myline{h-h} & left/right hook arrows.\\ |
| 76 |
\Lnotation{H-H{}} & \myline{H-H} & left/right hook arrows.\\ |
| 77 |
\Lnotation{v-v} & \myline{v-v} & left/right inside vee arrows.\\ |
| 78 |
\Lnotation{V-V} & \myline{V-V} & left/right outside vee arrows.\\ |
| 79 |
\Lnotation{f-f} & \myline{f-f} & left/right inside filled arrows.\\ |
| 80 |
\Lnotation{F-F} & \myline{F-F} & left/right outside filled arrows.\\ |
| 81 |
\Lnotation{t-t} & \myline{t-t} & left/right inside slash arrows.\\[5pt] |
| 82 |
\Lnotation{T-T} & \myline{T-T} & left/right outside slash arrows.\\ |
| 83 |
% |
| 84 |
\Lnotation{<D-D>} & \mylineA{<D-D>} & curved arrows.\\ |
| 85 |
\Lnotation{<D<D-D>D>} & \mylineA{<D<D-D>D>} & curved doubled arrows.\\ |
| 86 |
\Lnotation{D>-<D} & \mylineA{D>-<D} & curved arrows, tip inside.\\ |
| 87 |
\Lnotation{<T-T>} & \myline{<T-T>} & curved lines.\\ |
| 88 |
% \Lnotation{>T-T<} & \mylineA{>T-T<} & \TikZ\ like arrows.\\ |
| 89 |
\hline |
| 90 |
\end{longtable} |
| 91 |
|
| 92 |
%\def\pst@arrowtable{,-,<->,<<->>,>-<,>>-<<,(-),[-],)-(,]-[,|>-<|,% |
| 93 |
% <D-D>,D>-<D,<D<D-D>D>,<T-T>,|<*->|*,|<->|,v-v,V-V,f-f,F-F,t-t,T-T} |
| 94 |
|
| 95 |
|
| 96 |
\psset{arrowscale=1} |
| 97 |
|
| 98 |
You can also mix and match, e.g., \Lnotation{->}, \Lnotation{*-)} and \Lnotation{[->} are all valid values |
| 99 |
of the \Lkeyword{arrows} parameter. The parameter can be set with |
| 100 |
|
| 101 |
\begin{BDef} |
| 102 |
\Lcs{psset}\Largb{arrows=<type>} |
| 103 |
\end{BDef} |
| 104 |
|
| 105 |
\noindent or for some macros with a special option, like\\[5pt] |
| 106 |
\noindent\verb|\psline[<general options>]{<arrow type>}(A)(B)|\\ |
| 107 |
\noindent\verb/\psline[linecolor=red,tipcolor=blue,linewidth=2pt]{|->}(0,0)(0,2)/ \ |
| 108 |
\psline[linecolor=red,tipcolor=blue,linewidth=2pt]{|->}(0,0)(0,2) |
| 109 |
|
| 110 |
\subsection{Multiple arrows} |
| 111 |
There are two new options which are only valid for the arrow type \verb+<<+ or \verb+>>+. |
| 112 |
\verb+nArrow+ sets both, the \verb+nArrowA+ and the \verb+nArrowB+ parameter. The meaning |
| 113 |
is declared in the following tables. Without setting one of these parameters the behaviour |
| 114 |
is like the one described in the old PSTricks manual. |
| 115 |
|
| 116 |
\begin{center} |
| 117 |
\begin{tabular}{@{}lc@{}}% |
| 118 |
Value & Meaning \\[2pt]\hline |
| 119 |
\Lnotation{-{>}>} & \ -A \\ |
| 120 |
\Lnotation{{<}<-{>}>} & A-A\\ |
| 121 |
\Lnotation{{<}<-} & A-\ \\ |
| 122 |
\Lnotation{{>}>-} & B-\ \\ |
| 123 |
\Lnotation{-{<}<} & \ -B\\ |
| 124 |
\Lnotation{{>}>-{<}<} & B-B\\ |
| 125 |
\Lnotation{{>}>-{>}>} & B-A\\ |
| 126 |
\Lnotation{{<}<-{<}<} & A-B\\\hline |
| 127 |
\end{tabular} |
| 128 |
\end{center} |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
\begin{center} |
| 134 |
\bgroup |
| 135 |
\psset{linecolor=red,linewidth=1pt,arrowscale=2}% |
| 136 |
\begin{tabular}{lp{2.8cm}}% |
| 137 |
Value & Example \\[2pt]\hline |
| 138 |
\verb+\psline{->>}(0,1ex)(2.3,1ex)+ & \psline{->>}(0,1ex)(2.3,1ex) \\ |
| 139 |
\verb+\psline[nArrowsA=3]{->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3]{->>}(0,1ex)(2.3,1ex)\\ |
| 140 |
\verb+\psline[nArrowsA=5]{->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=5]{->>}(0,1ex)(2.3,1ex)\\ |
| 141 |
\verb+\psline{<<-}(0,1ex)(2.3,1ex)+ & \psline{<<-}(0,1ex)(2.3,1ex)\\ |
| 142 |
\verb+\psline[nArrowsA=3]{<<-}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3]{<<-}(0,1ex)(2.3,1ex)\\ |
| 143 |
\verb+\psline[nArrowsA=5]{<<-}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=5]{<<-}(0,1ex)(2.3,1ex)\\ |
| 144 |
\verb+\psline{<<->>}(0,1ex)(2.3,1ex)+ & \psline{<<->>}(0,1ex)(2.3,1ex)\\ |
| 145 |
\verb+\psline[nArrowsA=3]{<<->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3]{<<->>}(0,1ex)(2.3,1ex)\\ |
| 146 |
\verb+\psline[nArrowsA=5]{<<->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=5]{<<->>}(0,1ex)(2.3,1ex)\\ |
| 147 |
\verb+\psline{<<-|}(0,1ex)(2.3,1ex)+ & \psline{<<-|}(0,1ex)(2.3,1ex)\\ |
| 148 |
\verb+\psline[nArrowsA=3]{<<-<<}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3]{<<-<<}(0,1ex)(2.3,1ex)\\ |
| 149 |
\verb+\psline[nArrowsA=5]{<<-o}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=5]{<<-o}(0,1ex)(2.3,1ex)\\ |
| 150 |
\verb+\psline[nArrowsA=3,nArrowsB=4]{<<-<<}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3,nArrowsB=4]{<<-<<}(0,1ex)(2.3,1ex)\\ |
| 151 |
\verb+\psline[nArrowsA=3,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=3,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)\\ |
| 152 |
\verb+\psline[nArrowsA=1,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)+ & \psline[nArrowsA=1,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)\\\hline |
| 153 |
\end{tabular} |
| 154 |
\egroup |
| 155 |
\end{center} |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
\subsection{\texttt{hookarrow}} |
| 160 |
%\begin{LTXexample} |
| 161 |
\bgroup |
| 162 |
\psset{arrowsize=8pt,arrowlength=1,linewidth=1pt,nodesep=2pt,shortput=tablr} |
| 163 |
\large |
| 164 |
\begin{psmatrix}[colsep=12mm,rowsep=10mm] |
| 165 |
& & $R_2$ \\ |
| 166 |
& & 0 & & $R_3$\\ |
| 167 |
$e_b:S$ & 1 & & 1 & 0 \\ |
| 168 |
& & 0 \\ |
| 169 |
& & $R_1$ \\ |
| 170 |
\end{psmatrix} |
| 171 |
\ncline{h-}{1,3}{2,3}<{$e_{r2}$}>{$f_{r2}$} |
| 172 |
\ncline{-h}{2,3}{3,2}<{$e_1$} |
| 173 |
\ncline{-h}{3,1}{3,2}^{$e_s$}_{$f_{s}$} |
| 174 |
\ncline{-h}{3,2}{4,3}>{$e_3$}<{$f_3$} |
| 175 |
\ncline{-h}{4,3}{3,4}>{$e_4$}<{$f_4$} |
| 176 |
\ncline{-h}{3,4}{2,3}>{$e_2$}<{$f_2$} |
| 177 |
\ncline{-h}{3,4}{3,5}^{$e_5$} |
| 178 |
\ncline{-h}{3,5}{2,5}<{$e_{r3}$}>{$f_{r3}$} |
| 179 |
\ncline{-h}{4,3}{5,3}<{$e_{r1}$}>{$f_{r1}$} |
| 180 |
%\end{LTXexample} |
| 181 |
\egroup |
| 182 |
|
| 183 |
\begin{lstlisting} |
| 184 |
\psset{arrowsize=8pt,arrowlength=1,linewidth=1pt,nodesep=2pt,shortput=tablr} |
| 185 |
\large |
| 186 |
\begin{psmatrix}[colsep=12mm,rowsep=10mm] |
| 187 |
& & $R_2$ \\ |
| 188 |
& & 0 & & $R_3$\\ |
| 189 |
$e_b:S$ & 1 & & 1 & 0 \\ |
| 190 |
& & 0 \\ |
| 191 |
& & $R_1$ \\ |
| 192 |
\end{psmatrix} |
| 193 |
\ncline{h-}{1,3}{2,3}<{$e_{r2}$}>{$f_{r2}$}\ncline{-h}{2,3}{3,2}<{$e_1$} |
| 194 |
\ncline{-h}{3,1}{3,2}^{$e_s$}_{$f_{s}$} \ncline{-h}{3,2}{4,3}>{$e_3$}<{$f_3$} |
| 195 |
\ncline{-h}{4,3}{3,4}>{$e_4$}<{$f_4$} \ncline{-h}{3,4}{2,3}>{$e_2$}<{$f_2$} |
| 196 |
\ncline{-h}{3,4}{3,5}^{$e_5$} |
| 197 |
\ncline{-h}{3,5}{2,5}<{$e_{r3}$}>{$f_{r3}$} |
| 198 |
\ncline{-h}{4,3}{5,3}<{$e_{r1}$}>{$f_{r1}$} |
| 199 |
\end{lstlisting} |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
\subsection{\texttt{hookrightarrow} and \texttt{hookleftarrow}} |
| 204 |
This is another type of arrow and is abbreviated with \Lnotation{H}. |
| 205 |
The length and width of the hook is set by the new options |
| 206 |
\Lkeyword{hooklength} and \Lkeyword{hookwidth}, which are by default set |
| 207 |
to |
| 208 |
% |
| 209 |
\begin{BDef} |
| 210 |
\Lcs{psset}\Largb{hooklength=3mm,hookwidth=1mm} |
| 211 |
\end{BDef} |
| 212 |
% |
| 213 |
If the line begins with a right hook then the line ends with a left hook and vice versa: |
| 214 |
|
| 215 |
\begin{LTXexample}[width=3cm] |
| 216 |
\begin{pspicture}(3,4) |
| 217 |
\psline[linewidth=5pt,linecolor=blue,hooklength=5mm,hookwidth=-3mm]{H->}(0,3.5)(3,3.5) |
| 218 |
\psline[linewidth=5pt,linecolor=red,hooklength=5mm,hookwidth=3mm]{H->}(0,2.5)(3,2.5) |
| 219 |
\psline[linewidth=5pt,hooklength=5mm,hookwidth=3mm]{H-H}(0,1.5)(3,1.5) |
| 220 |
\psline[linewidth=1pt]{H-H}(0,0.5)(3,0.5) |
| 221 |
\end{pspicture} |
| 222 |
\end{LTXexample} |
| 223 |
|
| 224 |
|
| 225 |
\begin{LTXexample}[width=7.25cm] |
| 226 |
$\begin{psmatrix} |
| 227 |
E&W_i(X)&&Y\\ |
| 228 |
&&W_j(X) |
| 229 |
\psset{arrows=->,nodesep=3pt,linewidth=2pt} |
| 230 |
\everypsbox{\scriptstyle} |
| 231 |
\ncline[linecolor=red,arrows=H->,% |
| 232 |
hooklength=4mm,hookwidth=2mm]{1,1}{1,2} |
| 233 |
\ncline{1,2}{1,4}^{\tilde{t}} |
| 234 |
\ncline{1,2}{2,3}<{W_{ij}} |
| 235 |
\ncline{2,3}{1,4}>{\tilde{s}} |
| 236 |
\end{psmatrix}$ |
| 237 |
\end{LTXexample} |
| 238 |
|
| 239 |
|
| 240 |
%-------------------------------------------------------------------------------------- |
| 241 |
\subsection{\nxLkeyword{ArrowInside} Option} |
| 242 |
%-------------------------------------------------------------------------------------- |
| 243 |
|
| 244 |
It is now possible to have arrows inside lines and not only at the |
| 245 |
beginning or the end. The new defined options |
| 246 |
|
| 247 |
\psset{arrowscale=2,linecolor=red,unit=1cm,linewidth=1.5pt} |
| 248 |
\begin{longtable}{l|>{\RaggedRight}p{8.5cm}|p{2.2cm}} |
| 249 |
Name & Example & Output\\\hline |
| 250 |
\endfirsthead |
| 251 |
Name & Example & Output\\\hline |
| 252 |
\endhead |
| 253 |
\Lkeyword{ArrowInside} & |
| 254 |
\texttt{\textbackslash psline[ArrowInside=->](0,0)(2,0)} & |
| 255 |
\psline[ArrowInside=->](0,0.1)(2,0.1) \\ |
| 256 |
\Lkeyword{ArrowInsidePos} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 257 |
\hspace*{20pt}\texttt{ArrowInsidePos=0.25](0,0)(2,0)} |
| 258 |
& \psline[ArrowInside=->, ArrowInsidePos=0.25](0,0.1)(2,0.1) \\ |
| 259 |
\Lkeyword{ArrowInsidePos} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 260 |
\hspace*{20pt}\texttt{ArrowInsidePos=10](0,0)(2,0)} |
| 261 |
& \psline[ArrowInside=->, ArrowInsidePos=10](0,0.1)(2,0.1) \\ |
| 262 |
\Lkeyword{ArrowInsideNo} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 263 |
\hspace*{20pt}\texttt{ArrowInsideNo=2](0,0)(2,0)} |
| 264 |
& \psline[ArrowInside=->, ArrowInsideNo=2](0,0.1)(2,0.1) \\ |
| 265 |
\Lkeyword{ArrowInsideOffset} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 266 |
\hspace*{20pt}\texttt{ArrowInsideNo=2,\%}\newline |
| 267 |
\hspace*{20pt}\texttt{ArrowInsideOffset=0.1](0,0)(2,0)} |
| 268 |
& \psline[ArrowInside=->, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0.1)(2,0.1) \\ |
| 269 |
% |
| 270 |
\Lkeyword{ArrowInside} & \texttt{\textbackslash psline[ArrowInside=->]\{->\}(0,0)(2,0)} & |
| 271 |
\psline[ArrowInside=->]{->}(0,0)(2,0)\\ |
| 272 |
\Lkeyword{ArrowInsidePos} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 273 |
\hspace*{20pt}\texttt{ArrowInsidePos=0.25]\{->\}(0,0)(2,0)} |
| 274 |
& \psline[ArrowInside=->, ArrowInsidePos=0.25]{->}(0,0)(2,0) \\ |
| 275 |
\Lkeyword{ArrowInsidePos} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 276 |
\hspace*{20pt}\texttt{ArrowInsidePos=10]\{->\}(0,0)(2,0)} |
| 277 |
& \psline[ArrowInside=->, ArrowInsidePos=10]{->}(0,0)(2,0) \\ |
| 278 |
\Lkeyword{ArrowInsideNo} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 279 |
\hspace*{20pt}\texttt{ArrowInsideNo=2]\{->\}(0,0)(2,0)} |
| 280 |
& \psline[ArrowInside=->, ArrowInsideNo=2]{->}(0,0)(2,0) \\ |
| 281 |
\Lkeyword{ArrowInsideOffset} & \texttt{\textbackslash psline[ArrowInside=->,\%} |
| 282 |
\hspace*{20pt}\texttt{ArrowInsideNo=2,\%}\newline |
| 283 |
\hspace*{20pt}\texttt{ArrowInsideOffset=0.1]\{->\}(0,0)(2,0)} |
| 284 |
& \psline[ArrowInside=->, ArrowInsideNo=2,ArrowInsideOffset=0.1]{->}(0,0)(2,0) \\ |
| 285 |
% |
| 286 |
\Lkeyword{ArrowFill} & \texttt{\textbackslash psline[ArrowFill=false,\%} |
| 287 |
\hspace*{20pt}\texttt{arrowinset=0]\{->\}(0,0)(2,0)} & |
| 288 |
\psline[ArrowFill=false,arrowinset=0]{->}(0,0)(2,0)\\ |
| 289 |
\Lkeyword{ArrowFill} & \texttt{\textbackslash psline[ArrowFill=false,\%} |
| 290 |
\hspace*{20pt}\texttt{arrowinset=0]\{<<->>\}(0,0)(2,0)} & |
| 291 |
\psline[ArrowFill=false,arrowinset=0]{<<->>}(0,0)(2,0)\\ |
| 292 |
\Lkeyword{ArrowFill} & \texttt{\textbackslash psline[ArrowInside=->,\%}\newline |
| 293 |
\hspace*{20pt}\texttt{arrowinset=0,\%}\newline |
| 294 |
\hspace*{20pt}\texttt{ArrowFill=false,\%}\newline |
| 295 |
\hspace*{20pt}\texttt{ArrowInsideNo=2,\%}\newline |
| 296 |
\hspace*{20pt}\texttt{ArrowInsideOffset=0.1]\{->\}(0,0)(2,0)} |
| 297 |
& \psline[ArrowInside=->, ArrowFill=false,ArrowInsideNo=2,ArrowInsideOffset=0.1]{->}(0,0)(2,0) \\ |
| 298 |
\end{longtable} |
| 299 |
|
| 300 |
\medskip |
| 301 |
Without the default arrow definition there is only the one inside |
| 302 |
the line, defined by the type and the position. The position is |
| 303 |
relative to the length of the whole line. $0.25$ means at $25\%$ |
| 304 |
of the line length. The peak of the arrow gets the coordinates |
| 305 |
which are calculated by the macro. If you want arrows with an |
| 306 |
absolute position difference, then choose a value greater than |
| 307 |
\verb|1|, e.\,g. \verb|10| which places an arrow every 10~pt. The |
| 308 |
default unit \verb|pt| cannot be changed. |
| 309 |
|
| 310 |
\medskip |
| 311 |
\noindent |
| 312 |
\begin{tabularx}{\linewidth}{@{\color{red}\vrule width 2pt}lX@{}} |
| 313 |
& The \Lkeyword{ArrowInside} takes only arrow definitions like \Lnotation{->} into account. |
| 314 |
Arrows from right to left (\Lnotation{<-}) are not possible and ignored. If you need |
| 315 |
such arrows, change the order of the pairs of coordinates for the line or curve macro. |
| 316 |
\end{tabularx} |
| 317 |
|
| 318 |
%-------------------------------------------------------------------------------------- |
| 319 |
\subsection{\nxLkeyword{ArrowFill} option} |
| 320 |
%-------------------------------------------------------------------------------------- |
| 321 |
|
| 322 |
By default all arrows are filled polygons. With the option |
| 323 |
\Lkeyset{ArrowFill=false} there are ''white`` arrows. Only for the |
| 324 |
beginning/end arrows are they empty, the inside arrows are |
| 325 |
overpainted by the line. |
| 326 |
|
| 327 |
|
| 328 |
\begin{LTXexample}[width=3.5cm] |
| 329 |
\psline[arrowscale=2.5,linecolor=red,arrowinset=0]{<->}(-1,0)(2,0) |
| 330 |
\end{LTXexample} |
| 331 |
|
| 332 |
\psset{arrowscale=1} |
| 333 |
\begin{LTXexample}[width=3.5cm] |
| 334 |
\psline[arrowscale=2.5,linecolor=red,arrowinset=0,ArrowFill=false]{<->}(-1,0)(2,0) |
| 335 |
\end{LTXexample} |
| 336 |
|
| 337 |
\begin{LTXexample}[width=3.5cm] |
| 338 |
\psline[arrowscale=2.5,linecolor=red,arrowinset=0,arrowsize=0.2, |
| 339 |
ArrowFill=false]{<->}(-1,0)(2,0) |
| 340 |
\end{LTXexample} |
| 341 |
|
| 342 |
\begin{LTXexample}[width=3.5cm] |
| 343 |
\psline[arrowscale=2.5,linecolor=blue,arrowscale=4,ArrowFill]{>>->>}(-1,0)(2,0) |
| 344 |
\end{LTXexample} |
| 345 |
|
| 346 |
\begin{LTXexample}[width=3.5cm] |
| 347 |
\psline[linecolor=blue,arrowscale=3,ArrowFill=false]{>>->>}(-1,0)(2,0) |
| 348 |
\end{LTXexample} |
| 349 |
|
| 350 |
\begin{LTXexample}[width=3.5cm] |
| 351 |
\psline[linecolor=blue,arrowscale=3,ArrowFill]{>|->|}(-1,0)(2,0) |
| 352 |
\end{LTXexample} |
| 353 |
|
| 354 |
\begin{LTXexample}[width=3.5cm] |
| 355 |
\psline[linecolor=blue,arrowscale=4,ArrowFill=false]{>|->|}(-1,0)(2,0) |
| 356 |
\end{LTXexample} |
| 357 |
|
| 358 |
|
| 359 |
%-------------------------------------------------------------------------------------- |
| 360 |
\subsection{\nxLkeyword{tipcolor} option} |
| 361 |
%-------------------------------------------------------------------------------------- |
| 362 |
|
| 363 |
It is possible to change the color of the arrow tip by setting \Lkeyword{tipcolor}: |
| 364 |
|
| 365 |
|
| 366 |
\begin{center} |
| 367 |
\bgroup |
| 368 |
\psset{linecolor=black,linewidth=1pt,arrowscale=2}% |
| 369 |
\begin{tabular}{lp{2.8cm}}% |
| 370 |
Value & Example \\[2pt]\hline |
| 371 |
\rlap{\texttt{\textbackslash psset\{tipcolor=red\}}}\\ |
| 372 |
\verb+\psline{->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red]{->>}(0,1ex)(2.3,1ex) \\ |
| 373 |
\verb+\psline[nArrowsA=3]{->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red,nArrowsA=3]{->>}(0,1ex)(2.3,1ex)\\ |
| 374 |
\verb+\psline[nArrowsA=5]{->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red,nArrowsA=5]{->>}(0,1ex)(2.3,1ex)\\ |
| 375 |
\verb+\psline{<<-}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red]{<<-}(0,1ex)(2.3,1ex)\\ |
| 376 |
\verb+\psline[nArrowsA=3]{<<-}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red,nArrowsA=3]{<<-}(0,1ex)(2.3,1ex)\\ |
| 377 |
\verb+\psline[nArrowsA=5]{<<-}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=red,nArrowsA=5]{<<-}(0,1ex)(2.3,1ex)\\ |
| 378 |
\rlap{\texttt{\textbackslash psset\{tipcolor=blue\}}}\\ |
| 379 |
\verb+\psline{<<->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue]{<<->>}(0,1ex)(2.3,1ex)\\ |
| 380 |
\verb+\psline[nArrowsA=3]{<<->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue,nArrowsA=3]{<<->>}(0,1ex)(2.3,1ex)\\ |
| 381 |
\verb+\psline[nArrowsA=5]{<<->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue,nArrowsA=5]{<<->>}(0,1ex)(2.3,1ex)\\ |
| 382 |
\verb+\psline{<<-|}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue]{<<-|}(0,1ex)(2.3,1ex)\\ |
| 383 |
\verb+\psline[nArrowsA=3]{<<-<<}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue,nArrowsA=3]{<<-<<}(0,1ex)(2.3,1ex)\\ |
| 384 |
\verb+\psline[nArrowsA=5]{<<-o}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=blue,nArrowsA=5]{<<-o}(0,1ex)(2.3,1ex)\\ |
| 385 |
\verb+\psline[tipcolor=magenta,nArrowsA=3,nArrowsB=4]{<<-<<}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=magenta,nArrowsA=3,nArrowsB=4]{<<-<<}(0,1ex)(2.3,1ex)\\ |
| 386 |
\verb+\psline[tipcolor=cyan,nArrowsA=3,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=cyan,nArrowsA=3,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)\\ |
| 387 |
\verb+\psline[tipcolor=yellow,nArrowsA=1,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)+ & \psline[tipcolor=yellow,nArrowsA=1,nArrowsB=4]{>>->>}(0,1ex)(2.3,1ex)\\\hline |
| 388 |
\end{tabular} |
| 389 |
\egroup |
| 390 |
\end{center} |
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
\clearpage |
| 395 |
|
| 396 |
|
| 397 |
\subsection{Big Arrows} |
| 398 |
|
| 399 |
\begin{LTXexample}[width=5cm] |
| 400 |
\begin{pspicture}(5,5) |
| 401 |
\psset{doublesep=1cm} |
| 402 |
\psBigArrow[fillstyle=solid, |
| 403 |
fillcolor=blue!30,linecolor=blue](0,3)(5,3) |
| 404 |
\psBigArrow[fillstyle=solid,opacity=0.3, |
| 405 |
fillcolor=red,linecolor=red](0.5,0.5)(5,5) |
| 406 |
\end{pspicture} |
| 407 |
\end{LTXexample} |
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
%-------------------------------------------------------------------------------------- |
| 413 |
\subsection{Examples} |
| 414 |
%-------------------------------------------------------------------------------------- |
| 415 |
|
| 416 |
All examples are printed with \verb|\psset{arrowscale=2,linecolor=red}|. |
| 417 |
\subsubsection{\nxLcs{psline}} |
| 418 |
|
| 419 |
\bigskip |
| 420 |
\begin{LTXexample}[width=2.5cm] |
| 421 |
\begin{pspicture}(2,2) |
| 422 |
\psset{arrowscale=2,ArrowFill=true} |
| 423 |
\psline[ArrowInside=->]{|<->|}(2,1) |
| 424 |
\end{pspicture} |
| 425 |
\end{LTXexample} |
| 426 |
|
| 427 |
\begin{LTXexample}[width=2.5cm] |
| 428 |
\begin{pspicture}(2,2) |
| 429 |
\psset{arrowscale=2,ArrowFill=true} |
| 430 |
\psline[ArrowInside=-|]{|-|}(2,1) |
| 431 |
\end{pspicture} |
| 432 |
\end{LTXexample} |
| 433 |
|
| 434 |
\begin{LTXexample}[width=2.5cm] |
| 435 |
\begin{pspicture}(2,2) |
| 436 |
\psset{arrowscale=2,ArrowFill=true} |
| 437 |
\psline[ArrowInside=->,ArrowInsideNo=2]{->}(2,1) |
| 438 |
\end{pspicture} |
| 439 |
\end{LTXexample} |
| 440 |
|
| 441 |
|
| 442 |
\begin{LTXexample}[width=2.5cm] |
| 443 |
\begin{pspicture}(2,2) |
| 444 |
\psset{arrowscale=2,ArrowFill=true} |
| 445 |
\psline[ArrowInside=->,ArrowInsideNo=2,ArrowInsideOffset=0.1]{->}(2,1) |
| 446 |
\end{pspicture} |
| 447 |
\end{LTXexample} |
| 448 |
|
| 449 |
\begin{LTXexample}[width=6.5cm] |
| 450 |
\begin{pspicture}(6,2) |
| 451 |
\psset{arrowscale=2,ArrowFill=true} |
| 452 |
\psline[ArrowInside=-*]{->}(0,0)(2,1)(3,0)(4,0)(6,2) |
| 453 |
\end{pspicture} |
| 454 |
\end{LTXexample} |
| 455 |
|
| 456 |
\begin{LTXexample}[width=6.5cm] |
| 457 |
\begin{pspicture}(6,2) |
| 458 |
\psset{arrowscale=2,ArrowFill=true} |
| 459 |
\psline[ArrowInside=-*,ArrowInsidePos=0.25]{->}(0,0)(2,1)(3,0)(4,0)(6,2) |
| 460 |
\end{pspicture} |
| 461 |
\end{LTXexample} |
| 462 |
|
| 463 |
\begin{LTXexample}[width=6.5cm] |
| 464 |
\begin{pspicture}(6,2) |
| 465 |
\psset{arrowscale=2,ArrowFill=true} |
| 466 |
\psline[ArrowInside=-*,ArrowInsidePos=0.25,ArrowInsideNo=2]{->}% |
| 467 |
(0,0)(2,1)(3,0)(4,0)(6,2) |
| 468 |
\end{pspicture} |
| 469 |
\end{LTXexample} |
| 470 |
|
| 471 |
\begin{LTXexample}[width=6.5cm] |
| 472 |
\begin{pspicture}(6,2) |
| 473 |
\psset{arrowscale=2,ArrowFill=true} |
| 474 |
\psline[ArrowInside=->, ArrowInsidePos=0.25]{->}% |
| 475 |
(0,0)(2,1)(3,0)(4,0)(6,2) |
| 476 |
\end{pspicture} |
| 477 |
\end{LTXexample} |
| 478 |
|
| 479 |
\begin{LTXexample}[width=6.5cm] |
| 480 |
\begin{pspicture}(6,2) |
| 481 |
\psset{arrowscale=2,ArrowFill=true} |
| 482 |
\psline[linestyle=none,ArrowInside=->,ArrowInsidePos=0.25]{->}% |
| 483 |
(0,0)(2,1)(3,0)(4,0)(6,2) |
| 484 |
\end{pspicture} |
| 485 |
\end{LTXexample} |
| 486 |
|
| 487 |
\begin{LTXexample}[width=6.5cm] |
| 488 |
\begin{pspicture}(6,2) |
| 489 |
\psset{arrowscale=2,ArrowFill=true} |
| 490 |
\psline[ArrowInside=-<, ArrowInsidePos=0.75]{->}% |
| 491 |
(0,0)(2,1)(3,0)(4,0)(6,2) |
| 492 |
\end{pspicture} |
| 493 |
\end{LTXexample} |
| 494 |
|
| 495 |
\begin{LTXexample}[width=6.5cm] |
| 496 |
\begin{pspicture}(6,2) |
| 497 |
\psset{arrowscale=2,ArrowFill=true,ArrowInside=-*} |
| 498 |
\psline(0,0)(2,1)(3,0)(4,0)(6,2) |
| 499 |
\psset{linestyle=none} |
| 500 |
\psline[ArrowInsidePos=0](0,0)(2,1)(3,0)(4,0)(6,2) |
| 501 |
\psline[ArrowInsidePos=1](0,0)(2,1)(3,0)(4,0)(6,2) |
| 502 |
\end{pspicture} |
| 503 |
\end{LTXexample} |
| 504 |
|
| 505 |
\begin{LTXexample}[width=6.5cm] |
| 506 |
\begin{pspicture}(6,5) |
| 507 |
\psset{arrowscale=2,ArrowFill=true} |
| 508 |
\psline[ArrowInside=->,ArrowInsidePos=20](0,0)(3,0)% |
| 509 |
(3,3)(1,3)(1,5)(5,5)(5,0)(7,0)(6,3) |
| 510 |
\end{pspicture} |
| 511 |
\end{LTXexample} |
| 512 |
|
| 513 |
\begin{LTXexample}[width=6.5cm] |
| 514 |
\begin{pspicture}(6,2) |
| 515 |
\psset{arrowscale=2,ArrowFill=true} |
| 516 |
\psline[ArrowInside=-|]{<->}(0,2)(2,0)(3,2)(4,0)(6,2) |
| 517 |
\end{pspicture} |
| 518 |
\end{LTXexample} |
| 519 |
|
| 520 |
|
| 521 |
\clearpage |
| 522 |
|
| 523 |
%-------------------------------------------------------------------------------------- |
| 524 |
\subsubsection{\nxLcs{pspolygon}} |
| 525 |
%-------------------------------------------------------------------------------------- |
| 526 |
% Polygons (\pspolygon macro) |
| 527 |
|
| 528 |
\begin{LTXexample}[width=6.5cm] |
| 529 |
\begin{pspicture}(6,3) |
| 530 |
\psset{arrowscale=2} |
| 531 |
\pspolygon[ArrowInside=-|](0,0)(3,3)(6,3)(6,1) |
| 532 |
\end{pspicture} |
| 533 |
\end{LTXexample} |
| 534 |
|
| 535 |
\begin{LTXexample}[width=6.5cm] |
| 536 |
\begin{pspicture}(6,3) |
| 537 |
\psset{arrowscale=2} |
| 538 |
\pspolygon[ArrowInside=->,ArrowInsidePos=0.25]% |
| 539 |
(0,0)(3,3)(6,3)(6,1) |
| 540 |
\end{pspicture} |
| 541 |
\end{LTXexample} |
| 542 |
|
| 543 |
\begin{LTXexample}[width=6.5cm] |
| 544 |
\begin{pspicture}(6,3) |
| 545 |
\psset{arrowscale=2} |
| 546 |
\pspolygon[ArrowInside=->,ArrowInsideNo=4]% |
| 547 |
(0,0)(3,3)(6,3)(6,1) |
| 548 |
\end{pspicture} |
| 549 |
\end{LTXexample} |
| 550 |
|
| 551 |
\begin{LTXexample}[width=6.5cm] |
| 552 |
\begin{pspicture}(6,3) |
| 553 |
\psset{arrowscale=2} |
| 554 |
\pspolygon[ArrowInside=->,ArrowInsideNo=4,% |
| 555 |
ArrowInsideOffset=0.1](0,0)(3,3)(6,3)(6,1) |
| 556 |
\end{pspicture} |
| 557 |
\end{LTXexample} |
| 558 |
|
| 559 |
\begin{LTXexample}[width=6.5cm] |
| 560 |
\begin{pspicture}(6,3) |
| 561 |
\psset{arrowscale=2} |
| 562 |
\pspolygon[ArrowInside=-|](0,0)(3,3)(6,3)(6,1) |
| 563 |
\psset{linestyle=none,ArrowInside=-*} |
| 564 |
\pspolygon[ArrowInsidePos=0](0,0)(3,3)(6,3)(6,1) |
| 565 |
\pspolygon[ArrowInsidePos=1](0,0)(3,3)(6,3)(6,1) |
| 566 |
\psset{ArrowInside=-o} |
| 567 |
\pspolygon[ArrowInsidePos=0.25](0,0)(3,3)(6,3)(6,1) |
| 568 |
\pspolygon[ArrowInsidePos=0.75](0,0)(3,3)(6,3)(6,1) |
| 569 |
\end{pspicture} |
| 570 |
\end{LTXexample} |
| 571 |
|
| 572 |
\psset{linestyle=solid} |
| 573 |
|
| 574 |
\begin{LTXexample}[width=6.5cm] |
| 575 |
\begin{pspicture}(6,5) |
| 576 |
\psset{arrowscale=2} |
| 577 |
\pspolygon[ArrowInside=->,ArrowInsidePos=20]% |
| 578 |
(0,0)(3,0)(3,3)(1,3)(1,5)(5,5)(5,0)(7,0)(6,3) |
| 579 |
\end{pspicture} |
| 580 |
\end{LTXexample} |
| 581 |
|
| 582 |
|
| 583 |
\clearpage |
| 584 |
|
| 585 |
|
| 586 |
%-------------------------------------------------------------------------------------- |
| 587 |
\subsubsection{\nxLcs{psbezier}} |
| 588 |
%-------------------------------------------------------------------------------------- |
| 589 |
% Bezier curves (\psbezier macro) |
| 590 |
|
| 591 |
|
| 592 |
\begin{LTXexample}[width=3.5cm] |
| 593 |
\begin{pspicture}(3,3) |
| 594 |
\psset{arrowscale=2} |
| 595 |
\psbezier[ArrowInside=-|](0,1)(1,0)(2,1)(3,3) |
| 596 |
\psset{linestyle=none,ArrowInside=-o} |
| 597 |
\psbezier[ArrowInsidePos=0.25](0,1)(1,0)(2,1)(3,3) |
| 598 |
\psbezier[ArrowInsidePos=0.75](0,1)(1,0)(2,1)(3,3) |
| 599 |
\psset{linestyle=none,ArrowInside=-*} |
| 600 |
\psbezier[ArrowInsidePos=0](0,1)(1,0)(2,1)(3,3) |
| 601 |
\psbezier[ArrowInsidePos=1](0,1)(1,0)(2,1)(3,3) |
| 602 |
\end{pspicture} |
| 603 |
\end{LTXexample} |
| 604 |
|
| 605 |
|
| 606 |
|
| 607 |
\resetArrowOptions |
| 608 |
\begin{LTXexample}[width=4.5cm] |
| 609 |
\begin{pspicture}(4,3) |
| 610 |
\psset{arrowscale=2} |
| 611 |
\psbezier[ArrowInside=->,showpoints]% |
| 612 |
{*-*}(0,0)(2,3)(3,0)(4,2) |
| 613 |
\end{pspicture} |
| 614 |
\end{LTXexample} |
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
\begin{LTXexample}[width=4.5cm] |
| 620 |
\begin{pspicture}(4,3) |
| 621 |
\psset{arrowscale=2} |
| 622 |
\psbezier[ArrowInside=->,showpoints=true, |
| 623 |
ArrowInsideNo=2](0,0)(2,3)(3,0)(4,2) |
| 624 |
\end{pspicture} |
| 625 |
\end{LTXexample} |
| 626 |
|
| 627 |
|
| 628 |
\begin{LTXexample}[width=4.5cm] |
| 629 |
\begin{pspicture}(4,3) |
| 630 |
\psset{arrowscale=2} |
| 631 |
\psbezier[ArrowInside=->,showpoints=true, |
| 632 |
ArrowInsideNo=2,ArrowInsideOffset=-0.2]% |
| 633 |
{->}(0,0)(2,3)(3,0)(4,2) |
| 634 |
\end{pspicture} |
| 635 |
\end{LTXexample} |
| 636 |
|
| 637 |
|
| 638 |
\begin{LTXexample}[width=5.5cm] |
| 639 |
\begin{pspicture}(5,3) |
| 640 |
\psset{arrowscale=2} |
| 641 |
\psbezier[ArrowInsideNo=9,ArrowInside=-|,% |
| 642 |
showpoints=true]{*-*}(0,0)(1,3)(3,0)(5,3) |
| 643 |
\end{pspicture} |
| 644 |
\end{LTXexample} |
| 645 |
|
| 646 |
\begin{LTXexample}[width=4.5cm] |
| 647 |
\begin{pspicture}(4,3) |
| 648 |
\psset{arrowscale=2} |
| 649 |
\psset{ArrowInside=-|} |
| 650 |
\psbezier[ArrowInsidePos=0.25,showpoints=true]{*-*}(2,3)(3,0)(4,2) |
| 651 |
\psset{linestyle=none} |
| 652 |
\psbezier[ArrowInsidePos=0.75](0,0)(2,3)(3,0)(4,2) |
| 653 |
\end{pspicture} |
| 654 |
\end{LTXexample} |
| 655 |
|
| 656 |
\begin{LTXexample}[width=5.5cm] |
| 657 |
\begin{pspicture}(5,6) |
| 658 |
\psset{arrowscale=2} |
| 659 |
\pnode(3,4){A}\pnode(5,6){B}\pnode(5,0){C} |
| 660 |
\psbezier[ArrowInside=->,% |
| 661 |
showpoints=true](A)(B)(C) |
| 662 |
\psset{linestyle=none,ArrowInside=-<} |
| 663 |
\psbezier[ArrowInsideNo=4](0,0)(A)(B)(C) |
| 664 |
\psset{ArrowInside=-o} |
| 665 |
\psbezier[ArrowInsidePos=0.1](0,0)(A)(B)(C) |
| 666 |
\psbezier[ArrowInsidePos=0.9](0,0)(A)(B)(C) |
| 667 |
\psset{ArrowInside=-*} |
| 668 |
\psbezier[ArrowInsidePos=0.3](0,0)(A)(B)(C) |
| 669 |
\psbezier[ArrowInsidePos=0.7](0,0)(A)(B)(C) |
| 670 |
\end{pspicture} |
| 671 |
\end{LTXexample} |
| 672 |
|
| 673 |
\psset{linestyle=solid} |
| 674 |
|
| 675 |
\begin{LTXexample}[pos=t] |
| 676 |
\psset{unit=0.75} |
| 677 |
\begin{pspicture}(-3,-5)(15,5) |
| 678 |
\psbezier[ArrowInsideNo=19,% |
| 679 |
ArrowInside=->,ArrowFill=false,% |
| 680 |
showpoints=true]{->}(-3,0)(5,-5)(8,5)(15,-5) |
| 681 |
\end{pspicture} |
| 682 |
\end{LTXexample} |
| 683 |
|
| 684 |
|
| 685 |
\psset{unit=1cm} |
| 686 |
|
| 687 |
%-------------------------------------------------------------------------------------- |
| 688 |
\subsubsection{\nxLcs{pcline}} |
| 689 |
%-------------------------------------------------------------------------------------- |
| 690 |
These examples need the package \verb|pst-node|. |
| 691 |
|
| 692 |
% Lines (\pcline macro) |
| 693 |
\begin{LTXexample}[width=2.5cm] |
| 694 |
\begin{pspicture}(2,1) |
| 695 |
\psset{arrowscale=2} |
| 696 |
\pcline[ArrowInside=->](0,0)(2,1) |
| 697 |
\end{pspicture} |
| 698 |
\end{LTXexample} |
| 699 |
|
| 700 |
|
| 701 |
\begin{LTXexample}[width=2.5cm] |
| 702 |
\begin{pspicture}(2,1) |
| 703 |
\psset{arrowscale=2} |
| 704 |
\pcline[ArrowInside=->]{<->}(0,0)(2,1) |
| 705 |
\end{pspicture} |
| 706 |
\end{LTXexample} |
| 707 |
|
| 708 |
|
| 709 |
\begin{LTXexample}[width=2.5cm] |
| 710 |
\begin{pspicture}(2,1) |
| 711 |
\psset{arrowscale=2} |
| 712 |
\pcline[ArrowInside=-|,ArrowInsidePos=0.75]{|-|}(0,0)(2,1) |
| 713 |
\end{pspicture} |
| 714 |
\end{LTXexample} |
| 715 |
|
| 716 |
|
| 717 |
\begin{LTXexample}[width=2.5cm] |
| 718 |
\psset{arrowscale=2} |
| 719 |
\pcline[ArrowInside=->,ArrowInsidePos=0.65]{*-*}(0,0)(2,0) |
| 720 |
\naput[labelsep=0.3]{\large$g$} |
| 721 |
\end{LTXexample} |
| 722 |
|
| 723 |
|
| 724 |
\begin{LTXexample}[width=2.5cm] |
| 725 |
\psset{arrowscale=2} |
| 726 |
\pcline[ArrowInside=->,ArrowInsidePos=10]{|-|}(0,0)(2,0) |
| 727 |
\naput[labelsep=0.3]{\large$l$} |
| 728 |
\end{LTXexample} |
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
%-------------------------------------------------------------------------------------- |
| 733 |
\subsubsection{\nxLcs{pccurve}} |
| 734 |
%-------------------------------------------------------------------------------------- |
| 735 |
These examples also need the package \verb|pst-node|. |
| 736 |
|
| 737 |
\begin{LTXexample}[width=2.5cm] |
| 738 |
\begin{pspicture}(2,2) |
| 739 |
\psset{arrowscale=2} |
| 740 |
\pccurve[ArrowInside=->,ArrowInsidePos=0.65,showpoints=true]{*-*}(0,0)(2,2) |
| 741 |
\naput[labelsep=0.3]{\large$h$} |
| 742 |
\end{pspicture} |
| 743 |
\end{LTXexample} |
| 744 |
|
| 745 |
|
| 746 |
\begin{LTXexample}[width=2.5cm] |
| 747 |
\begin{pspicture}(2,2) |
| 748 |
\psset{arrowscale=2} |
| 749 |
\pccurve[ArrowInside=->,ArrowInsideNo=3,showpoints=true]{|->}(0,0)(2,2) |
| 750 |
\naput[labelsep=0.3]{\large$i$} |
| 751 |
\end{pspicture} |
| 752 |
\end{LTXexample} |
| 753 |
|
| 754 |
|
| 755 |
\begin{LTXexample}[width=4.5cm] |
| 756 |
\begin{pspicture}(4,4) |
| 757 |
\psset{arrowscale=2} |
| 758 |
\pccurve[ArrowInside=->,ArrowInsidePos=20]{|-|}(0,0)(4,4) |
| 759 |
\naput[labelsep=0.3]{\large$k$} |
| 760 |
\end{pspicture} |
| 761 |
\end{LTXexample} |
| 762 |
|
| 763 |
|
| 764 |
\subsection{Special arrows \texttt{v--V},\texttt{t--T}, and \texttt{f--F}} |
| 765 |
|
| 766 |
Possible optional arguments are |
| 767 |
|
| 768 |
\psset{linecolor=black} |
| 769 |
|
| 770 |
\begin{center} |
| 771 |
\begin{tabular}{@{}l|l@{}}\toprule |
| 772 |
\emph{name} & \emph{meaning}\\\hline |
| 773 |
\Lkeyword{veearrowlength} & default is 3mm\\ |
| 774 |
\Lkeyword{veearrowangle} & default is 30\\ |
| 775 |
\Lkeyword{veearrowlinewidth} & default is 0.35mm\\ |
| 776 |
\Lkeyword{filledveearrowlength} & default is 3mm\\ |
| 777 |
\Lkeyword{filledveearrowangle} & default is 15\\ |
| 778 |
\Lkeyword{filledveearrowlinewidth} & default is 0.35mm\\ |
| 779 |
\Lkeyword{tickarrowlength} & default is 1.5mm\\ |
| 780 |
\Lkeyword{tickarrowlinewidth} & default is 0.35mm\\ |
| 781 |
\Lkeyword{arrowlinestyle} & default is solid\\\bottomrule |
| 782 |
\end{tabular} |
| 783 |
\end{center} |
| 784 |
|
| 785 |
|
| 786 |
\begin{LTXexample}[width=4cm] |
| 787 |
\psset{unit=5mm} |
| 788 |
\begin{pspicture}(4,6) |
| 789 |
\psset{dimen=middle,arrows=c-c, |
| 790 |
arrowscale=2,linewidth=.25mm} |
| 791 |
\psline[linecolor=red,linewidth=.05mm](0,0)(0,6) |
| 792 |
\psline[linecolor=red,linewidth=.05mm](4,0)(4,6) |
| 793 |
\psline{v-v}(0,6)(4,6) |
| 794 |
\psline{v-V}(0,4)(4,4) |
| 795 |
\psline{V-v}(0,2)(4,2) |
| 796 |
\psline{V-V}(0,0)(4,0) |
| 797 |
\end{pspicture} |
| 798 |
\end{LTXexample} |
| 799 |
|
| 800 |
|
| 801 |
\begin{LTXexample}[width=4cm] |
| 802 |
\psset{unit=5mm} |
| 803 |
\begin{pspicture}(4,6) |
| 804 |
\psset{dimen=middle,arrows=c-c, |
| 805 |
arrowscale=2,linewidth=.25mm} |
| 806 |
\psline[linecolor=red,linewidth=.05mm](0,0)(0,6) |
| 807 |
\psline[linecolor=red,linewidth=.05mm](4,0)(4,6) |
| 808 |
\psline{f-f}(0,6)(4,6) |
| 809 |
\psline{f-F}(0,4)(4,4) |
| 810 |
\psline{F-f}(0,2)(4,2) |
| 811 |
\psline{F-F}(0,0)(4,0) |
| 812 |
\end{pspicture} |
| 813 |
\end{LTXexample} |
| 814 |
|
| 815 |
|
| 816 |
\begin{LTXexample}[width=4cm] |
| 817 |
\psset{unit=5mm} |
| 818 |
\begin{pspicture}(4,6) |
| 819 |
\psset{dimen=middle,arrows=c-c,linewidth=.25mm} |
| 820 |
\psline[linecolor=red,linewidth=.05mm](0,0)(0,6) |
| 821 |
\psline[linecolor=red,linewidth=.05mm](4,0)(4,6) |
| 822 |
\psline{t-t}(0,6)(4,6) |
| 823 |
\psline{t-T}(0,4)(4,4) |
| 824 |
\psline{T-t}(0,2)(4,2) |
| 825 |
\psline{T-T}(0,0)(4,0) |
| 826 |
\end{pspicture} |
| 827 |
\end{LTXexample} |
| 828 |
|
| 829 |
\begin{LTXexample}[pos=t,vsep=5mm] |
| 830 |
\psset{unit=5mm} |
| 831 |
\begin{pspicture}(10,6) |
| 832 |
\psset{dimen=middle,arrows=c-c,arrowscale=2,linewidth=.25mm, |
| 833 |
arrowlinestyle=dashed,dash=1.5pt 1pt} |
| 834 |
\psline[linecolor=red,linewidth=.05mm](0,0)(0,6) |
| 835 |
\psline[linecolor=red,linewidth=.05mm](4,0)(4,6) |
| 836 |
\psline{v-v}(0,6)(4,6) \psline{v-V}(0,4)(4,4) |
| 837 |
\psline{V-v}(0,2)(4,2) \psline{V-V}(0,0)(4,0) |
| 838 |
\psline[linecolor=red,linewidth=.05mm](6,0)(6,6) |
| 839 |
\psline[linecolor=red,linewidth=.05mm](10,0)(10,6) |
| 840 |
\psset{arrowlinestyle=dotted,dotsep=0.8pt} |
| 841 |
\psline{v-v}(6,6)(10,6) \psline{v-V}(6,4)(10,4) |
| 842 |
\psline{V-v}(6,2)(10,2) \psline{V-V}(6,0)(10,0) |
| 843 |
\end{pspicture} |
| 844 |
\end{LTXexample} |
| 845 |
|
| 846 |
\begin{LTXexample}[pos=t,vsep=5mm] |
| 847 |
\psset{unit=5mm} |
| 848 |
\begin{pspicture}(10,7) |
| 849 |
\psset{dimen=middle,arrows=c-c,arrowscale=2,linewidth=.25mm, |
| 850 |
arrowlinestyle=dashed,dash=1.5pt 1pt} |
| 851 |
\psline[linecolor=red,linewidth=.05mm](0,0)(0,6) |
| 852 |
\psline[linecolor=red,linewidth=.05mm](4,0)(4,6) |
| 853 |
\psline{t-t}(0,6)(4,6) \psline{t-T}(0,4)(4,4) |
| 854 |
\psline{T-t}(0,2)(4,2) \psline{T-T}(0,0)(4,0) |
| 855 |
\psline[linecolor=red,linewidth=.05mm](6,0)(6,6) |
| 856 |
\psline[linecolor=red,linewidth=.05mm](10,0)(10,6) |
| 857 |
\psset{arrowlinestyle=dotted,dotsep=0.8pt} |
| 858 |
\psline{t-t}(6,6)(10,6) \psline{t-T}(6,4)(10,4) |
| 859 |
\psline{T-t}(6,2)(10,2) \psline{T-T}(6,0)(10,0) |
| 860 |
\end{pspicture} |
| 861 |
\end{LTXexample} |
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
\subsection{Special arrow option \texttt{arrowLW}} |
| 869 |
|
| 870 |
Only for the arrowtype \Lnotation{o} and \Lnotation{*} it is possible to |
| 871 |
set the arrowlinewidth with the optional keyword \Lkeyword{arrowLW}. |
| 872 |
When scaling an arrow by the keyword \Lkeyword{arrowscale} the width |
| 873 |
of the borderline is also scaled. With the optional argument |
| 874 |
\Lkeyword{arrowLW} the line width can be set separately and is not |
| 875 |
taken into account by the scaling value. |
| 876 |
|
| 877 |
\begin{LTXexample}[width=4cm] |
| 878 |
\begin{pspicture}(4,6) |
| 879 |
\psline[arrowscale=3,arrows=*-o](0,5)(4,5) |
| 880 |
\psline[arrowscale=3,arrows=*-o, |
| 881 |
arrowLW=0.5pt](0,3)(4,3) |
| 882 |
\psline[arrowscale=3,arrows=*-o, |
| 883 |
arrowLW=0.3333\pslinewidth](0,1)(4,1) |
| 884 |
\end{pspicture} |
| 885 |
\end{LTXexample} |
| 886 |
|
| 887 |
|
| 888 |
\section{List of all optional arguments for \texttt{pst-arrow}} |
| 889 |
|
| 890 |
\xkvview{family=pst-arrow,columns={key,type,default}} |
| 891 |
|
| 892 |
|
| 893 |
\bgroup |
| 894 |
\raggedright |
| 895 |
\nocite{*} |
| 896 |
\printbibliography |
| 897 |
\egroup |
| 898 |
|
| 899 |
\printindex |
| 900 |
\end{document} |
| 901 |
|