我有三个连续的 if-else 条件符号。我想将它们的括号对齐在一起,但做不到。
\begin{equation*}
\begin{rcases}
\texttt{Chapter 1} \\
\texttt{Chapter 2}\\
\texttt{Chapter 3}
\end{rcases}
\text{Vector algebra, Simple Differentiation and Integration}
\end{equation*}
\begin{equation*}
\begin{rcases}
\texttt{Chapter 4} \\
\texttt{Chapter 5}\\
\texttt{Chapter 6}
\end{rcases}
\text{Vector Calculus}
\end{equation*}
\begin{equation*}
\begin{rcases}
\texttt{Chapter 7} \\
\end{rcases}
\text{Vector calculus and Tensor algebra}
\end{equation*}
答案1
我猜你想要一个NiceTabular
(参见的手册nicematrix
)。
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{ll}
Chapter 1 & \Block{3-1}{Vector algebra, Simple Differentiation and Integration} \\
Chapter 2 & \\
Chapter 3 & \\
\\
Chapter 4 & \Block{3-1}{Vector calculus} \\
Chapter 5 & \\
Chapter 6 & \\
\\
Chapter 7 & Vector calculus and Tensor algebra \\
\CodeAfter
\SubMatrix.{1-1}{3-1}\}
\SubMatrix.{5-1}{7-1}\}
\SubMatrix.{9-1}{9-1}\}
\end{NiceTabular}
\end{document}