blob: 6bfc238cf42ef0c005b69795ed8722de7385d504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
%%
%% This is file `usnomencl.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% usnomencl.dtx (with options: `pkg')
%% Copyright (C) 2005--2008 Danie Els
%%
%% --------------------------------------------------------------------
%% University of Stellenbosch Thesis Extras Packages
%% Simple Nomenclature for Theses
%% --------------------------------------------------------------------
%% This work may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c of this
%% license or (at your option) any later version. The latest version
%% of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status 'maintained'.
%%
%% This Current Maintainer of this work is Danie Els (dnjels@sun.ac.za)
%% --------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{usnomencl}[2008/05/30
v1.1
Stellenbosh Thesis Nomenclature (DNJ ELS)]
\RequirePackage{calc}
\newlength{\USN@tdima}
\newlength{\USN@NomGrpSep}
\newlength{\NomGrpSep}
\newlength{\NomItmSep}
\newlength{\NomItmMrg}
\newlength{\NomLblSep}
\setlength{\NomGrpSep}{\baselineskip}
\setlength{\NomItmSep}{\smallskipamount}
\setlength{\NomItmMrg}{1em}
\setlength{\NomLblSep}{1em}
\newcommand{\NomGrpLabel}[1]{\textbf{#1}}
\setlength{\USN@NomGrpSep}{0pt}
\newcommand\NomGroup[1]{%<-Group Headings
\vspace{\USN@NomGrpSep}%
\setlength{\USN@NomGrpSep}{\NomGrpSep}%
\item[\hspace*{-\NomItmMrg}\NomGrpLabel{#1}]}
\newcommand{\NomLabel}[1]{#1\hfil}
\newenvironment{Nomencl}[1][2em]%<- Nomenclature list environment
{\list{}{%
\setlength{\labelwidth}{#1}%
\setlength{\labelsep}{\NomLblSep}%
\setlength{\itemindent}{0pt}%
\setlength{\leftmargin}{\labelwidth+\labelsep-\itemindent+\NomItmMrg}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemsep}{\NomItmSep}%
\setlength{\parsep}{\parskip}%
\let\makelabel\NomLabel}}%
{\endlist}
\newcommand*{\UnitLabel}[1]{~[\,\ensuremath{\mathrm{#1}}\,]}
\newlength{\UnitLabelWdth}
\setlength{\UnitLabelWdth}{2cm}
\newcommand{\UnitLine}[3][\UnitLabelWdth]{{%
\setlength{\USN@tdima}{#1}%
\rightskip\USN@tdima\relax
\parfillskip -\rightskip
\leavevmode
{#2}\nobreak
\leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{\tiny.}\mkern \@dotsep mu$}%
\hfill
\nobreak
\makebox[\USN@tdima][l]{\UnitLabel{#3}}%
}}
\endinput
%%
%% End of file `usnomencl.sty'.
|