我可以调整这张图片的大小吗Beamer
?
\begin{frame}
\begin{figure}[width=0.2\textwidth]
\centering
\begin{circuitikz}[american,node distance = 30pt]
\ctikzset{tripoles/mos style/arrows}
\draw (0,0) node[op amp,rotate = 90] (opamp) {}
(opamp.-) to [short,-*] ++(-2,0) coordinate (CMm)
to [short,-] ++(0,-1)
to node[npn,anchor=emitter,yscale = -1] (Q1){} node[right,yshift = -0.7cm] {$Q_1$} ++(0,-1)
(opamp.+) to [short,-*] ++(2,0) coordinate (CMp)
to [R,l=$R_1$] ++(0,-1.5)
to node[npn,anchor=emitter,yscale = -1,xscale = -1] (Q2){} node[left,yshift = -0.7cm] {$Q_2$} ++(0,0)
(Q1.base) |- (Q1.collector)
(Q2.base) |- (Q2.collector)
(CMp) to [short,-] ++(0,3)
to node[pmos,anchor=drain,yscale = 1,xscale = 1] (M2){} node[right,yshift = 0.7cm] {$M_2$} ++(0,1)
(CMm) to [short,-] ++(0,3)
to node[pmos,anchor=drain,yscale = 1,xscale = -1] (M1){} node[left,yshift = 0.7cm] {$M_1$} ++(0,1)
(M1.gate) to [short,-,l = $oa\_out$] (M2.gate)
(M1.source) to [short,-,l = $VDD$] (M2.source)
(opamp.out) to [C,l=$C_{16}$] ++(0,1) |- (M2.gate)
(Q1.collector) |- (Q2.collector) node[ground] {}
;
\end{circuitikz}
\caption{Basic voltage reference}
\label{fig:basic}
\end{figure}
\end{frame}
答案1
确实figure
不做任何事情beamer
,就像拥有一个center
环境一样。
要缩放图形,您可以使用两种方法:
与
scale
(transform shape
均为 Ti钾Z 选项):\begin{circuitikz}[american,node distance = 30pt, scale=0.7, transform shape]
使用
scalebox
--- 这也适用于不同的 x 和 y 比例,而前者将失败circuitikz
(请参阅手册中的“已知错误和限制”部分):您可以像这样包装您的电路:\scalebox{0.8}[0.7]{% \begin{circuitikz}[american,node distance = 30pt] ... \end{circuitikz}% }