[pstricks] Centering text in a circular node

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun May 20 21:15:58 CEST 2007


Poul Riis wrote:
> How can I in an elegant way center text in circles of given size? See
> not-satisfying example below.
>
>
> \documentclass[10pt,a4paper,danish]{article}
> \usepackage[dvipsnames,x11names]{xcolor}
> \usepackage{pst-node}
>
> \usepackage{pstricks-add}
> \usepackage[danish]{babel}
> \usepackage[latin1]{inputenc}
>
> \topmargin=4cm
>
> \begin{document}
> \huge\bf
> \psset{unit=2cm}
> \begin{center}
> \color{Red2}
> \cnode[linecolor=Red2,linewidth=3pt](-1,1){2}{A}
> \uput{0}[180]{0}(A){\begin{tabular}{c}Physical & pain \end{tabular}}
>   

\rput(A){\begin{tabular}{c}Physical \\ pain \end{tabular}}


Herbert




More information about the PSTricks mailing list