我想使用underbrace
或underset
与 结合来强调方程中的某种效果xleftarrow
。但是,underbrace
正如您在 MWE 中看到的那样,我对 的结果不太满意。使用underset
与 结合的结果xleftarrow
也不令人满意,因为“F”和“E”之间有很多空白(参见 MWE)。
如果是后者,我只想在文本“Fed_t”下方有一个箭头,指向等式 (3) 的左侧。如果这样做时字母之间没有多余的空格,我认为这是突出显示我想要的内容的最佳选择。有谁能帮我吗?
我们也非常欢迎其他建议来强调“Fed_t”对等式 3 左边的影响!
梅威瑟:
\documentclass[table]{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\usepackage{amsmath}
\usepackage{mathtools}
\let\underbrace\LaTeXunderbrace
\let\overbrace\LaTeXoverbrace
\begin{document}
\begin{frame}
\frametitle{Methodology}
\framesubtitle{General framework}
In the case of the eurozone:
\begin{equation}
\begin{aligned}
\underbrace{\Delta R^n_t = f (Fed_t}_{\text{Fed signalling effect}}, ECB_t, News_t ) \\
\end{aligned}
\end{equation}
\begin{itemize}
\item Fed UMP announcements $\Rightarrow$ $\Delta R^n_{t}$, $\Delta TPP^n_t$ and $\Delta TPR^n_t$. First, cancel out the effects through signalling:
\end{itemize}
\begin{equation}
\begin{aligned}
\Delta(Y^n_t - R^n_t)= \Delta TPP^n_t + \Delta TPR^n_t \\
\end{aligned}
\end{equation}
In case of the eurozone:
\begin{equation}
\begin{aligned}
\Delta(Y^n_t - R^n_t) = f (\underset{\xleftarrow[\text{Fed signalling}]{}} Fed_t , ECB_t, News_t, Sovereign_t) \\
\end{aligned}
\end{equation}
\end{frame}
\end{document}
答案1
这与\underbrace
第一个示例中的匹配:
\documentclass[table]{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
\begin{frame}
\frametitle{Methodology}
In case of the eurozone:
\begin{equation}
{\mathop{
\underleftarrow{\Delta(Y^n_t - R^n_t) = f (Fed_t}
}_{\text{Fed signalling effect}}}, ECB_t, News_t, Sovereign_t)
\end{equation}
\end{frame}
\end{document}
答案2
\useanchorwidth
通过设置参数的底层堆栈,T
底层堆栈材料的尺寸不会影响堆栈“锚点”的间距。
\documentclass[table]{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{stackengine}
\stackMath
\let\underbrace\LaTeXunderbrace
\let\overbrace\LaTeXoverbrace
\begin{document}
\begin{frame}
\frametitle{Methodology}
\framesubtitle{General framework}
In the case of the eurozone:
\begin{equation}
\begin{aligned}
\underbrace{\Delta R^n_t = f (Fed_t}_{\text{Fed signalling effect}}, ECB_t, News_t ) \\
\end{aligned}
\end{equation}
\begin{itemize}
\item Fed UMP announcements $\Rightarrow$ $\Delta R^n_{t}$, $\Delta TPP^n_t$ and $\Delta TPR^n_t$. First, cancel out the effects through signalling:
\end{itemize}
\begin{equation}
\begin{aligned}
\Delta(Y^n_t - R^n_t)= \Delta TPP^n_t + \Delta TPR^n_t \\
\end{aligned}
\end{equation}
In case of the eurozone:
\begin{equation}
\begin{aligned}
\Delta(Y^n_t - R^n_t) = f (\stackengine{3pt}{Fed_t}{%
\scriptstyle\xleftarrow[\text{Fed signalling}]{}}{U}{c}{F}{T}{S} , ECB_t, News_t, Sovereign_t) \\
\end{aligned}
\end{equation}
\end{frame}
\end{document}
或者,您可以使用来\mathclap
实现基本相同的结果:
\begin{aligned}
\Delta(Y^n_t - R^n_t) = f (\underset{\mathclap{\xleftarrow[
\text{Fed signalling}]{}}} {Fed_t} , ECB_t, News_t, Sovereign_t) \\
\end{aligned}
跟进
为了回答下面OP的评论,为了使 下的箭头右对齐FED_t
,可以使用
\begin{aligned}
\Delta(Y^n_t - R^n_t) = f (\stackengine{5pt}{Fe}{%
\scriptstyle\xleftarrow[\text{Fed signalling}]{}}{U}{r}{F}{T}{S}d_t ,
ECB_t, News_t, Sovereign_t) \\
\end{aligned}
这是通过将c
堆栈的对齐方式更改为r
对齐来实现的;使对齐发生在之后Fe
而不是之后Fed_t
;并将 stackunder 间隙增加到 5pt。