LyXPage style not imposed on 1st page of 2-page TOC

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
KittenFace
Posts: 1
Joined: Wed Apr 13, 2011 5:30 pm

Page style not imposed on 1st page of 2-page TOC

Post by KittenFace »

Hello,

I'm using the 'fancy' page style, and want it seen on each page bar the title page. This is successful apart from the 1st page of a table of contents which spans 2 pages. The code I have for setting the page style for the contents page is as follows:

Code: Select all

\thispagestyle{fancy}
\tableofcontents
Switching the order of the commands doesnt seem to have any affect.

I am unsure if this can be solved, or is something I have to accept.

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: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Page style not imposed on 1st page of 2-page TOC

Post by Stefan Kottwitz »

Hi,

set the page style within the toc file:

Code: Select all

\addtocontents{toc}{\protect\thispagestyle{fancy}}
Stefan
LaTeX.org admin
Post Reply