1

I am trying to put a label in the right of the american current source, but it doesn't want to go. I tried to use l>=$4$A instead of i>=$4$A but there is an error on that. I tried to use v instead of i but the polarization shows up. What would be the solution for that?

\documentclass[11pt]{article}
\usepackage{circuitikz}
\usepackage{tikz}
\begin{document}

\begin{center}
        \begin{circuitikz}[american voltages, american currents, european resistors]
        \draw (0,0) 
        to[V, l=$50V$] (0,2)
        to[short, -*] (1.5,2)
        to[R, l=$5\Omega$] (3.5,2)
        to[R, l=$50\Omega$, -*] (3.5,0)         
        to[short] (0,0) (1.5,2)
        to[R, l=$40\Omega$, -*] (1.5,0) (5.5,2)     
        to[short] (7.5,2) (7.5,0)
        to[I, i>=$4$A] (7.5,2) (7.5, 0)
        to[short] (3.5,0) (5.5,2)
        to[R, l=$100\Omega$, -*] (5.5,0);
        \end{circuitikz}
\end{center}
\end{document}

enter image description here

Best regards!

2

Use to[I, i_>=$4$A] (7.5,2) (7.5, 0):

\documentclass[11pt]{article}
\usepackage{circuitikz}
\usepackage{tikz}
\begin{document}

\begin{center}
        \begin{circuitikz}[american voltages, american currents, european resistors]
        \draw (0,0)
        to[V, l=$50V$] (0,2)
        to[short, -*] (1.5,2)
        to[R, l=$5\Omega$] (3.5,2)
        to[R, l=$50\Omega$, -*] (3.5,0)
        to[short] (0,0) (1.5,2)
        to[R, l=$40\Omega$, -*] (1.5,0) (5.5,2)
        to[short] (7.5,2) (7.5,0)
        to[I, i_>=$4$A] (7.5,2) (7.5, 0)   %% Note _>= instead of >=
        to[short] (3.5,0) (5.5,2)
        to[R, l=$100\Omega$, -*] (5.5,0);
        \end{circuitikz}
\end{center}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.