Disable page numbers in table of contents in Lyx/LaTeX

I am using the KOMA-Script book document class for my thesis and was irritated that my

\thispagestyle{empty}

commands were ignored in LyX (LaTeX). Luckily, there is a soluton. Just add the following code after the TOC.

\addtocontents{toc}{\protect\thispagestyle{empty}}

Hint: In "book" classes you may often also use \frontmatter and \mainmatter to indicate where the parts of your book start. This way you do not have to change the \pagenumbering manually.

Comments