# Latex bracket on multiple lines

How can I code the equations with big brackets on the right and left sides shown in the picture? Thank you for your help!

New contributor
Lei Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
• This probably have to be done via tikz with some tikzmarks and decorations. – daleif Sep 15 at 11:46
• @daleif I not will make surely with Mathcha. :-) :-) – Sebastiano Sep 15 at 11:53
• nicematrix is good candidate ... – Zarko Sep 15 at 11:53
• Welcome to the TeX.SE. – Sebastiano Sep 15 at 12:06

This works because stackengine can set equations with fixed baselineskip.

\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}


• Excellent as usual :-) I had not understood the picture. – Sebastiano Sep 15 at 12:05
• Wow...No words to express....Great.... – MadyYuvi Sep 15 at 12:13

A solution with 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}


• This also wonderful....You all are great .... – MadyYuvi Sep 15 at 14:28

Just a small try, but Steven B. Segletes answer is 100 times better than mine, here is the MWE for my try:

\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}

• It is not really true. You should fix it because it not specular to the image. See better the output. :) – Sebastiano Sep 15 at 12:22
• @Sebastiano Yes, when I saw the answer from Steven then just I stopped working, should improve my knowledge.... – MadyYuvi Sep 15 at 14:29
• Each of us has its own human, personal, logical, etc.. You also have the humility to recognize your limits, like me who knows my limits. Slowly you will also learn. – Sebastiano Sep 15 at 19:04