Graphics, Figures & TablesBrace spanning multiple rows of a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Brace spanning multiple rows of a table

Post by lloyd22 »

Hi,

I would like to get a vertical brace to span more rows of a table than I get when I specify it as \Biggl. Here's my working example, sorry it's not very pretty code:

\documentclass{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{array}
\usepackage{multirow}
\begin{document}
\begin{tabular}{rlccccccccc}
\multirow{5}{*}{${\Biggl \lbrace}$} &
$\mathcal L_{11}$:&11&17&10&7&11&0&17&7&6\\
&&\scriptsize6&\scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9&\scriptsize2& \scriptsize8\\
&$\mathcal L_5$:&5&12&9&3&14&12&8&9&14 \\
&&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9& \scriptsize2&\scriptsize8&\scriptsize6&\scriptsize5& \scriptsize1 \\
&$\mathcal L_1$:&1&15&2&13&16&1&2&4&13 \\
&&\scriptsize9&\scriptsize2&\scriptsize8&\scriptsize6& \scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3& \scriptsize7 \\
&& [04a] & [025] & [018] & [04a] & [025] & [018] & [04a] & [025] & [018] \\
\end{tabular}
\end{document}

I would like the brace to encompass from the top edge of the row marked L_11 to the bottom edge of the row marked L_1. I need it to set off this part from the rest of the table (which goes on longer in the real version) and will have other braced-off sections when I figure out how to do this.

And in case anyone knows how to specify different sizes for odd and even rows, that would be useful here too.

Best -- Lloyd

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Brace spanning multiple rows of a table

Post by Stefan Kottwitz »

Hi Lloyd,

you could use the bigdelim package.

Stefan
LaTeX.org admin
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Re: Brace spanning multiple rows of a table

Post by lloyd22 »

Thanks Stefan... but what am I doing wrong here? The brace appears on the 5th row, at a normal text size, instead of spanning the 1st to 5th row. Can anyone correct this?


\documentclass{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{array}
\usepackage{multirow}
\usepackage{bigdelim}
\begin{document}
\begin{tabular}{rlccccccccc}
\multirow{5}{*}{\ldelim \{ {5}{*}} &
$\mathcal L_{11}$:&11&17&10&7&11&0&17&7&6\\
&&\scriptsize6&\scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9&\scriptsize2& \scriptsize8\\
&$\mathcal L_5$:&5&12&9&3&14&12&8&9&14 \\
&&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9& \scriptsize2&\scriptsize8&\scriptsize6&\scriptsize5& \scriptsize1 \\
&$\mathcal L_1$:&1&15&2&13&16&1&2&4&13 \\
&&\scriptsize9&\scriptsize2&\scriptsize8&\scriptsize6& \scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3& \scriptsize7 \\
&& [04a] & [025] & [018] & [04a] & [025] & [018] & [04a] & [025] & [018] \\
\end{tabular}
\end{document}
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Re: Brace spanning multiple rows of a table

Post by lloyd22 »

Well I added a specific width to the arguments of \ldelim instead of {*}, and that solved the size problem... but now the brace is appearing two rows lower than where I requested it. Could anyone fix this for me? Thanks! Lloyd

\documentclass{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{array}
\usepackage{multirow}
\usepackage{bigdelim}
\begin{document}
\begin{tabular}{rlccccccccc}
\multirow{5}{*}{\ldelim \{ {5}{1 mm}} &
$\mathcal L_{11}$:&11&17&10&7&11&0&17&7&6\\
&&\scriptsize6&\scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9&\scriptsize2& \scriptsize8\\
&$\mathcal L_5$:&5&12&9&3&14&12&8&9&14 \\
&&\scriptsize4&\scriptsize3&\scriptsize7&\scriptsize9& \scriptsize2&\scriptsize8&\scriptsize6&\scriptsize5& \scriptsize1 \\
&$\mathcal L_1$:&1&15&2&13&16&1&2&4&13 \\
&&\scriptsize9&\scriptsize2&\scriptsize8&\scriptsize6& \scriptsize5&\scriptsize1&\scriptsize4&\scriptsize3& \scriptsize7 \\
&& [04a] & [025] & [018] & [04a] & [025] & [018] & [04a] & [025] & [018] \\
\end{tabular}
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Brace spanning multiple rows of a table

Post by Stefan Kottwitz »

Hi Lloyd,

remove the \multirow command:

Code: Select all

\begin{tabular}{rlccccccccc}
\ldelim \{ {5}{1 mm} & ...
Stefan
LaTeX.org admin
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Re: Brace spanning multiple rows of a table

Post by lloyd22 »

D'oh! Thanks Stefan. And sorry about the events in South Africa today :-)
Post Reply