TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I split an equation over two lines

I am trying to compile my papers into Kindle readable PDF files. I can get pretty good outputs by just changing the height and the width of the document. One problem is formulas run out of the page and I cannot really adjust them manually for hundreds of formulas. I am wondering if there is any package that automatically breaks a formula if it runs out of the page margins.

share|improve this question

marked as duplicate by lockstep, Joseph Wright Sep 4 '11 at 7:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You may want to look at latex options for kindle, if you have not already seen it. – mas Sep 3 '11 at 18:42
Perhaps try the breqn package? (stackoverflow.com/questions/1578127/…) I haven't used it myself, but I think automatically breaking long formulas is one of its goals. – grautur Sep 3 '11 at 18:51
up vote 5 down vote accepted

The breqn package does exactly this. You will have to modify your equation environments to dmath (or another) though. The package documentation describes this in detail under sections 9 Environments and commands and 10 Various environment options.

share|improve this answer

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