2 %% This is file `nomencl.sty',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% nomencl.dtx (with options: `package')
9 %% Copyright 1996 Boris Veytsman
10 %% Copyright 1999-2001 Bernd Schandl
11 %% www http://sarovar.org/projects/nomencl
13 %% This file can be redistributed and/or modified under the terms
14 %% of the LaTeX Project Public License distributed from CTAN
15 %% archives in the directory macros/latex/base/lppl.txt; either
16 %% version 1.2 of the license, or (at your option) any later version.
19 %% {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
20 %% 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
21 %% Digits \0\1\2\3\4\5\6\7\8\9
22 %% Exclamation \! Double quote \" Hash (number) \#
23 %% Dollar \$ Percent \% Ampersand \&
24 %% Acute accent \' Left paren \( Right paren \)
25 %% Asterisk \* Plus \+ Comma \,
26 %% Minus \- Point \. Solidus \/
27 %% Colon \: Semicolon \; Less than \<
28 %% Equals \= Greater than \> Question mark \?
29 %% Commercial at \@ Left bracket \[ Backslash \\
30 %% Right bracket \] Circumflex \^ Underscore \_
31 %% Grave accent \` Left brace \{ Vertical bar \|
32 %% Right brace \} Tilde \~}
34 \ProvidesPackage{nomencl}%
35 [2005/09/22 v4.2 Nomenclature package (LN)]
36 \NeedsTeXFormat{LaTeX2e}
38 \newif\if@printpageref
40 \newif\if@compatibilitymode
41 \DeclareOption{refeq}{\@printeqreftrue}
42 \DeclareOption{norefeq}{\@printeqreffalse}
43 \DeclareOption{refpage}{\@printpagereftrue}
44 \DeclareOption{norefpage}{\@printpagereffalse}
45 \DeclareOption{intoc}{\@intoctrue}
46 \DeclareOption{notintoc}{\@intocfalse}
47 \DeclareOption{compatible}{\@compatibilitymodetrue}
48 \DeclareOption{noncompatible}{\@compatibilitymodefalse}
49 \DeclareOption{prefix}{\def\nomprefix{a}}
50 \DeclareOption{noprefix}{\def\nomprefix{}}
52 \DeclareOption{cfg}{\@loadcfgtrue}
53 \DeclareOption{nocfg}{\@loadcfgfalse}
54 \DeclareOption{croatian}{%
55 \def\eqdeclaration#1{, vidi jednad\v{z}bu\nobreakspace(#1)}%
56 \def\pagedeclaration#1{, stranica\nobreakspace#1}%
57 \def\nomname{Popis simbola}}
58 \DeclareOption{danish}{%
59 \def\eqdeclaration#1{, se ligning\nobreakspace(#1)}%
60 \def\pagedeclaration#1{, side\nobreakspace#1}%
61 \def\nomname{Symbolliste}}
62 \DeclareOption{english}{%
63 \def\eqdeclaration#1{, see equation\nobreakspace(#1)}%
64 \def\pagedeclaration#1{, page\nobreakspace#1}%
65 \def\nomname{Nomenclature}}
66 \DeclareOption{french}{%
67 \def\eqdeclaration#1{, voir \'equation\nobreakspace(#1)}%
68 \def\pagedeclaration#1{, page\nobreakspace#1}%
69 \def\nomname{Liste des symboles}}
70 \DeclareOption{german}{%
71 \def\eqdeclaration#1{, siehe Gleichung\nobreakspace(#1)}%
72 \def\pagedeclaration#1{, Seite\nobreakspace#1}%
73 \def\nomname{Symbolverzeichnis}}
74 \DeclareOption{italian}{%
75 \def\eqdeclaration#1{, vedi equazione\nobreakspace(#1)}%
76 \def\pagedeclaration#1{, pagina\nobreakspace#1}%
77 \def\nomname{Elenco dei simboli}}
78 \DeclareOption{polish}{%
79 \def\eqdeclaration#1{, porownaj rownanie\nobreakspace(#1)}%
80 \def\pagedeclaration#1{, strona\nobreakspace#1}%
81 \def\nomname{Lista symboli}}
82 \DeclareOption{portuguese}{%
83 \def\eqdeclaration#1{, veja equa\c{c}\~ao\nobreakspace(#1)}%
84 \def\pagedeclaration#1{, p\'agina\nobreakspace#1}%
85 \def\nomname{Nomenclatura}}
86 \DeclareOption{russian}{%
87 \def\eqdeclaration#1{, \cyrs\cyrm.\nobreakspace(#1)}%
88 \def\pagedeclaration#1{, \cyrs\cyrt\cyrr.\nobreakspace#1}%
89 \def\nomname{\CYRS\cyrp\cyri\cyrs\cyro\cyrk%
90 \ \cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri%
92 \DeclareOption{spanish}{%
93 \def\eqdeclaration#1{, v\'ease la ecuaci\'on\nobreakspace(#1)}%
94 \def\pagedeclaration#1{, p\'agina\nobreakspace#1}%
95 \def\nomname{Nomenclatura}}
96 \DeclareOption{ukrainian}{%
97 \def\eqdeclaration#1{, \cyrd\cyri\cyrv.\nobreakspace(#1)}%
98 \def\pagedeclaration#1{, \cyrs\cyrt\cyro\cyrr.\nobreakspace#1}%
99 \def\nomname{\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk%
100 \ \cyrp\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrsftsn}}
101 \ExecuteOptions{noncompatible,notintoc,norefeq,norefpage,prefix,cfg,english}
102 \ProcessOptions\relax
103 \if@compatibilitymode%
104 \def\@outputfileextension{.glo}%
105 \def\@inputfileextension{.gls}%
107 \def\@outputfileextension{.nlo}%
108 \def\@inputfileextension{.nls}%
110 \def\makenomenclature{%
111 \newwrite\@nomenclaturefile
112 \immediate\openout\@nomenclaturefile=\jobname\@outputfileextension
118 {\@@@nomenclature}{\@@@nomenclature[\nomprefix]}}%
119 \typeout{Writing nomenclature file \jobname\@outputfileextension}%
120 \let\makenomenclature\@empty}
121 \if@compatibilitymode\let\makeglossary\makenomenclature\fi%
122 \def\nom@verb{\expandafter\strip@prefix\meaning}
123 \def\nomenclature{\protect\@nomenclature}
129 {\@@nomenclature}{\@@nomenclature[\nomprefix]}}
130 \def\@@nomenclature[#1]#2#3{\endgroup\@esphack}
131 \def\@@@nomenclature[#1]#2#3{%
132 \def\@tempa{#2}\def\@tempb{#3}%
133 \protected@write\@nomenclaturefile{}%
134 {\string\nomenclatureentry{#1\nom@verb\@tempa @[{\nom@verb\@tempa}]%
135 \begingroup\nom@verb\@tempb\protect\nomeqref{\theequation}%
136 |nompageref}{\thepage}}%
140 \newdimen\nomlabelwidth
141 \nomlabelwidth1cm\relax
142 \newdimen\nom@tempdim
143 \def\printnomenclature{%
145 {\@printnomenclature}{\@printnomenclature[\nomlabelwidth]}}
146 \def\@printnomenclature[#1]{%
148 \@input@{\jobname\@inputfileextension}}
149 \if@compatibilitymode\let\printglossary\printnomenclature\fi%
150 \def\nomlabel#1{#1\hfil}
156 \def\thenomenclature{%
157 \@ifundefined{chapter}%
160 \if@intoc\addcontentsline{toc}{section}{\nomname}\fi%
164 \if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
169 \labelwidth\nom@tempdim
170 \leftmargin\labelwidth
171 \advance\leftmargin\labelsep
173 \let\makelabel\nomlabel}}
174 \def\endthenomenclature{%
177 \def\nomrefeq{\@printeqreftrue}
178 \def\nomrefpage{\@printpagereftrue}
179 \def\nomrefeqpage{\@printeqreftrue\@printpagereftrue}
180 \def\nomnorefeq{\@printeqreffalse}
181 \def\nomnorefpage{\@printpagereffalse}
182 \def\nomnorefeqpage{\@printeqreffalse\@printpagereffalse}
183 \def\nomeqref#1{\if@printeqref\eqdeclaration{#1}\fi\ignorespaces}
184 \def\nompageref#1{\if@printpageref\pagedeclaration{#1}\fi%
185 \nomentryend\endgroup}
187 \InputIfFileExists{nomencl.cfg}{%
188 \typeout{Using the configuration file nomencl.cfg}}{}
192 %% End of file `nomencl.sty'.