多行 Latex 括号

多行 Latex 括号

在此处输入图片描述

我该如何编写图中左右两侧带有大括号的方程式?谢谢您的帮助!

答案1

这是因为stackengine可以用固定基线跳跃设置方程式。

\documentclass{article}
\usepackage{tabstackengine,amsmath}
\TABstackMath
\stackMath
\begin{document}
\[
%\setstackgap{L}{1.1\baselineskip}% VERTICAL SPACING OF CENTER EQUATIONS
%\renewcommand\stacktype{L}% GIVES LEFT/RIGHT EQS SAME VERTICAL SPACING AS CENTER EQS
\Centerstack{
\\
\\
\alignstackanchor{a=&b}{a=&b}{\left\{\begin{aligned}\\\\\end{aligned}\right.}\\
\\
\\
\alignstackanchor{a=&b}{a=&b}{\left\{\begin{aligned}\\\\\end{aligned}\right.}\\
\\
}
\alignCenterstack{
a=&b\\
a=&b\\
a=&b\\
a=&b\\
a=&b\\
a=&b\\
a=&b\\
a=&b
}
\Centerstack{
\smash{\phantom{\left.\begin{aligned}\\\\\end{aligned}\right\}}}a = b\\
\\
\\
{\left.\begin{aligned}\\\\\end{aligned}\right\}}\alignstackanchor{a=&b}{a=&b}\\
\\
\\
{\left.\begin{aligned}\\\\\end{aligned}\right\}}\alignstackanchor{a=&b}{a=&b}\\
}
\]
\end{document}

在此处输入图片描述

答案2

解决方案如下bigdelim

\documentclass{article}
\usepackage{amsmath}
\usepackage{array, bigdelim} 

\begin{document}


\[\setlength{\extrarowheight}{3pt} \begin{array}{c@{\,}c@{\enspace}c }
 & a = b & a = b \\
 \ldelim\{{3}{*}[$ \begin{gathered}
 a = b \\ a = b
\end{gathered} $ ] & a = b \\
& a = b & \rdelim\}{3}{*} [$ \begin{gathered}
 a = b \\ a = b
\end{gathered} $ ]\\
  & a = b \\
\ldelim\{{3}{*}[$ \begin{gathered}
a = b \\ a = b
\end{gathered} $ ] & a = b \\
  & a = b \\
  & a = b \\
  & a = b \\
\end{array} \]%

\end{document} 

在此处输入图片描述

答案3

只是一个小小的尝试,但Steven B. Segletes答案比我的好 100 倍,这是MWE我的尝试:

\documentclass{book}
\usepackage{mathtools,multirow}
\begin{document}

\begin{tabular}{ccc}
&$\begin{matrix}
a=b\\
a=b
\end{matrix}$ &$a=b$\\
$\begin{matrix}
a=b\\
a=b
\end{matrix}$ &\multirow{-2}{*}{\Bigg\{} $\begin{matrix}
a=b\\
a=b
\end{matrix}$ &\multirow{2}{*}{\Bigg\}} $\begin{matrix}
a=b\\
a=b
\end{matrix}$\\[19pt]
$\begin{matrix}
a=b\\
a=b
\end{matrix}$ &\multirow{-2}{*}{\Bigg\{} $\begin{matrix}
a=b\\
a=b\\
a=b\\
a=b
\end{matrix}$ &\multirow{2}{*}{\Bigg\}} $\begin{matrix}
a=b\\
a=b
\end{matrix}$
\end{tabular}

\end{document}

答案4

这是一个{NiceArray}使用 的解决方案nicematrix

\documentclass{article}
\usepackage{amsmath}
\usepackage{nicematrix}

\begin{document}

\[\setlength{\extrarowheight}{3pt} 
\begin{NiceArray}{c@{\hspace{1.5em}}c@{\hspace{1.5em}}c}
& a=b & a=b \\
\Block{3-1}{\begin{gathered}a=b\\ a=b\end{gathered}}
& a=b \\
& a=b & \Block{3-1}{\begin{gathered}a=b\\ a=b\end{gathered}}\\
& a=b \\
\Block{3-1}{\begin{gathered}a=b\\ a=b\end{gathered}}
& a=b \\
& a=b \\
& a=b \\
& a=b \\
\CodeAfter
  \SubMatrix{\lbrace}{2-2}{4-2}{.}
  \SubMatrix{.}{3-2}{5-2}{\rbrace}
  \SubMatrix{\lbrace}{5-2}{7-2}{.}
\end{NiceArray} \]%

\end{document} 

上述代码的输出

相关内容