[pstricks] pstricks: How to rotate characters on a circle line?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Aug 8 00:07:22 CEST 2009


Herbert Voss schrieb:
> Minsu schrieb:
> 
>>> \documentclass{article}
>>> \usepackage{pstricks-add}
>>> \pagestyle{empty}
>>> \makeatletter
>>> \def\placeChar#1{%
>>>   \global\pst at cntm=0
>>>   \expandafter\placeChar at i#1;}
>>> \def\placeChar at i#1#2;{%
>>>   \uput[\the\pst at cntm](5;\the\pst at cntm){\Huge#1}%
>>>   \global\advance\pst at cntm by 10
>>>   \ifx\relax#2\relax\else\expandafter\placeChar at i#2;\fi%}
>>>
>>> \makeatother
>>>
>>> \begin{document}
>>> \begin{pspicture}(-6,-6)(6,6)
>>> \placeChar{123AXYZ some more text on a circle}
>>> \end{pspicture}
>>>
>>> \end{document}
>> Whoa, that really looks great!
>> And I'm already playing with the given values. So how can I switch the
>> angle of rotation, that the characters appear 90° rotated to the
>> tangent (= baseline of the character when shown with \pstextpath)?
> 
>   \uput[\the\pst at cntm]{!\the\pst at cntm\space 360
> add}(4;\the\pst at cntm){\Huge#1}%

sorry, should be

  \uput[\the\pst at cntm]{\the\pst at cntm}(4;\the\pst at cntm){\Huge#1}%

Herbert


More information about the PSTricks mailing list