[pstricks] Arrow between two nodes

Thu Oct 10 09:27:41 CEST 2002

> I want an arrow on the line (and curve) joining two nodes with label above
> and
> below the arrow as:
>
>               g
>       B *----->-----*B

Here is a solution (it's not probably the best)

\begin{pspicture}(5,5)
\pnode(0,0){A}
\pnode(5,5){B}
\ncline{*-*}{A}{B}
\naput[npos=.25]{g}
\ncput[nrot=:U]{\psline(-.1,0)(.1,0)}
\end{pspicture}

Regards

Christophe