%% %% 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'.