答案1
嵌套堆栈。我引入了\dnAr[<size>]{<label>}
这样做,其中的<size>
内容类似于\bigg
(默认)。在第二个示例中,我练习了可选参数\dnAr
。
\documentclass{report}
\usepackage{stackengine,graphicx}
\newcommand\dnAr[2][\bigg]{\ensurestackMath{%
\stackengine{-0.3pt}{#1\vert}{%
\stackengine{1pt}{\rotatebox{55}{$\leftarrow\mkern-2mu$}}{%
\mkern-5mu\scriptscriptstyle#2}{U}{l}{F}{T}{S}}{U}{r}{F}{T}{S}%
}}
\begin{document}
\[
V_u = V_i \frac{g_m}{1 + g_m R_s} \dnAr{I_d} R_d \dnAr{V_{R_d}}(-1)\dnAr{V_u}
\]
\[
V_u = V_i \frac{g_m}{1 + g_m R_s} \dnAr{I_d} R_d \dnAr[\big]{V_{R_d}}(-1)\dnAr[]{V_u}
\]
\end{document}
以下是带有 45 度角箭头和更紧密底部标签的版本:
\documentclass{report}
\usepackage{stackengine,graphicx}
\newcommand\dnAr[2][\bigg]{\ensurestackMath{%
\stackengine{-0.7pt}{#1\vert}{%
\stackengine{-1pt}{\rotatebox{45}{$\leftarrow\mkern-1.5mu$}}{%
\mkern-5mu\scriptscriptstyle#2}{U}{l}{F}{T}{S}}{U}{r}{F}{T}{S}%
}}
\begin{document}
\[
V_u = V_i \frac{g_m}{1 + g_m R_s} \dnAr{I_d} R_d \dnAr{V_{R_d}}(-1)\dnAr{V_u}
\]
\[
V_u = V_i \frac{g_m}{1 + g_m R_s} \dnAr{I_d} R_d \dnAr[\big]{V_{R_d}}(-1)\dnAr[]{V_u}
\]
\end{document}
答案2
Tikz 版本。
输出
代码
\documentclass{article}
\usepackage{tikz}
\newcommand\arrd[1]{
\tikz[baseline, inner xsep=-1cm]{
\draw[->] (0,.4) -- (0,-.2) -- (-.1,-.3) node[below, font=\tiny] {#1};
}\ % for spacing
}
\begin{document}
$V_u = V_i \frac{g_m}{1+g_mR_s} \arrd{$id$} R_d \arrd{$V_{R_d}$} (-1) \arrd{$V_u$}$
\end{document}