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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
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