LaTeX forum ⇒ Math & ScienceBracket size proble: Split multi-line equations Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
denizkartan
Posts: 1
Joined: Fri May 15, 2009 12:53 pm

Bracket size proble: Split multi-line equations

Postby denizkartan » Fri May 15, 2009 1:04 pm

I have a long equation split into two lines and a large '(' bracket surrounding some parts of equation is also separated, i.e. \left( is in the upper line and \right) is in the lower line. In that case \left( resizes according to its contents but \right) doesn't resize and it is not even displayed. I am using AmsMath package and I know that it is better to use \Bigg commands, however even the largest \Bigg is much smaller than my equation's contents.

  1. \begin{align}
  2. P &= some equation \\
  3. &= \left( firstPart \\
  4. &{} + secondPart \right)
  5. \end{align}

\left( displays big enough but \right) is not even displayed
Last edited by cgnieder on Mon Dec 10, 2012 8:54 pm, edited 1 time in total.
Reason: added inline code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

dnemoc
Posts: 19
Joined: Mon May 11, 2009 2:29 pm

Postby dnemoc » Fri May 15, 2009 1:38 pm

Hi!

I know of a brute-force way of doing this, for instance:

  1. \begin{align*}
  2. \left( ---first line of the equation--- \right.\\
  3. \left. ---second line of the equation---\right)
  4. \end{align*}


This works whenever the first and second lines have similar vertically-spaced stuff. For example, if the first line has a summation and the second line has only greek letters, then the `\right)' will appear a normal `)' and not a large one. I usually insert a \vphantom{\sum} in the second line somewhere between the `\left.' and `\right)' to get the parentheses to match each other.

Perhaps someone in this forum can suggest a cleaner way.

Best regards,
- D.
Last edited by cgnieder on Mon Dec 10, 2012 8:55 pm, edited 1 time in total.
Reason: added inline code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Juanjo
Posts: 656
Joined: Sat Jan 27, 2007 12:46 am

Postby Juanjo » Fri May 15, 2009 11:10 pm

You can manually adjust the size of the delimiters, as shown here:
  1. \begin{align*}
  2. \Bigl( ---first line of the equation--- \\
  3. ---second line of the equation---\Bigr)
  4. \end{align*}

Use one of the following pairs: \bigl-\bigr, \Bigl-\Bigr, \biggl-\biggr, \Biggl-\Biggr.
Last edited by cgnieder on Mon Dec 10, 2012 8:56 pm, edited 1 time in total.
Reason: added inline code markup
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

jakob_s
Posts: 1
Joined: Tue Jun 02, 2009 7:09 pm

Postby jakob_s » Tue Jun 02, 2009 7:17 pm

I had the same problem, but with more than just one bracket. I also tried to combine the {split}- to the {align}-environment, but it didn't work. So I used the \right. solution this time. But this problem will come back soon. So I would be glad about a solution without counting how many \right. I have put in. Anybody got an idea?

Best regards J
Last edited by cgnieder on Mon Dec 10, 2012 8:57 pm, edited 1 time in total.
Reason: added inline code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Wed Jun 03, 2009 2:37 pm

have a look at the breqn package.

Link:
BBcode:
HTML:
Hide post links
Show post links

martinvb
Posts: 1
Joined: Wed Nov 24, 2010 5:45 pm

Postby martinvb » Wed Nov 24, 2010 5:52 pm

The trick I've used makes use of a vertical placed underbrace. At this way you can specify a braces height manually. It took me a while to come up with a way, so hopefully this will be able to help somebody.

The code below produces a bracket of 1.5cm height.

  1. \usepackage{rotating}
  2. \begin{sideways}\parbox{1.5cm}{$\underbrace{\hspace{1.5cm}}$}\end{sideways}
Last edited by cgnieder on Mon Dec 10, 2012 8:52 pm, edited 1 time in total.
Reason: added code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

mitesh_century
Posts: 1
Joined: Sun Nov 28, 2010 11:46 pm

Postby mitesh_century » Sun Nov 28, 2010 11:50 pm

use the \left and \right commands before the brackets..

here is an example:
  1. AC(T_i) = \left\{ S_i + h_i \sum_{j=R}^{R+T_i-1} (j-R) d_{ij}\right\}/T_i
Last edited by cgnieder on Mon Dec 10, 2012 8:52 pm, edited 1 time in total.
Reason: added code markup

Link:
BBcode:
HTML:
Hide post links
Show post links

tekkerchrede
Posts: 3
Joined: Sun Jan 17, 2010 7:16 pm

Postby tekkerchrede » Mon Dec 10, 2012 8:07 pm

You may also use the method of creating a phantom object as suggested at http://en.wikibooks.org/wiki/LaTeX/Adva ... formatting under "Braces spanning multiple lines".

Link:
BBcode:
HTML:
Hide post links
Show post links

L Wolf
Posts: 1
Joined: Sat Nov 14, 2015 2:10 pm

Postby L Wolf » Sat Nov 14, 2015 4:14 pm

Juanjo wrote:You can manually adjust the size of the delimiters, as shown here:
  1. \begin{align*}
  2. \Bigl( ---first line of the equation--- \\
  3. ---second line of the equation---\Bigr)
  4. \end{align*}

Use one of the following pairs: \bigl-\bigr, \Bigl-\Bigr, \biggl-\biggr, \Biggl-\Biggr.


Hi
I tried these synctaxes and it works! thank you so much

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Nov 14, 2015 9:25 pm

Hi L Wolf,

welcome to the forum!

Maybe I can show you a way using breqn for automatic sizing braces spanning over lines if you would show us the formulas.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests