[pstricks] Rotate Text on PS side
Herbert Voss
Herbert.Voss at fu-berlin.de
Mon Aug 13 10:05:47 CEST 2007
Christoph Bersch wrote:
> 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}
>
\ncput[nrot=:D]{Flipped}
see page 94 in the PSTricks book
Herbert
More information about the PSTricks
mailing list