Math & ScienceMulti-line braces

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
joewcross
Posts: 3
Joined: Tue Aug 31, 2010 2:21 pm

Multi-line braces

Post by joewcross »

Hi,

I'm having a problem typesetting a particular piece of a biological protocol. The section is detailing a series of temperatures and times. Three steps of this process are repeated 35 times so I want to enclose these with a large curly brace with "x35" on it. However, I am unable to get a brace to cover multiple lines.

I have tried this:

Code: Select all

\[
	\begin{array}{ll}

	94^{\circ}\mathrm{C} & 2^{\prime} \\
	94^{\circ}\mathrm{C} & 20^{\prime\prime} \\
	T_{anneal} & 30^{\prime\prime} \bigg\} \\
	72^{\circ} & 20^{\prime\prime} \\
	72^{\circ} & 2^{\prime} \\
	
	\end{array}
\]
But the brace simply pads out a single line.

And this:

Code: Select all

\[
	\begin{array}{ll}

	94^{\circ}\mathrm{C} & 2^{\prime} \\
	\left. 94^{\circ}\mathrm{C} & 20^{\prime\prime} \\
	T_{anneal} & 30^{\prime\prime} \\
	72^{\circ} & 20^{\prime\prime} \right\} \\
	72^{\circ} & 2^{\prime} \\
	
	\end{array}
\]
Gives me an error about missing \right or missing delimiter if I remove \left.

I think I may need to use \cases but am unsure how, can anyone help?

Many thanks,

J

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Multi-line braces

Post by gmedina »

Hi,

to put the bracket to the left, use cases; to put it on the right, use aligned:

Code: Select all

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\left.
\begin{aligned}
   94^{\circ}\mathrm{C} &\phantom{=} 2^{\prime} \\
   94^{\circ}\mathrm{C} &\phantom{=} 20^{\prime\prime} \\
   T_\textup{anneal} &\phantom{=} 30^{\prime\prime} \\
   72^{\circ} &\phantom{=} 20^{\prime\prime} \\
   72^{\circ} &\phantom{=} 2^{\prime} \\
\end{aligned}\right\rbrace \times 35
\]

\[
\times 35
\begin{cases}
   94^{\circ}\mathrm{C} & 2^{\prime} \\
   94^{\circ}\mathrm{C} & 20^{\prime\prime} \\
   T_\textup{anneal} & 30^{\prime\prime} \\
   72^{\circ} & 20^{\prime\prime} \\
   72^{\circ} & 2^{\prime} \\
\end{cases}
\]

\end{document}
Last edited by gmedina on Tue Aug 31, 2010 3:01 pm, edited 1 time in total.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
joewcross
Posts: 3
Joined: Tue Aug 31, 2010 2:21 pm

Re: Multi-line braces

Post by joewcross »

Perfect!

Thank you very much!

J
Post Reply