# [pstricks] aput

Herbert Voss LaTeX at zedat.fu-berlin.de
Wed Jul 12 17:49:36 CEST 2006

Francisco A. S. Grossi wrote:
> Is there a way to control the position of a label written with aput?  I have
> two nodes and would like to put a label closer to one of them. Something
> like these:
>
>     label
> O-------------------------O
>
>                               label
> O-------------------------O
>
> I look trough the dovs and could not find that option although there is hint
> that it is possible.

\documentclass{article}
\usepackage{pst-node}
\begin{document}

\pnode(0,0){A}\pnode(3,0){B}
\ncline[linestyle=dashed]{A}{B}\naput[npos=0.2]{label}

\bigskip
\pnode(0,0){A}\pnode(3,0){B}
\ncline[linestyle=dashed]{A}{B}\naput[npos=1.2]{label}

\end{document}

Herbert