LyXPage numbering problems in LyX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
krsp
Posts: 2
Joined: Wed Feb 27, 2013 12:01 pm

Page numbering problems in LyX

Post by krsp »

Hi guys,

Hopefully I will fulfill all forum requirements.

Here goes... In my LyX document (class: book (KOMA-script)) I have two issues:

1) I have x number of 'Part' pages, where I would like to remove the page number, so the page number is neither included on the page, or in the TOC, but I would like to 'Part' title to be in the TOC.

2) Four of my in total 90 pages has no page numbering, for some unclear reason. I have tried to erase footnotes (but I need those), and it solved the problem, but on two out of the four pages, there is no footnotes. So, therefore I have no clue why LyX is removing page numbering from some of the pages. I have tried changing the foot skip, also without any luck.

Any ideas?

Thanks

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Page numbering problems in LyX

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Great that you use a KOMA-Script class, which makes customizations much easier than with base classes. Removing the page number on part pages is easy:

Code: Select all

\renewcommand*{\partpagestyle}{empty}
For removing the page number from the table of contents, a quick idea is to simply set the color of this page number to the background color, i.e. to white:

Code: Select all

\setkomafont{partentrypagenumber}{\color{white}}
Loading the color or xcolor package is required, of course. And the code belongs to the document preamble (LyX main menu, document, settings). If you would like to suppress it completely, no problem, I could look at the source of the class. But I recommand to think again about it: the table of contents is not just a nicely designed list, it's for looking up places in the document. So if you look for a certain chapter, you find the corresponding page number there. But if the reader looks where part III starts - wouldn't it be bad if there's no page number? So a part heading would just be a kind of divider in the table of contents.

Regarding the second question, it would be good if you would post a Infominimal working example, which shows the problem. This could be a much reduced copy of your LyX file, posted as attachment.

Stefan
LaTeX.org admin
krsp
Posts: 2
Joined: Wed Feb 27, 2013 12:01 pm

Page numbering problems in LyX

Post by krsp »

Putting \renewcommand*{\partpagestyle}{empty} in the preamble deletes page numbering on all pages! :)
Post Reply