LyXWhy does Lyx refuse to start a page with a math formula.

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Why does Lyx refuse to start a page with a math formula.

Post by lyxrocks »

because of this, the bottom of many pages of my thesis look empty.

for example, first page has 2 lines left, then if i type one line of text and then a "display" math formula, lyx would push that one line of text onto the next page just so that the next page doesn't start with a math formula!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Why does Lyx refuse to start a page with a math formula.

Post by lyxrocks »

also, why does lyx always try to "cover the entire page" before a "page break"?

i.e. i have three paragraphs left before the "page break", but these paragraphs are short, so lyx spaces them out so far away that the last paragraph is at the bottom of the page...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Why does Lyx refuse to start a page with a math formula.

Post by Stefan Kottwitz »

In twoside mode of some classes, page heights are balanced. So LyX tries to fill the page, it adds vertical space between paragraphs if necessary.

You can switch to oneside mode via a class option, which may also affect margins which are usually different to twoside mode (symmetric, not less inner), or you just switch it off by adding \raggedbottom to your preamble.

Stefan
LaTeX.org admin
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Why does Lyx refuse to start a page with a math formula.

Post by lyxrocks »

Stefan_K wrote:In twoside mode of some classes, page heights are balanced. So LyX tries to fill the page, it adds vertical space between paragraphs if necessary.

You can switch to oneside mode via a class option, which may also affect margins which are usually different to twoside mode (symmetric, not less inner), or you just switch it off by adding \raggedbottom to your preamble.

Stefan
that indeed solves my second problem. thanks!

what about the first problem? lyx doesn't want to begin a page with a "display formula", i wonder what's the reason behind that...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Why does Lyx refuse to start a page with a math formula.

Post by Stefan Kottwitz »

It's a matter of typography, to not start with a displayed math environment but with at least one text line.

You could allow a page break by inserting

Code: Select all

\pagebreak[0]
right before such a displayed math environment. It doesn't force it, it just allows it. If there's still space on the page, there won't be a break.

Try. It just looks better if there's a text line at the top.

Stefan
LaTeX.org admin
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Why does Lyx refuse to start a page with a math formula.

Post by lyxrocks »

Stefan_K wrote:It just looks better if there's a text line at the top.
i see.

thanks again!
Post Reply