%       Nomenclature style with longtable. Version 0.1
%       Formats glossary entries to show, e. g. nomenclature
%       of equations.
%       
%       Written by Brian Elmegaard
%

\def\filename{nomenltb}
\def\fileversion{0.1}
\def\filedate{2000/07/04}
\def\docdate{1995/25/01}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nomenltb}
\RequirePackage{longtable}
\RequirePackage[]{nomencl}[11/26/96 Nomenclature package, version 2.2]
%\RequirePackage{makeidx}
\RequirePackage{ifthen}
\RequirePackage{calc}

\newcommand{\Skip}[1]{\relax}

\renewcommand\nomname{\chapter*{Nomenclature}\markboth{Nomenclature}{Nomenclature}}
\renewenvironment{theglossary}{%
        \nomname}{%
        }
\renewcommand{\nomenclature}[4][\nomprefix]{\ignorespaces%
        \protected@write\@glossaryfile{}%
        {\string\glossaryentry{#1#2@#2 & #3\protect\NomEquation{\theequation}\protect\NomPage {\thepage} &#4%
        \protect\Skip}{0}}}


\renewcommand\nomgroup[1]{%
          \ifthenelse{\equal{#1}{A}}{%
              \large{Roman Letters}}{%
              \ifthenelse{\equal{#1}{G}}{%
                     \large{Greek Letters}}{%
                     \ifthenelse{\equal{#1}{X}}{%
                            \large{Superscripts}}{%
                            \ifthenelse{\equal{#1}{Z}}{%
                                   \large{Subscripts}}{%
                                   {}}}}}}

\renewcommand{\eqdeclaration}[1]{, \mbox{eq. (#1)\ignorespaces}}
\renewcommand{\pagedeclaration}[1]{, \mbox{page #1\ignorespaces}}

