TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following code, my problem is that the braces 'A' should be the after row A1 and B1 and the second braces should be after D1 and E1. Hope someone can help?


        \multicolumn{1}{c}{} & 
        \multicolumn{2}{@{}c@{}}{$\underbrace{\hspace*{\dimexpr6\tabcolsep+2\arrayrulewidth}\hphantom{012}}_{\mathcal{B}}$} & \multicolumn{1}{c}{}&
\MyLBrace{3.5ex}{$\mathcal{A}$} \\ \\
\MyLBrace{3.5ex}{$\mathcal{A}$} \\
share|improve this question
Please tell us how \MyLBrace is defined. – Mico Mar 19 at 9:30
up vote 4 down vote accepted

Here's a solution that uses just one array environment.

enter image description here


    A1&2&5&11&13&5&7& \multirow{2}{*}{$\left.\rule[1.5ex]{0pt}{1.5ex}\right\}\mathcal{A}$}\\ 
    & \multicolumn{2}{@{}c@{}}{\underbrace{\hspace*{\dimexpr4\tabcolsep+1\arrayrulewidth}\hphantom{123}}_{\mathcal{B}}}     
    & \multicolumn{1}{c}{} 
    & \multicolumn{1}{@{}c@{}}{\underbrace{\hspace*{2\tabcolsep}\hphantom{.}}_{\mathcal{B}}}
share|improve this answer
Thank you :D You just made my day :D – Kate Mar 19 at 10:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.