# [pstricks] writing in circles

Denis Girou Denis.Girou at idris.fr
Mon Aug 27 18:41:06 CEST 2001

>>>>> "Matthieu.Paindavoine" == Matthieu Paindavoine <mpaindav at toad.net> writes:

Matthieu.Paindavoine> I am trying to write some text on concentric circles. I would like the
Matthieu.Paindavoine> text to curve around the arcs, and to be readable without a mirror...

Matthieu.Paindavoine> So I tried two things:

Matthieu.Paindavoine> first using the pstextpath:

Matthieu.Paindavoine> ...

Matthieu.Paindavoine> The problem with this solution is that psarc works counter clockwise,
Matthieu.Paindavoine> and so the text on the upper half is from right to left.

Probably that the simplest way is to operate like you did, and to use
\psarcn for the upper half-circle.

Something like that:

\documentclass[11pt]{article}

\usepackage{pst-text}

\pagestyle{empty}

\begin{document}

\begin{figure}[htbp]
\centering
\begin{pspicture}(-4,-4)(3,4)
\psset{linestyle=none}
\pstextpath{\psarcn(0,0){3.5}{160}{200}}
{\shortstack{\texttt{above}\\(below)}}
\pstextpath{\psarcn(0,0){3.5}{100}{140}}
{\shortstack{\texttt{above}\\(below)}}
\pstextpath{\psarcn(0,0){3.5}{40}{0}}
{\shortstack{\texttt{above}\\(below)}}
\pstextpath{\psarc(0,0){3.5}{200}{240}}
{\shortstack{\texttt{above}\\(below)}}
\pstextpath{\psarc(0,0){3.5}{260}{300}}
{\shortstack{\texttt{above}\\(below)}}
\pstextpath{\psarc(0,0){3.5}{320}{360}}
{\shortstack{\texttt{above}\\(below)}}
\end{pspicture}
\end{figure}

\end{document}

D.G.

More information about the PSTricks mailing list