summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty
blob: d3beb4d40876fb58b1c545adf6a2e4dc5a74a7f3 (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
%%
%% This is file `usnomencl.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% usnomencl.dtx  (with options: `pkg')
%% 
%% -------------------------------------------------------------------
%%         University of Stellenbosch Thesis Extras Packages
%%                Simple Nomenclature for Theses
%% -------------------------------------------------------------------
%% 
%% Author: Danie Els
%% 
%%         Copyright (C) 2005-2006 Danie Els
%%         All rights reserved.
%% 
%% This work may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3 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.3 or later is part of all distributions of LaTeX version
%% 2003/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}[2006/03/08
                            v1.0a
                            Stellenbosh Thesis Nomenclature (DNJ ELS)]
\RequirePackage{calc}
\newlength{\USN@tdima}
\newlength{\USN@NomGrpSep}
\newlength{\NomGrpSep} \setlength{\NomGrpSep}{\baselineskip}
\newlength{\NomItmSep} \setlength{\NomItmSep}{\smallskipamount}
\newlength{\NomItmMrg} \setlength{\NomItmMrg}{1em}
\newlength{\NomLblSep} \setlength{\NomLblSep}{1em}
\providecommand*{\phantomsection}{}
\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}
\endinput
%%
%% End of file `usnomencl.sty'.