![图片左侧的表格](https://linux22.com/image/416260/%E5%9B%BE%E7%89%87%E5%B7%A6%E4%BE%A7%E7%9A%84%E8%A1%A8%E6%A0%BC.png)
我需要在这个电路 (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}