Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Up: Graphics Previous: GIF and jpeg files

  
PStricks

The pstricks packages lets you create graphical effects from within LaTeX. See the PSTricks Tutorial for details. Here are just a few examples to show you its power.

\begin{pspicture}(0,-5)(6,0)
\pscircle*[linecolor=black](0,-4){1}
\pscircle*[linecolor=darkgray](.5,-4){1}
\pscircle*[linecolor=gray](1,-4){1}
\pscircle*[linecolor=lightgray](1.5,-4){1}

\pscurve(-1,-5)(2,0)(3,-2)(5,0)
\psbezier[linecolor=darkgray]%
(-1,-4)(2,0)(3,-2)(5,0)
\psgrid[gridwidth=.4pt, subgriddiv=2,
subgridwidth=.2pt, gridcolor=lightgray,
gridlabels=0](0,-3)(-1,-4)(5,0)%
\end{pspicture}
\begin{pspicture}(0,0)(6,4)
\psset{linecolor=white,linewidth=0pt}
\pstextpath{\pscurve(0,0)(2,2)(4,0)(6,2)}%needs the textpath package 
{\textit{Adapted From} ``\TeX{} Unbound'', Alan Hoenig, OUP, 1998 }
\end{pspicture}




\begin{pspicture}(0,0)(6,4)
\psset{linecolor=white,linewidth=0pt}
\pstextpath{\p...
...extit{Adapted From} \lq\lq \TeX{} Unbound'', Alan Hoenig, OUP, 1998 }
\end{pspicture}



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-27