%
%% This is file `nomentbl.sty',
%% 
%% This file can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License distributed from CTAN
%% archives in the directory macros/latex/base/lppl.txt; either
%% version 1.2 of the license, or (at your option) any later version.
%% 
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%%
\def\filename{nomentbl}
\def\fileversion{0.3}
\def\filedate{2004/02/17}
\def\docdate{2004/02/17}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nomentbl}[\filedate\ v03 Nomenclature in longtable (BE)]
\RequirePackage{longtable}
\RequirePackageWithOptions{nomencl}[2000/12/03 v3.1a Nomenclature package (BS)]
\RequirePackage{ifthen}
\RequirePackage{calc}

\DeclareOption*{%
\PassOptionsToPackage{\CurrentOption}{nomencl}%
}

 \DeclareOption{croatian}{%
   \def\eqdeclaration#1{jednad\v{z}bu\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}stranica\nobreakspace#1}%
   \def\nomname{Popis simbola}}
 \DeclareOption{danish}{%
   \def\eqdeclaration#1{ligning\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}side\nobreakspace#1}%
   \def\nomname{Symbolliste}}
 \DeclareOption{english}{%
   \def\eqdeclaration#1{equation\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}page\nobreakspace#1}%
   \def\nomname{Nomenclature}}
 \DeclareOption{french}{%
   \def\eqdeclaration#1{\'equation\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}page\nobreakspace#1}%
   \def\nomname{Liste des symboles}}
 \DeclareOption{german}{%
   \def\eqdeclaration#1{Gleichung\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}Seite\nobreakspace#1}%
   \def\nomname{Symbolverzeichnis}}
 \DeclareOption{italian}{%
   \def\eqdeclaration#1{equazione\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}pagina\nobreakspace#1}%
   \def\nomname{Elenco dei Simboli}}
 \DeclareOption{polish}{%
   \def\eqdeclaration#1{rownanie\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}strona\nobreakspace#1}%
   \def\nomname{Lista symboli}}
 \DeclareOption{portuguese}{%
   \def\eqdeclaration#1{equa\c{c}\~ao\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}p\'agina\nobreakspace#1}%
   \def\nomname{Nomenclatura}}
 \DeclareOption{russian}{%
   \def\eqdeclaration#1{\cyrs\cyrm.\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}\cyrs\cyrt\cyrr.\nobreakspace#1}%
   \def\nomname{\CYRS\cyrp\cyri\cyrs\cyro\cyrk%
     \ \cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri%
     \cyrishrt}}
 \DeclareOption{spanish}{%
   \def\eqdeclaration#1{ecuaci\'on\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}p\'agina\nobreakspace#1}%
   \def\nomname{Nomenclatura}}
 \DeclareOption{ukrainian}{%
   \def\eqdeclaration#1{\cyrd\cyri\cyrv.\nobreakspace(#1)}%
   \def\pagedeclaration#1{\hspace*{2mm}\cyrs\cyrt\cyro\cyrr.\nobreakspace#1}%
   \def\nomname{\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk%
          \ \cyrp\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrsftsn}}
\ExecuteOptions{norefeq,norefpage,prefix,cfg,english}
\ProcessOptions\relax

\def\@@nomenclature[#1]#2#3#4{\endgroup\@esphack}
\def\@@@nomenclature[#1]#2#3#4{%
 \def\@tempa{#2}\def\@tempb{#3}%
 \protected@write\@glossaryfile{}%
  {\string\glossaryentry{#1\nom@verb\@tempa @{\nom@verb\@tempa}&%
      \begingroup\nom@verb\@tempb\endgroup &\begingroup#4\endgroup&\begingroup\protect\nomeqref{\theequation}%
        |nompageref}{\thepage}}%
 \endgroup
 \@esphack}

\def\theglossary{%
  \@ifundefined{chapter}{\section*}{\chapter*}{\nomname}%
  \nompreamble
                                %  \list{}{%
                                %    \labelwidth\nom@tempdim
                                %    \leftmargin\labelwidth
                                %    \advance\leftmargin\labelsep
                                %    \itemsep\nomitemsep
                                %    \let\makelabel\nomlabel}
}

\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}}{%
          {}}}}}}

\endinput
%%
%% End of file `nomentbl.sty'.
