Tuesday, January 1, 2008

PSTricks

I got "The Latex Graphics Companion" from the library the other day. While I don't generally use much in the way of graphics (besides xymatrix for commutative diagrams), I thought it'd be fun to look through. I'm sure its full of thousands of gems, but the one I want to keep a record of is text following a curve. This is from page 109:

\usepackage{pstcol,pst-text}
\begin{pspicture}(-4,-3.2)(3,0.2)
\psset{linecolor=lightgray}
\pstextpath
{\pscurve(-4,-2)(-2,0)(0,-3)(2,-1)(3,-2)}
{\color{blue}
If you want to type
$3 \int^x_y = \sum^{n=1}_{33}$
and let it follow along a
curving line \ldots}
\end{pspicture}

Someday I'll sit down and get more awesomeness out of the book. But for now, I should return it and let somebody else enjoy it.

No comments: