如何在右括号后对齐多行

如何在右括号后对齐多行

我希望右括号后面的文本与括号对齐。但它们一直向右移动并与最长行的末尾垂直对齐。

  \begin{align*}
    \left.
        \begin{aligned}
            x=ab\\
            y=ab\\
            z=ab\\
        \end{aligned}
    \right\}
    \begin{aligned}
        something in 1st row\\
        something in 2nd row which is super long and causes some\\
        something in 3rd row\\
        something in 4th row\\
        something in 5th row
    \end{aligned} 
    \end{align*}

我需要将这些行与括号旁边对齐]

答案1

欢迎来到 TeX.SE!

您需要在第二个文本前插入“与”符号aligned(如果您希望表达式与第一个文本对齐,则还需要在等号前插入“与”符号):

\documentclass{article}
\usepackage{amsmath}

\begin{document}

  \begin{align*}
    \left.
        \begin{aligned}
            x & =ab\\
            y & =ab\\
            z & =ab\\
        \end{aligned}
    \right\}
    \begin{aligned}
        &   something in 1st row\\
        &   something in 2nd row which is super long and causes some\\
        &   something in 3rd row\\
        &   something in 4th row\\
        &   something in 5th row
    \end{aligned}
    \end{align*}

\end{document}

在此处输入图片描述

相关内容