2

Whenever a formula does not fit in a mage, it is moved to the next as expected. However, the last line of text before the formula is moved in the same page as the formula, even though it would fit in the previous page. What command can I use to instruct Latex to move only the formula to the next page?

enter image description here


I have tried simply putting the formula in a new paragraph, but this adds a blank space that I do not want (see this picture). I would want a global solution that automatically implements the desired behavior.

enter image description here

1
  • 1
    In traditional math publishing, placing a display at the top of a page without any text preceding it is considered bad style. The display is considered part of the paragraph, regardless of the visual appearance; therefore the line of the paragraph preceding the display is brought over to a page that would otherwise begin with a display, regardless of whether it would fit on the previous page. Regarding the space above a display at the top of a page, see Spurious space above align environment at top of page/minipage Nov 14, 2022 at 15:54

2 Answers 2

3

The TeXBook says:

Plain TeX sets \predisplaypenalty=10000, because fine printers traditionally shun displayed formulas at the very top of a page. You can change \predisplaypenalty and \postdisplaypenalty if you want to encourage or discourage page breaks just before or just after a display.

The same applies in LaTeX

3

You can set \displaywidowpenalty=10000. This penalty is inserted before the last line of the paragraph immediately preceding a displayed equation.

1
  • 1
    unless you also lower predisplaypenalty this will prevent a single line by forcing two lines at top of the page, the question asks to go the other way and allow no line above the display Nov 15, 2022 at 9:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .