[pstricks] pst-circ, multiple labels

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Mar 6 15:48:58 CET 2007


Doris Wagner schrieb:
> another question concerning pst-circ: Is there a makro for assigning to 
> one object multiple labels at different places?
>
> I want to create objects with multiple labels, for example a circle 
> with A inside (ammeter) and $R=10\ohm$ above (the resistance of the 
> ammeter).
>
> I produced this solution, which is not very elegant, but shows that 
> working with rput or something similar is not what I want:
>   
elegant is  relative, sometimes a working solution is the best one ... ;-)
You can use an array here:

\documentclass{article}
\usepackage{pst-circ}
\usepackage{sistyle}
\begin{document}

\begin{pspicture}(4,2)
\pnode(0,2){B}
\pnode(4,2){C}
\multidipole(B)(C)
\resistor{$R_1=\SI{60}{\ohm}$}
\circledipole[labeloffset=9pt]%
  {$\begin{array}{c}R_1=\SI{60}{\ohm}\\[6pt]\textsf{\Large A}\end{array}$}.
\end{pspicture}

\end{document}

Herbert



More information about the PSTricks mailing list