TransWikia.com

How to make left, right pairs of delimiter work over multiple lines?

TeX - LaTeX Asked by sxu on April 26, 2021

I have a very long equation that must be separated into two lines, and it has several pairs of nesting left right delimiters. Unfortunately, it seems that they need to be on the same line in order for them to work.

Also I’m using the align environment because I need the aligning functionality. Is there a way to have the size of delimiters automatically adjusted over multiple lines?

5 Answers

The breqn package allows for automatic line breaking of equations, and for having left and right on different lines.

Correct answer by Torbjørn T. on April 26, 2021

You can't.

You can use some thing like biggl, biggr, or left.vphantom{...}right). For example:

[
begin{split}
a &= left( frac12 + frac13 + frac14 right. 
  &quad left. {}+ a + b + c vphantom{frac12}right)
end{split}
]

Answered by Leo Liu on April 26, 2021

Have a look at the nath package.

Answered by Aditya on April 26, 2021

The solution for me was to use virtual dot delimiters

frac{partial F}{partial x} &= left[ frac{partial y}{partial z} right. 
                              &* left. frac{partial z}{partial x} right]

which was the comment posted by percusse in this question which was marked as a duplicate.

The virtual dot delimiters are in Leo Liu's answer above, but a TeX n00b like me wouldn't have seen it.

FYI Sphinx-1.1.3 already supports multi-line math with the math directive using the AmSMath LaTeX package, i.e. breqn is not necessary.

Answered by Mark Mikofski on April 26, 2021

I had the same problem. I wanted to show this equation

begin{equation*}
    V_{sal} = -left(1.V_8 + frac{1}{2}.V_7 + frac{1}{8}.V_6 +frac{1}{8}.V_5  + frac{1}{16}.V_4 right.
     left. + frac{1}{32}.V_3 + frac{1}{64}.V_2 + frac{1}{128}.V_1right) 
end{equation*}

but since it is too long (in a two column document), I used multline enviroment but it gives an error (something like Missing right. inserted. end{multline*} or Extra right. end{multline*}). I solved it with this new code

begin{multline*}
V_{sal} = -left(1.V_8 + frac{1}{2}.V_7 + frac{1}{8}.V_6 +frac{1}{8}.V_5  + frac{1}{16}.V_4 right.
 left. + frac{1}{32}.V_3 + frac{1}{64}.V_2 + frac{1}{128}.V_1right) 
end{multline*}

Note that I added a right. at the end of the first row and left. at the beginning of the second row.

Answered by GERMAIN ROSADIO VEGA on April 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP