14.07.2013 Views

PSTricks - CTAN

PSTricks - CTAN

PSTricks - CTAN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6<br />

5<br />

4 <br />

3<br />

2<br />

1<br />

0<br />

3.2. New optionalarguments 4<br />

bar<br />

foo<br />

0 1 2 3 4 5<br />

<br />

3.2. New optional arguments<br />

1 \begin{pspicture}[showgrid](5,6)<br />

2 \pnode(0,4){A}\psdot(A)<br />

3 \pnode(3,2){B}\psdot(B)<br />

4 \psline(A)(B)<br />

5 \psline[linestyle=dashed](A)(3,4)<br />

6 \psline[linestyle=dashed](A)(3,6)<br />

7 \psline[linestyle=dashed](B)<br />

8 \uput{1cm}[(B)](A){foo}<br />

9 \uput{1cm}[(B)](>A){bar}<br />

10 \end{pspicture}<br />

The new arguments are only valid for the macros \psellipse, \pscircle, \psarc.<br />

\psellipticarc, \pscurve, \psplot, and \psparametricplot.<br />

name type default description<br />

dashcolor color \relax for colored dashed lines<br />

startLW length \pslinewidth starting linewidth<br />

endLW length \pslinewidth ending linewidth<br />

startWL integer 380 starting wave length<br />

endWL integer 780 ending wave length<br />

variableLW boolean false use variable linewidth<br />

variableColor boolean false use variable color<br />

1 \psset{linewidth=2mm,linestyle=dashed}<br />

2 \begin{pspicture}(4,-4)<br />

3 \psline[linecolor=blue,dashcolor=red,linearc=0.5](0,0)(4,0)(4,-4)<br />

4 \psline[linecolor=blue,dashcolor=cyan,linearc=0.5](0,0)(0,-4)(4,-4)<br />

5 \end{pspicture}\quad<br />

6 \begin{pspicture}(4,4)<br />

7 \psframe[linecolor=blue,dashcolor=green,framearc=0.5](0,0)(4,4)<br />

8 \end{pspicture}<br />

9 \quad \psset{linecap=2,dash=5mm 5mm }<br />

10 \begin{pspicture}(4,-4)<br />

11 \psline[linecolor=black,dashcolor=black!40,linecap=0](0,0)(4,-4)<br />

12 \psline[linecolor=blue,dashcolor=red,linearc=0.5](0,0)(4,0)(4,-4)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!