[Tex/LaTex] How to change the polarity of a voltage source

circuitikzcircuitsfloatstikz-circuit-lib

circuit

`\documentclass{article}
  \usepackage{graphicx}
  \usepackage[american]{circuitikz}
  \begin{document}
     \begin{figure}
       \centering  
       \begin{circuitikz}
      \draw (0,0)
    to[V,v=$V$] (0,3)        
    to[C=$C_1$] (5,3) 
    to [L=$L_1$] (5,0)
    to[short] (0,0);
   \end{circuitikz}
  \caption{}
   \end{figure}
  \end{document}

Best Answer

You can invert the voltage source by changing the counting direction of the voltage using v<=$V$ Your full example will look like:

\documentclass{article}
  \usepackage{graphicx}
  \usepackage[american]{circuitikz}
  \begin{document}
     \begin{figure}
       \centering  
       \begin{circuitikz}
      \draw (0,0)
    to[V,v<=$V$] (0,3)        
    to[C=$C_1$] (5,3) 
    to [L=$L_1$] (5,0)
    to[short] (0,0);
   \end{circuitikz}
  \caption{}
   \end{figure}
  \end{document}

enter image description here

Related Question