Closed komascript closed 5 years ago
The change is better, but you've to also change the article
+ \section*
case:
\documentclass{article}
\usepackage[nocfg]{nomencl}
\makenomenclature
\pagestyle{headings}
\begin{document}
\section{Main equations}
\begin{equation}
a=\frac{N}{A}
\end{equation}%
\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\nomenclature{$A$}{The area of the needle point}%
The equation $\sigma = m a$%
\nomenclature{$\sigma$}{The total mass of angels per unit area}%
\nomenclature{$m$}{The mass of one angel}
follows easily.
\newpage
\printnomenclature
\end{document}
would result in
but should result in a running head "NOMENCLATURE".
BTW: Using \@mkboth{\nomname}{\@nomname}
is correct for KOMA-Script classes which do not use \MakeUppercase
for running heads by default, but not for the standard classes, that use upper case running heads by default unless you are using fancyhdr
or scrlayer-scrpage
to change this. tocbasic
provides a \MakeMarkcase
to handle all such cases. Try:
\documentclass{article}
\usepackage[nocfg,automake]{nomencl}
\usepackage{tocbasic}
\makenomenclature
\pagestyle{headings}
\begin{document}
\section{Main equations}
\begin{equation}
a=\frac{N}{A}
\end{equation}%
\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\nomenclature{$A$}{The area of the needle point}%
The equation $\sigma = m a$%
\nomenclature{$\sigma$}{The total mass of angels per unit area}%
\nomenclature{$m$}{The mass of one angel}
follows easily.
\newpage
\printnomenclature
\end{document}
with you changed or my patched version of nomencl
and you will see: using tocbasic
makes things easier.
For classes with chapters
nomencl
defines the nomenclature heading as:The
\markboth
here destoys the running head, if someone use manual running heads, e.g., with page stylemyheadings
instead of automatic running head, e.g., with page styleheadings
:Without
\printnomenclature
the running head in the last chapter (page 5) is still "Example paper by KOMA", but with\printnomenclature
it changed to "Nomenclature".So you should at least use
\@mkboth
instead if\markboth
.BTW: It would be easier and even add extra features to
nomencl
if you would use packagetocbasic
. Here with some minor changes (nomencl.hak
in KOMA-Script) would add several new features tonomencl
. This would also solve another issue.