LyXAvoiding page number on first page of Index

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
solarisfan
Posts: 2
Joined: Mon Aug 11, 2014 10:25 pm

Avoiding page number on first page of Index

Post by solarisfan »

Hello,

using Lyx with Springer's svmono package I'm trying to create an Index without placing the page number on first page - using

Code: Select all

\thispagestyle{empty}
does not work since makeindex creates an additional page and so the mentioned statement will have no effect

Any clou ?

Frank
Last edited by cgnieder on Wed Aug 13, 2014 6:22 pm, edited 1 time in total.

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Avoiding page number on first page of Index

Post by kaiserkarl13 »

My attempt to reproduce this failed (I saw no page numbers anywhere), but I was able to reproduce it with the report class and the article class. I found a copy of svmono.cls here, but as I mentioned, it doesn't put page numbers anywhere, at least in my example. However, the relevant command in that case would be the definition of the theindex environment. You should be able to insert your \pagestyle{empty} command into that, and it should work.

Example with the report class:

Code: Select all

\makeatletter
\renewenvironment{theindex}
               {\if@twocolumn
                  \@restonecolfalse
                \else
                  \@restonecoltrue
                \fi
                \twocolumn[\@makeschapterhead{\indexname}]%
                \@mkboth{\MakeUppercase\indexname}%
                        {\MakeUppercase\indexname}%
% the next line used to say \thispagestyle{plain}
                \thispagestyle{empty}\parindent\z@
                \parskip\z@ \@plus .3\p@\relax
                \columnseprule \z@
                \columnsep 35\p@
                \let\item\@idxitem}
               {\if@restonecol\onecolumn\else\clearpage\fi}
\makeatother
You'll want to copy similar lines from svmono.cls or the equivalent and change the definition accordingly.
solarisfan
Posts: 2
Joined: Mon Aug 11, 2014 10:25 pm

Avoiding page number on first page of Index

Post by solarisfan »

Hello carolus magnus 13 !

this works perfect placing it on linux in the shared class location of

Code: Select all

/usr/share/texlive/texmf-dist/tex/latex/springer/styles
it works for listoffigures as well:

Code: Select all

\renewcommand\listoffigures{
 \chapter*{\listfigurename\thispagestyle{empty}    
      \@mkboth{\listfigurename}{\listfigurename}}%   
    \@starttoc{lof}%
    }
Post Reply