\rbrace의 수직 정렬

\rbrace의 수직 정렬

한동안 다음 문제를 해결하려고 노력했지만 아직 해결책을 찾지 못했습니다. 두 개의 \r중괄호를 수직으로 정렬하고 싶습니다. 이 코드

\begin{align}
  L = &\left. \text{short eq} \right\rbrace &&\text{description 1} \\
      &\left. \begin{aligned}
                \text{very long equation}\\
                \text{over multiple lines}
              \end{aligned}
       \right\rbrace &&\text{description 2}
\end{align} 

생산하다

여기에 이미지 설명을 입력하세요

하지만 서로 아래에 있는 버팀대를 조정하고 싶습니다.

여기에 이미지 설명을 입력하세요

누군가가 나를 도울 수 있기를 바랍니다. 감사합니다!

답변1

이 같은?

여기에 이미지 설명을 입력하세요

\documentclass{article} 
\usepackage{amsmath} % for 'align' environment and '\text' macro
\newlength\mylen     % create a "length" variable
\settowidth\mylen{very long equation} % calculate default width of '\mybox'
\newcommand\mybox[2][\mylen]{\parbox{#1}{\raggedright #2}}

\begin{document}
\begin{align}
L = &\left.\mybox{short eq}\right\rbrace &&
     \text{description 1} \\
    &\left.\mybox{very long equation over multiple lines}\right\rbrace &&
     \text{description 2}
\end{align} 
\end{document}

답변2

이런 건 어때요?

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation}
\begin{alignedat}{4}
 L = & \text{short eq } && \left. \text{ }  \right\rbrace  && \qquad \text{description 1} \\
     &\begin{aligned}
         &\text{22244 very long equation 5555}\\
         &\text{over multiple lines }
      \end{aligned} && \left. 
      \begin{aligned}
           \text{ }\\
           \text{ }
      \end{aligned}  \right\rbrace && \qquad \text{description 2}
\end{alignedat}
\end{equation}

\end{document}

다음과 같습니다 여기에 이미지 설명을 입력하세요

모든 선은 하나의 방정식으로 처리됩니다. 다음 게시물에서 아이디어를 빌렸습니다.

여러 줄 방정식의 수직 정렬

관련 정보