LyX ⇒ Index - Indexpagestyle
Index - Indexpagestyle
I've started to work with Lyx and MiKTeX on Windows to migrate documentation from OpenOffice to Latex. The first steps went well and I suceed to change the overall layout to the given requirements.
I'm a newbie to LaTeX, so I'm stuck concerning the following item:
The page style of the first page of the index won't be the same style as all the other pages.
Currently I'm using "fancy" because I need to modifiy, header and footer also based on odd/even pages.
I searched a lot of forums, also the documentation of the Koma script but could not get it working.
This is what I understood so far.
When the index is printed, the layout is changed back to a default layout.
The command \indexpagestyle{fancy} can be used to change that.
I tried to add this command to the preamble or other positions.
Either LaTeX pops up with an error message or the command is ignored.
Either way the first index page would stay with the default page style.
Attached please find the sample code to reproduce this.
I would appreciate any hint or solution.
Thanks in advance
Jarrod
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
Index - Indexpagestyle
Code: Select all
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
Index - Indexpagestyle
I redefined the plain style in the preamble and it worked perfectly - for the Table of Contents as well as for the Index pages.
I've uploaded the corrected code sample, if somebody else might wonder how to apply this...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Index - Indexpagestyle
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10