latex - How do I break a long equation over lines? -
I am trying to add an equation to a new line. The problem is that the equation for line is too long, and I need to break it manually, otherwise it is covered on the right column, or on the right margin (and looks ugly ...). Latex can break the equation for me, so does it look good?
I am adding my latex code:
\ begin {align *} f (N) -f (0) and = A (n) -b ( N) -C (N) -D (n) \ cedote D-left (A (0) -B (0) -C (0) -D (0) \ cdot d \ right) \\ & amp; = A (n) -0-XD (n) \ cdot d- \ left (0-0-0-0 \ right) \\ & amp; = A (n) -xd (n) \ cdot d \ end {align *}
The problem line is the first row, which is too long
breqn
package is designed to automatically split long equations. It works very well in most situations, but it is not mature as the amsmath
package. Here's how you write your example equation:
\ Documentclass {article} \ usepackage {breqn} \ start {document} \ start {dmath} f (n) -f (0) = a (n) -b (n) -c (n) -d (n) \ cedot D- \ left (A (0) -B (0) -C (0) -D (0) \ cdot d \ right = A (N) -0-XD (n) \ cdot d- \ left (0 -0-0-0 \ right) = A (n) -XD (n) \ cdot d \ end {dmath} \ end {document}
No markup for alignment or new lines Is but out Ut basically looks the same way as you align
.
Comments
Post a Comment