Is there anyway to write multi-line equations in latex automatically, I mean without using line break or other manually breaking lines. is it possible to tell latex to begin with the next line when the first line reached the edge of the right margin of your page?


You could use the breqn package for that, BUT...

  • You have to read the manual before using it (otherwise you won't understand, why nothing works as expected).
  • Many of the TeX.SX users (including myself) believe, that breqn creates more problems than it solves.

The following example is taken from the breqn manual:

\pagestyle{empty}% for cropping
Replace $j$ by $h-j$ and by $k-j$ in these sums to get [cf.~(26)]
  \frac{1}{6} \left(\sigma(k,h,0) +\frac{3(h-1)}{h}\right)
  +\frac{1}{6} \left(\sigma(h,k,0) +\frac{3(k-1)}{k}\right)
  =\frac{1}{6} \left(\frac{h}{k} +\frac{k}{h} +\frac{1}{hk}\right)
  +\frac{1}{2} -\frac{1}{2h} -\frac{1}{2k},
which is equivalent to the desired result.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.