2

Searching the issue I only found answers for pictures...

I would like to shift these arrows here:

enter image description here

Here I would like to shift not only the arrow but the equation too. Is it possible?

enter image description here

Here both codes:

\documentclass[11pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz}                     
\usetikzlibrary{shapes.geometric, arrows}

\begin{center}
        \begin{circuitikz}[american voltages]
        \ctikzset { label/align = straight }
        \draw (0,0) 
        to[R, l=$R_c$, o-o] (4,0)
        to[R, l=$R_a$, o-o] (2,-3)
        to[R, l=$R_b$, o-o] (0,0)
        {[anchor=east] (0,0) node {a} [anchor=west] (4,0) node {b} [anchor = north] (2,-3) node {c}};
        \end{circuitikz}
        $\hspace{0.25in} \displaystyle \Leftrightarrow \hspace{0.25in}$
        \begin{circuitikz}[american voltages]
        \ctikzset { label/align = straight }
        \draw (0,0) 
        to[R, l=$R_1$, o-*] (2,-1)
        to[R, l=$R_2$, *-o] (4,0) (2,-1)
        to[R, l=$R_3$, *-o] (2,-3)
        {[anchor=east] (0,0) node {a} [anchor=west] (4,0) node {b} [anchor = north] (2,-3) node {c}};
        \end{circuitikz}
        \end{center}

\begin{figure}[h!]
        \begin{center}
        \begin{circuitikz}[american voltages]
        \draw (0,0) 
        to[V,v=$V$] (2,0) % The voltage source
        to[short,-o](2.75,0);
        \draw[thick](2.78,0)-- +(30:0.46);
        \draw(3.25,0)to[short,o-](4,0)
        to[short, i=$i$] (4,-2)
        to[L,l=$L$] (2,-2)
        to[R,l=$R$] (0,-2)
        to[short] (0,0) ;
        \end{circuitikz}
        $\hspace{0.25in} \displaystyle \Leftrightarrow \hspace{0.25in}
        L \frac{di}{dt} + Ri = V$ (switch closed)
        \end{center}
        \end{figure}
2

Use ,baseline=(current bounding box.center) in the options of circuitikz

\documentclass[11pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\begin{document}
\begin{center}
        \begin{circuitikz}[american voltages,baseline=(current bounding box.center)]
        \ctikzset { label/align = straight }
        \draw (0,0)
        to[R, l=$R_c$, o-o] (4,0)
        to[R, l=$R_a$, o-o] (2,-3)
        to[R, l=$R_b$, o-o] (0,0)
        {[anchor=east] (0,0) node {a} [anchor=west] (4,0) node {b} [anchor = north] (2,-3) node {c}};
        \end{circuitikz}
        $\hspace{0.25in} \displaystyle \Leftrightarrow \hspace{0.25in}$
        \begin{circuitikz}[american voltages,baseline=(current bounding box.center)]
        \ctikzset { label/align = straight }
        \draw (0,0)
        to[R, l=$R_1$, o-*] (2,-1)
        to[R, l=$R_2$, *-o] (4,0) (2,-1)
        to[R, l=$R_3$, *-o] (2,-3)
        {[anchor=east] (0,0) node {a} [anchor=west] (4,0) node {b} [anchor = north] (2,-3) node {c}};
        \end{circuitikz}
        \end{center}

\begin{figure}[h!]
        \begin{center}
        \begin{circuitikz}[american voltages,baseline=(current bounding box.center)]
        \draw (0,0)
        to[V,v=$V$] (2,0) % The voltage source
        to[short,-o](2.75,0);
        \draw[thick](2.78,0)-- +(30:0.46);
        \draw(3.25,0)to[short,o-](4,0)
        to[short, i=$i$] (4,-2)
        to[L,l=$L$] (2,-2)
        to[R,l=$R$] (0,-2)
        to[short] (0,0) ;
        \end{circuitikz}
        $\hspace{0.25in} \displaystyle \Leftrightarrow \hspace{0.25in}
        L \frac{di}{dt} + Ri = V$ (switch closed)
        \end{center}
        \end{figure}
        \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.