Take the 2-minute tour ×
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.

I'm trying to type a column with seven elements and some vertical big braces on its left and right. The code I use is

\[
\begin{array}{rcl}
& \Gamma & \\
\multirow{3}{*}{$\mathcal{D}_3 \bigg\{$} 
& \mathcal{D}_1 & \\
& A & \\
& \mathcal{D}_2 & \multirow{2}{*}{$\bigg\} \mathcal{D}_5$} \\
& B & \\
& \mathcal{D}_4 & \\
& C &
\end{array}
\]

which produces

this image

but I'd like to produce bigger and closer to the middle column braces such that the one on the left includes elements D_1 to D_2 and the one on the right includes D_2 to D_4.

Could anyone help?

share|improve this question
    
Ok, I used the code of this question, which introduces a new command, and made it. –  frabala Nov 24 '13 at 11:25

2 Answers 2

up vote 4 down vote accepted

The multirow package comes with another package bigdelim for such purposes. It is probably easiest to add an extra column for these brackets and kill the spacing between columns with @{} in the template:

Sample output

\documentclass{article}

\usepackage{multirow,bigdelim}

\begin{document}

\begin{displaymath}
  \begin{array}{r@{}c@{}c@{}c@{}l}
    && \Gamma && \\
    \multirow{3}{*}{$\mathcal{D}_3$} & \ldelim\{{3}{1em}{} & \mathcal{D}_1 && \\
    && A && \\
    && \mathcal{D}_2 & \rdelim\}{3}{1em}{} &\multirow{3}{*}{$\mathcal{D}_5$} \\
    && B && \\
    && \mathcal{D}_4 && \\
    && C &&
  \end{array}
\end{displaymath}

\end{document}
share|improve this answer
    
Thanks a lot! :) –  frabala Nov 24 '13 at 11:32
    
@frabala: Don't for get to upvote the answer :) –  Kevin C Nov 25 '13 at 4:33

Maybe with some additional corrections of horizontal spacing in the future:

\documentclass{article}
\usepackage{multirow}

\begin{document}

\[
%\begin{array}{rcl}
\begin{array}{r@{}c@{}l}
& \Gamma & \\
%\multirow{3}{*}{$\mathcal{D}_3 \bigg\{$} 
\multirow{3}{*}{$\mathcal{D}_3 \Bigg\{$} 
& \mathcal{D}_1 & \\
& A & \\
& \mathcal{D}_2 & \multirow{2}{*}{$\bigg\} \mathcal{D}_5$} \\
& B & \\
& \mathcal{D}_4 & \\
& C &
\end{array}
\]

\end{document}

enter image description here

share|improve this answer
    
Thanks! I already found a solution but yours is simpler. :) –  frabala Nov 24 '13 at 11:28

Your Answer

 
discard

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.