将上部支撑/下部支撑置于盒状环境之外

将上部支撑/下部支撑置于盒状环境之外

有没有一种简单的方法(无需复杂的 tikz 或类似的东西)将下支撑/上支撑放置在“boxed”数学环境之外?如果支撑在 boxed 之外具有相同的高度位置,那就太好了。

 \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl}

\usepackage{amsmath,amssymb,stmaryrd}       


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\[ \underset{(22)}{\Leftrightarrow} \boxed{ \overbrace{\frac{ \dfrac{c}{\lambda^2} \cdot \left[ \frac{(\lambda-1-\tau)^2}{1+\tau} + (\lambda-1)^2 \right] }{(\rho + 2 \cdot I - n)}}^{marg. R\&D revenue} = \overbrace{\chi \cdot B(w_L,w_H)}^{marg. R\&D costs} } \tag{32} \]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

得出:

在此处输入图片描述

有没有一种简短而又花哨的方法可以让它看起来美观?

谢谢

答案1

我不知道有什么简单的方法,但在这种情况下,我将两个需要支撑的项目放入框中,并使用这些框的宽度将支架堆叠在元素外面\boxed

\documentclass[15pt,a4paper,headinclude, totoc]{scrartcl}

\usepackage{amsmath,amssymb,stmaryrd}       
\usepackage[usestackEOL]{stackengine}
\stackMath
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newsavebox\itemA
\savebox\itemA{$\displaystyle\frac{ \dfrac{c}{\lambda^2} \cdot \left[ 
  \frac{(\lambda-1-\tau)^2}{1+\tau} + (\lambda-1)^2 \right] }{(\rho + 2 \cdot I - n)}$}

\newsavebox\itemB
\savebox\itemB{$\chi \cdot B(w_L,w_H)$}

\[ \underset{(22)}{\Leftrightarrow} 
\def\stackalignment{l}
\stackon{%
  \boxed{ \usebox{\itemA} = \usebox{\itemB} }
}{%
  \overbrace{\kern\wd\itemA}^{\text{marg. R\&D revenue}} \phantom{{}={}}
  \overbrace{\kern\wd\itemB}^{\text{marg. R\&D costs}}
}%
 \tag{32} \]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

在此处输入图片描述

相关内容