[pstricks] Placing labels at arbitrary positions

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Oct 17 16:53:37 CEST 2006



Jean-Côme Charpentier wrote:
> hjsalchow at aol.com a écrit :
> 
>>[...]
>>I was not certain that "\text" was not predefined by TeX and frinds.
> 
> 
>    In fact, \text is predefined by amsmath and this macro is very 
> useful. Imho, you should take another name.

why? PSTricks does all in a group ... :-)

\documentclass{article}
\usepackage{pstricks,amsmath}
\begin{document}
\begin{pspicture}[showgrid=true](4,4)
\def\text(#1,#2,#3){\rput[bl](#1,#2){#3}}%
\input data
\end{pspicture}

\begin{align}
   f(x) &= x^2-3 \quad\text{some words}
\end{align}

\end{document}


Herbert





More information about the PSTricks mailing list