[pstricks] Rotate Text on PS side

Christoph Bersch usenet at bersch.net
Mon Aug 13 09:18:09 CEST 2007


Hi,

in the following example I want to flip the text put by \ncput if it 
would be set upside-down (in the example below 'Flipped' should be 
rotated by 180° in order to remain readable).
A possibility would clearly be to simply exchange the Nodes, but all the 
code around the Text (\ncline, \ncput) should remain untouched.

I tried something with \pstVerb{\tx at RotBegin} within the \ncput-Argument 
but didn't succeed.

documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pst-node}
\begin{document}

\begin{pspicture}[showgrid=true](5,4)
   \pnode(0,0){A}
   \pnode(2,4){B}
   \ncline{A}{B}
   \ncput[nrot=:U]{Normal}
%
   \pnode(5,0){C}
   \pnode(3,4){D}
   \ncline{C}{D}
   \ncput[nrot=:U]{Flipped}
%
\end{pspicture}
\end{document}

I hope the problem became clear.

Thank you
Christoph




More information about the PSTricks mailing list