我正在尝试使用 \underbrace 函数来定义一些变量,但这里的问题是公式太长,因此整个公式无法显示在一行上。我认为一个可能的解决方案是将公式分成两行,但我找不到这样做的方法,你能给我一些建议吗?谢谢!代码如下:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=4cm,right=4cm,top=4cm,bottom=4cm]{geometry}
\usepackage{tabularx,ragged2e, array,amsmath}
\newcolumntype{L}{>{\RaggedRight}X}
\renewcommand\tabularxcolumn[1]{m{#1}}
\begin{document}
\begin{center}
\begin{tabularx}{\textwidth}{@{} >{$}l<{$} | >{$}L<{$} @{}}
\text{Cases} & \text{Values of } \Delta_{\alpha} \\
\hline
x_1 < x_2, y_1, y_2 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(R_{\max} - w_{21'} - w_{22'}) + \nu(1')(w_{21'} - w_{22'})}_{\alpha_1} \big]\\
x_2 < x_1, y_1, y_2 & \alpha - \big[\underbrace{R_{\max} - w_{11'} + \mu(1)(w_{11'} + w_{12'} - R_{\max}) + \nu(1)(w_{11'} - w_{12'})}_{\alpha_2}\big] \\
y_1 < x_1, x_2, y_2 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(w_{12'} - w_{22'}) + \nu(1)(R_{\max} - w_{12'} - w_{22'})}_{\alpha_3} \big] \\
y_2 < x_1, x_2, y_1 & \alpha - \big[\underbrace{R_{\max} - w_{11'} + \mu(1)(w_{11'} - w_{21'}) + \nu(1)(w_{11'} + w_{21'} - R_{\max})}_{\alpha_4} \big] \\
x_1 = y_1 < x_2 = y_2 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(w_{12'} - w_{22'}) + \nu(1')(w_{21'} - w_{22'}) + \mu(1) \nu(1') (R_{\max} - w_{21'} - w_{12'})}_{\alpha_5}\big]\\
x_1 = y_2 < x_2 = y_1 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(R_{\max} - w_{21'} - w_{22'}) + \nu(1')(w_{21'} - w_{22'}) + \mu(1) \nu(1') (w_{11'} + w_{22'} - R_{\max})}_{\alpha_6}\big]\\
x_2 = y_1 < x_1 = y_2 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(w_{12'} - w_{22'}) + \nu(1')(R_{\max} - w_{12'} - w_{22'}) + \mu(1) \nu(1') (w_{11'} + w_{22'} - R_{\max})}_{\alpha_7}\big] \\
x_2 = y_2 < x_1 = y_1 & \alpha - \big[\underbrace{R_{\max} - w_{11'} + \mu(1)(w_{11'} + w_{12'} - R_{\max}) + \nu(1')(w_{11'} + w_{21'} - R_{\max}) + \mu(1) \nu(1') (R_{\max} - w_{12'} - w_{21'})}_{\alpha_8}\big] \\
x_1 = x_2 = y_1 = y_2 & \alpha - \big[\underbrace{w_{22'} + \mu(1)(w_{12'} - w_{22'}) + \nu(1')(w_{21'} - w_{22'}) + \mu(1) \nu(1') (w_{11'} + w_{22'} - w_{12'} - w_{21'})}_{\alpha_9} \big]
\end{tabularx}
\end{center}
\end{document}
答案1
您可以array
在公式中使用环境:
...
\begin{tabularx}{\textwidth}{@{} >{$}l<{$} | >{$}L<{$} @{}}
\text{Cases} & \text{Values of } \Delta_{\alpha} \\
\hline
x_1 < x_2, y_1, y_2 & \alpha - \underbrace{\left[
\begin{array}{l}
w_{22'} + \mu(1)(R_{\max} - w_{21'} - w_{22'}) \\
+\,\nu(1')(w_{21'} - w_{22'})
\end{array}
\right]}_{\alpha_1}
\end{tabularx}
...
这导致:
我将\big[
和改为\big]
和\left[
,\right]
并将下括号移动,使其也包括括号。这样会得到一个视觉上更吸引人的输出,因为括号与(现在是两行的)子公式完美匹配。
还请注意,您可能需要在新行的开头为操作符添加额外的空格(就像我+\,\nu(1') ...
在第二行中所做的那样array
,我\,
为其添加了空格)。