我需要在这个电路 (1) 旁边放一张桌子,如下图 (2) 所示。提前 Tranks!
\begin{figure}[h]
\centering
\begin{circuitikz}
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_s$] (-3, 0.5)
(opamp.-) |- (-1, 1.5) to[R,l^=$R_f$] (1, 1.5) -| (opamp.out);
\draw (-3,0.5) node[ground,below]{};
\draw (opamp.-) to[short,*-] ++(0,0);
\draw (opamp.out) to[short,*-] ++(0,0)to[short](2,0)node[right]{$V_o$};
\draw (opamp.+)node[left]{$V_i$}
\end{circuitikz}
\end{figure}
答案1
中心对齐:
\documentclass{article}
\usepackage{circuitikz}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{figure}[h]
\centering
\begin{circuitikz}[baseline=(current bounding box.center)]
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_s$] (-3, 0.5)
(opamp.-) |- (-1, 1.5) to[R,l^=$R_f$] (1, 1.5) -| (opamp.out);
\draw (-3,0.5) node[ground,below]{};
\draw (opamp.-) to[short,*-] ++(0,0);
\draw (opamp.out) to[short,*-] ++(0,0) to[short] (2,0) node[right] {$V_o$};
\draw (opamp.+)node[left]{$V_i$};
\end{circuitikz}
\qquad
\begin{tabular}[c]{lr}
a & b \\
aa & bb
\end{tabular}
\end{figure}
\lipsum[1]
\end{document}
顶部对齐:
\documentclass{article}
\usepackage{circuitikz}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{figure}[h]
\centering
\begin{circuitikz}[baseline={(0, 1.5)}]
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_s$] (-3, 0.5)
(opamp.-) |- (-1, 1.5) to[R,l^=$R_f$] (1, 1.5) -| (opamp.out);
\draw (-3,0.5) node[ground,below]{};
\draw (opamp.-) to[short,*-] ++(0,0);
\draw (opamp.out) to[short,*-] ++(0,0) to[short] (2,0) node[right] {$V_o$};
\draw (opamp.+)node[left]{$V_i$};
\end{circuitikz}
\qquad
\begin{tabular}[t]{lr}
a & b \\
aa & bb
\end{tabular}
\end{figure}
\lipsum[1]
\end{document}