Menu

#180 circuitikz bug with decreasing coordinates values

v1.0_(example)
open
nobody
circuitikz (1)
5
2024-02-22
2024-02-21
ppgaz
No

Hello,
I use texmath to create electronic diagram. There is some problems when the line have to be drawn according to coordinates of decreasing value. A workaround is to draw all lines for increasing coordinates value.
Here is a screenshot of what I except (from overleaf) and what I have with texmath for this code ( I use \usepackage[european, straightvoltage]{circuitikz} in preamble) :

\begin{circuitikz}[scale=1]
\draw (0,0)to[battery1](0,2);
\draw (0,2)to[R=$R$](2,2);
\draw (2,2)to[rmeter, t=A](4,2);
\draw (4,2)to[lamp=$L$,i=$i$](4,0);
\draw (4,0) to[short,i=$i_2$] (2,0);
\draw (2,0)to[rmeter, t=G](0,0) node[above right=-.5cm]{$+$};
\end{circuitikz}
1 Attachments

Discussion

  • Roland Baudin

    Roland Baudin - 2024-02-21

    Ok, could you try with the attached version?

     
  • ppgaz

    ppgaz - 2024-02-22

    Waow perfect ! Thank you very much for your quick response !

     

Log in to post a comment.