Page LayoutHeader for Nomenclature

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
loolabell
Posts: 3
Joined: Wed Aug 12, 2009 3:36 pm

Header for Nomenclature

Post by loolabell »

Hi!

I'm relatively new to Latex and am struggling a bit with the formatting. I've managed to compile the Nomenclature and rename it as "List of Symbols". Because of the number of symbols in the list, it goes onto 2 pages. The header at the top of the second page of symbols doesn't seem to recognise that it should be saying "List of Symbols" and insists on calling it "List of Tables", which comes before. Help, please!!!

Code: Select all

\onehalfspacing
\tableofcontents
\listoffigures
\listoftables
\renewcommand{\nomname}{List of Symbols}
\printnomenclature
Thanks!
Louise

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Header for Nomenclature

Post by gmedina »

Hi,

it would be better if you post some compilable code (in the sense of a minimal working example) allowing us to reproduce the problem and see your particular settings. Anyway, you could try adding

Code: Select all

\clearpage
\markboth{\nomname}{\nomname}
just before the \printnomenclature command
1,1,2,3,5,8,13,21,34,55,89,144,233,...
loolabell
Posts: 3
Joined: Wed Aug 12, 2009 3:36 pm

Header for Nomenclature

Post by loolabell »

Here's some more code:

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\usepackage{nomencl}
\makenomenclature
\makeindex

\fancyhf{}
 
\lhead{\textsf{\fancyplain{}{\nouppercase\leftmark}}}
\cfoot{\textsf{\fancyplain{}{\thepage}}}

\begin{document}
\tableofcontents
\listoffigures
\renewcommand{\nomname}{List of Symbols}
\printnomenclature

\nomenclature{$a$}{Blah blah blah blah blah}
\nomenclature{$b$}{Blah blah blah blah blah}
\nomenclature{$c$}{Blah blah blah blah blah}
\nomenclature{$d$}{Blah blah blah blah blah}
\nomenclature{$e$}{Blah blah blah blah blah}
\nomenclature{$f$}{Blah blah blah blah blah}
\nomenclature{$g$}{Blah blah blah blah blah}
\nomenclature{$h$}{Blah blah blah blah blah}
\nomenclature{$i$}{Blah blah blah blah blah}
\nomenclature{$j$}{Blah blah blah blah blah}
\nomenclature{$k$}{Blah blah blah blah blah}
\nomenclature{$l$}{Blah blah blah blah blah}
\nomenclature{$m$}{Blah blah blah blah blah}
\nomenclature{$n$}{Blah blah blah blah blah}
\nomenclature{$o$}{Blah blah blah blah blah}
\nomenclature{$p$}{Blah blah blah blah blah}
\nomenclature{$q$}{Blah blah blah blah blah}
\nomenclature{$r$}{Blah blah blah blah blah}
\nomenclature{$s$}{Blah blah blah blah blah}
\nomenclature{$t$}{Blah blah blah blah blah}
\nomenclature{$u$}{Blah blah blah blah blah}
\nomenclature{$v$}{Blah blah blah blah blah}

\chapter{Banana}
\begin{figure}
\caption{i like cake}
\end{figure}

\end{document}
So for that to work you need a batch file which is a text file with the following:
makeindex.exe filename.nlo -s nomencl.ist -o filename.nls

Replace the filename with the name of the LaTex the code is saved to, save the text file as .bat, run it and compile the LaTex file. You should see that the heading for the second page of the "List of Symbols" says "List of Figures".

I'll give the recommendation a go and get back to you shortly!
Louise
loolabell
Posts: 3
Joined: Wed Aug 12, 2009 3:36 pm

Header for Nomenclature

Post by loolabell »

Just tried the

Code: Select all

\clearpage
\markboth{\nomname}{\nomname}
and it works! Thank you very much! :-D
Post Reply