Nomenklatur: Undefined control sequence \nompageref{}

Erstellen von Index, Glossar, Symbolverzeichnis, einer Nomenklatur etc. mit MakeIndex oder Xindy


eve s
Forum-Newbie
Forum-Newbie
Beiträge: 1
Registriert: Do 3. Sep 2020, 14:59

Nomenklatur: Undefined control sequence \nompageref{}

Beitrag von eve s »

Hallo,

ich versuche eine Nomenklatur einzubauen. Das klappte bisher auch ganz gut, nur wenn ich revtex4 benutze und die Nomenklatur so lang ist, dass sie nicht auf die erste Seite passt (wegen Titel und Abstrakt), kommt zweimal die Fehlermeldung "Undefined control sequence \nompageref{2}", die ich gerne loswerden wuerde.

Hier ist mein minimal working example:

\documentclass[%
 aip,
 amsmath,amssymb,
 reprint%
]{revtex4-1}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}

%**************My packages************************%
\usepackage{framed}

\usepackage{bm}% bold math
\usepackage{siunitx}

\usepackage{makecell}
\usepackage{placeins}
\usepackage{lipsum}

\usepackage{makeidx}
\usepackage{nomencl}

\usepackage{ifthen}
\renewcommand\nomgroup[1]{%
  \ifthenelse{\equal{#1}{A}}{%
    \item[\textbf{Acronyms}]}{%                A - Acronyms
  \ifthenelse{\equal{#1}{R}}{%
    \item[\textbf{Roman Symbols}]}{%           R - Roman
  \ifthenelse{\equal{#1}{G}}{%
    \item[\textbf{Greek Symbols}]}{%           G - Greek
  \ifthenelse{\equal{#1}{S}}{%
    \item[\textbf{Superscripts}]}{%            S - Superscripts
  \ifthenelse{\equal{#1}{U}}{%
    \item[\textbf{Subscripts}]}{%              U - Subscripts
  \ifthenelse{\equal{#1}{X}}{%
    \item[\textbf{Other Symbols}]}{%           X - Other Symbols
  {}}}}}}}}
\renewcommand*{\nompreamble}{\markboth{\nomname}{\nomname}}

\newcommand{\nomunit}[1]{%
  \renewcommand{\nomentryend}{\hspace*{\fill}#1}%
  }

\immediate\write18{%
makeindex -s nomencl.ist -o \jobname.nls -t \jobname.nlg \jobname.nlo%
}
\makenomenclature

\begin{document}

\preprint{AIP/123-QED}

\title{Blabla bla , bla bla}
\author{Blabla bla , bla bla}%

\begin{abstract}
\lipsum
\end{abstract}

\maketitle

\begin{table}[t]
\begin{framed}
\nomenclature[R]{$f$}{distribution}
\nomenclature[R]{$f_0$}{another distribution}
\nomenclature[R]{$\bm{r}$}{Point vector}
\nomenclature[R]{$\bm{u}$}{velocity \nomunit{$\si{\meter\per\second}$}}
\nomenclature[G]{$\tau$}{time \nomunit{$\si{\seconds}$}}
\nomenclature[U]{$x$}{x-component}
\nomenclature[U]{$x$}{y-component}
\nomenclature[U]{$z$}{z-component}
\nomenclature[U]{$U$}{Upper}
\nomenclature[U]{$L$}{Lower}
\nomenclature[U]{$T$}{Top}
\nomenclature[U]{$B$}{Bottom}
\nomenclature[U]{$m$}{Mid}
\nomenclature[U]{$fa$}{far away}
\nomenclature[R]{$m$}{mass\nomunit{$\si{\kilo\gram}$}}
\nomenclature[R]{$D$}{Diameter\nomunit{$\si{\meter}$}}
\nomenclature[R]{$L$}{distance \nomunit{$\si{\meter}$}}
\nomenclature[G]{$\Omega$}{Integration domain}
\nomenclature[R]{$E$}{Energy}
 \printnomenclature
\end{framed}
\end{table}

\lipsum 

\end{document}

Ueber Ideen, wie ich den Fehler loswerde, waere ich froh :)

Gruss
Eve