# [pstricks] Placing labels at arbitrary positions

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Oct 16 15:46:57 CEST 2006

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