[pstricks] pst-circ, multiple labels

Doris Wagner doris.wagner at mac.com
Tue Mar 6 14:39:27 CET 2007


hi list,
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:

\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=0]{\Large$\mathsf{A}$}.
%repeat for second labeling
\multidipole(B)(C)
\resistor{$R_1=\SI{60}{\ohm}$}
\circledipole{$R_2=\SI{25}{\ohm}$}.
\end{pspicture}

\end{document}




More information about the PSTricks mailing list