[pstricks] pst-circ addition and filling problem
Herbert Voss
Herbert.Voss at fu-berlin.de
Thu Oct 10 12:53:15 CEST 2024
Am 10.10.24 um 11:41 schrieb Patrice MEGRET:
> The second example highlights a problem I have with the OA: if I use
> fillstyle=solid, I do not get the expected result, i.e., only the
> triangle should be filled. Moreover, fillstyle=hlines for example has
> no effect.
>
> But for a resistor, the results are correct with fillstyle=solid,
> hlines, ...
>
> How to fix that issue?
>
Patrice,
you have to reset the filling style after drawing the triangle
without the connector lines:
[...]
\rput(C@){\pst at draw@OA}% this is line 1027 in your file
\psset{fillstyle=none}% add this line
\ncangle[arrows=-,arm=.5,angleA=0,angleB=180]{#1}{\ifPst at OAinvert
Minus@\else Plus@\fi}
[...]
otherwise the follwing lines are also taken into account for the
filling path.
Herbert
> \documentclass{report}
> \usepackage{pst-circ-PM}
> %\listfiles
> \begin{document}
> \begin{pspicture}[showgrid=true](-1,-0.5)(4,2.5)
> \dotnode(0,2){NA}
> \dotnode(0,1){NB}
> \dotnode(3,1.5){NC}
> \OA[OAiso=true,OAinputlabel=false,OAperfect=false](NA)(NB)(NC)
> \end{pspicture}
> %
> \begin{pspicture}[showgrid=true](-4,-3)(3.2,3)
> \pnode(0,2){NA}%
> \pnode(0,0){NB}%
> \pnode(3,1){NC}%
> \OA[OAperfect=false,fillstyle=solid,fillcolor=blue!20](NA)(NB)(NC)%
> \resistor[fillstyle=solid,fillcolor=blue!20](-1,0)(-1,2){$R_2$}%
> \end{pspicture}
> \end{document} Best regards, Patrice
>
More information about the PSTricks
mailing list.