[pstricks] Placing labels at arbitrary positions

hjsalchow at aol.com hjsalchow at aol.com
Tue Oct 17 09:14:36 CEST 2006


LaTeX at zedat.fu-berlin.de schrieb:
> hjsalchow at aol.com wrote:
>
>   
>> tho the easiest (may be not the most elegant) way to work with a non-TeX
>> data files is to change the form of the data a bit; say form
>> "text(x,y,label)" as you stated to "\mymacro text(x,y,label)".
>>     
>
> then you can also say
>
> %%%begin of data.tex
> \text(1,2,first label ...)
> \text(2,1,second label ...)
> %%% end of data.tex
>
>
> \documentclass{article}
> \def\text(#1,#2,#3){\rput[bl](#1,#2){#3}}%
> \usepackage{pstricks}
> \begin{document}
> \begin{pspicture}[showgrid=true](4,4)
> \input data
> \end{pspicture}
> \end{document}
>
>
> Herbert
>
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>   
I was not certain that "\text" was not predefined by TeX and frinds.

Hans-Juergen Salchow



More information about the PSTricks mailing list