Tell me more ×
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 have a multiline equation that I want to have matching sized parentheses. The advice I read online was to use \left( equation \right. \\ left. rest-of-equation \right) . However, this syntax leaves first half of the equation unaware of what is in the second half. For example, if you include a square root term after the break, the second parenthesis will be larger than the opening parenthesis. When you are using the aligned environment to split a long equation this can look somewhat off putting.

alt text

Compare the top equation to the bottom one. The parentheses match in size for the bottom equation, but the left hand parentheses for the top one is noticeably smaller.

Top Code:

 \begin{aligned}[t] \gamma_{\text{u}} + \frac{1}{108} 
 \left(57\gamma_{\text{er}} \right. &+  38\gamma_{\text{se}}\\ & {}\pm
 \left.\sqrt{2601 \gamma_{\text{er}}^2 + 3648
 \gamma_{\text{er}}\gamma_{\text{se}} + 1444 \gamma_{\text{se}}^2}
 \right) \end{aligned}

Bottom Code:

\begin{aligned}[t] \gamma_{\text{u}} + \frac{1}{16}
\left(9\gamma_{\text{er}}  +  6\gamma_{\text{se}} \pm  \sqrt{49
\gamma_{\text{er}}^2 + 76 \gamma_{\text{er}}\gamma_{\text{se}} + 36
\gamma_{\text{se}}^2} \right) \end{aligned}
share|improve this question

1 Answer

up vote 5 down vote accepted

You could also put all parts on all lines and hide the ones that don't belong with \vphantom{...}. That way, they'll contribute to the height, but not take up space, and your parens should match. (Me personally, I find that clutters the source too much and I'm not too fond of \left and \right anyway, so I do \bigg et al. manually in these situations.)

I also vaguely recall seeing a re-implementation that works across multiple lines, and that appears to be in breqn.

share|improve this answer
That is definitely a solution (\vphantom), but this is a table of multiline equations with 4 other columns in the table, so the source is already cluttered as it is :D. – crasic Nov 18 '10 at 21:19
3  
I'd manually size them then. I think the order is \big \Big \bigg \Bigg, but I keep forgetting. – Ulrich Schwarz Nov 18 '10 at 21:23

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.