summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty')
-rw-r--r--Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty60
1 files changed, 37 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty b/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty
index d3beb4d4087..6bfc238cf42 100644
--- a/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty
+++ b/Master/texmf-dist/tex/latex/stellenbosch/usnomencl.sty
@@ -5,39 +5,39 @@
%% 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
-%% -------------------------------------------------------------------
-%%
-%% Author: Danie Els
-%%
-%% Copyright (C) 2005-2006 Danie Els
-%% All rights reserved.
-%%
+%% Simple Nomenclature for Theses
+%% --------------------------------------------------------------------
%% 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.
+%% 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 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
+\ProvidesPackage{usnomencl}[2008/05/30
+ v1.1
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}{}
+\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
@@ -56,6 +56,20 @@
\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'.