Page Layoutnomencl | Setting Page Style 'empty'

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
monami555
Posts: 1
Joined: Sun Jun 24, 2012 1:55 pm

nomencl | Setting Page Style 'empty'

Post by monami555 »

Hello

I have a two-page nomenclature list in my document and i want to print it without a page number. I have googled that \thispagestyle{empty} after \printnomenclature (former \printglossary) should do the trick. Well it does, but only when the nomenclature list is one page long. When it exceeds one page I still get the page number on the first page of nomenclature list.

Is there anyone who faced that? Any ideas for a workaround? It's tiny but really annoying detail, and it's the second day I am looking for a way to solve it.. Below is an example code:

Code: Select all

\documentclass[a4paper,12pt]{report}

\usepackage[refpage]{nomencl}%http://franz.kollmann.in/latex/latex.html#abbr
\makenomenclature
 
\begin{document}

\pagestyle{empty}

The following Nomenclature does have a page number on first page!

\printnomenclature\thispagestyle{empty}
 
\chapter{Some chapter}\thispagestyle{empty}

This chapter has no page number, as expected\\

aa \nomenclature{a}{b}
aa \nomenclature{a2}{f}
aa \nomenclature{a3}{b}
aa \nomenclature{a4}{b}
aa \nomenclature{a5}{b}
aa \nomenclature{a6}{b}
aa \nomenclature{a7}{b}
aa \nomenclature{a8}{b}
aa \nomenclature{a9}{b}
aa \nomenclature{a10}{b}
aa \nomenclature{a11}{b}
aa \nomenclature{a12}{b}
aa \nomenclature{a13}{b}
aa \nomenclature{a15}{b}
aa \nomenclature{a14}{b}
aa \nomenclature{a16}{b}
aa \nomenclature{a17}{b}
aa \nomenclature{a18}{b}
aa \nomenclature{a19}{b}
aa \nomenclature{a20}{b}
aa \nomenclature{a21}{b}
aa \nomenclature{a22}{b}
aa \nomenclature{a23}{b}
aa \nomenclature{a25}{b}
aa \nomenclature{a24}{b}
aa \nomenclature{a26}{b}
aa \nomenclature{a27}{b}
aa \nomenclature{a28}{b}
aa \nomenclature{a29}{b}
aa \nomenclature{a30}{b}

\end{document}

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

nomencl | Setting Page Style 'empty'

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Very good, that you provided a minimal example. So it's easy to test and to fix. In this case, you could redefine the macro \nompreamble, which is empty by default and called at the beginning of a nomenclature. Just place this in your document preamble:

Code: Select all

\renewcommand{\nompreamble}{\thispagestyle{empty}}
Then you can use \printnomenclature without adding \thispagestyle.

Stefan
LaTeX.org admin
Post Reply