diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-09 22:52:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-09 22:52:09 +0000 |
commit | a0f644b322bd240560d8e9ace64d2b12c21cc7a0 (patch) | |
tree | f7c1a5fedcaeeda20bff416cf6e133606aed2137 /Master/texmf-dist/tex | |
parent | 26987a9798d97c0d7c72c82af31b5ece66e7175d (diff) |
nomentbl for nomencl 4.2
git-svn-id: svn://tug.org/texlive/trunk@1794 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/nomentbl/nomentbl.sty | 191 |
1 files changed, 124 insertions, 67 deletions
diff --git a/Master/texmf-dist/tex/latex/nomentbl/nomentbl.sty b/Master/texmf-dist/tex/latex/nomentbl/nomentbl.sty index 659aed9dbb1..13b0901202d 100644 --- a/Master/texmf-dist/tex/latex/nomentbl/nomentbl.sty +++ b/Master/texmf-dist/tex/latex/nomentbl/nomentbl.sty @@ -1,123 +1,180 @@ -% +%% %% This is file `nomentbl.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nomentbl.dtx (with options: `package') %% -%% This file can be redistributed and/or modified under the terms -%% of the LaTeX Project Public License distributed from CTAN -%% archives in the directory macros/latex/base/lppl.txt; either -%% version 1.2 of the license, or (at your option) any later version. +%% This is a generated file. %% -%% \CharacterTable -%% {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 -%% 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 -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} -%% -\def\filename{nomentbl} -\def\fileversion{0.3} -\def\filedate{2004/02/17} -\def\docdate{2004/02/17} -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{nomentbl}[\filedate\ v03 Nomenclature in longtable (BE)] +%% Copyright (C) 2006 by Brian Elmegaard <be@mek.dtu.dk> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +%% The file is based on skeleton.ins in the dtxtut package by Scott Pakin +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{nomentbl} +[2006/04/14 v0.4 Nomenclature in a longtable environment] + + +\def\docdate{2006/04/14} +\newif\if@intoc \RequirePackage{longtable} -\RequirePackageWithOptions{nomencl}[2000/12/03 v3.1a Nomenclature package (BS)] +\RequirePackageWithOptions{nomencl}[2005/09/22 v4.2 Nomenclature package (LN)] \RequirePackage{ifthen} \RequirePackage{calc} - +\RequirePackage{array} +\DeclareOption{intoc}{\@intoctrue} +\DeclareOption{notintoc}{\@intocfalse} \DeclareOption*{% \PassOptionsToPackage{\CurrentOption}{nomencl}% } - \DeclareOption{croatian}{% \def\eqdeclaration#1{jednad\v{z}bu\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}stranica\nobreakspace#1}% - \def\nomname{Popis simbola}} + \def\nomname{Popis simbola}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{danish}{% \def\eqdeclaration#1{ligning\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}side\nobreakspace#1}% - \def\nomname{Symbolliste}} + \def\nomname{Symbolliste}% + \def\nomAname{Romerske bogstaver}% + \def\nomGname{Græske bogstaver}% + \def\nomXname{(Højtstillede) indices}% + \def\nomZname{Indices}} \DeclareOption{english}{% \def\eqdeclaration#1{equation\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}page\nobreakspace#1}% - \def\nomname{Nomenclature}} + \def\nomname{Nomenclature}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{french}{% \def\eqdeclaration#1{\'equation\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}page\nobreakspace#1}% - \def\nomname{Liste des symboles}} - \DeclareOption{german}{% + \def\nomname{Liste des symboles}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} +\DeclareOption{german}{% \def\eqdeclaration#1{Gleichung\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}Seite\nobreakspace#1}% - \def\nomname{Symbolverzeichnis}} + \def\nomname{Symbolverzeichnis}% + \def\nomAname{Lateinische Buchstaben}% + \def\nomGname{Griechische Buchstaben}% + \def\nomXname{(hochgestellte) Indizes}% + \def\nomZname{Indizes}} \DeclareOption{italian}{% \def\eqdeclaration#1{equazione\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}pagina\nobreakspace#1}% - \def\nomname{Elenco dei Simboli}} + \def\nomname{Elenco dei Simboli}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{polish}{% \def\eqdeclaration#1{rownanie\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}strona\nobreakspace#1}% - \def\nomname{Lista symboli}} + \def\nomname{Lista symboli}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{portuguese}{% \def\eqdeclaration#1{equa\c{c}\~ao\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}p\'agina\nobreakspace#1}% - \def\nomname{Nomenclatura}} + \def\nomname{Nomenclatura}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{russian}{% \def\eqdeclaration#1{\cyrs\cyrm.\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}\cyrs\cyrt\cyrr.\nobreakspace#1}% \def\nomname{\CYRS\cyrp\cyri\cyrs\cyro\cyrk% \ \cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri% - \cyrishrt}} - \DeclareOption{spanish}{% + \cyrishrt}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} +\DeclareOption{spanish}{% \def\eqdeclaration#1{ecuaci\'on\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}p\'agina\nobreakspace#1}% - \def\nomname{Nomenclatura}} + \def\nomname{Nomenclatura}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} \DeclareOption{ukrainian}{% \def\eqdeclaration#1{\cyrd\cyri\cyrv.\nobreakspace(#1)}% \def\pagedeclaration#1{\hspace*{2mm}\cyrs\cyrt\cyro\cyrr.\nobreakspace#1}% \def\nomname{\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk% - \ \cyrp\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrsftsn}} -\ExecuteOptions{norefeq,norefpage,prefix,cfg,english} + \ \cyrp\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrsftsn}% + \def\nomAname{Latin Letters}% + \def\nomGname{Greek Letters}% + \def\nomXname{Superscripts}% + \def\nomZname{Subscripts}} +\ExecuteOptions{notintoc,norefeq,norefpage,prefix,cfg,english} \ProcessOptions\relax - -\def\@@nomenclature[#1]#2#3#4{\endgroup\@esphack} -\def\@@@nomenclature[#1]#2#3#4{% +\def\@@nomenclature[#1]#2#3#4#5{\endgroup\@esphack} +\def\@@@nomenclature[#1]#2#3#4#5{% \def\@tempa{#2}\def\@tempb{#3}% - \protected@write\@glossaryfile{}% - {\string\glossaryentry{#1\nom@verb\@tempa @{\nom@verb\@tempa}&% - \begingroup\nom@verb\@tempb\endgroup &\begingroup#4\endgroup&\begingroup\protect\nomeqref{\theequation}% + \protected@write\@nomenclaturefile{}% + {\string\nomenclatureentry{#1\nom@verb\@tempa @{\nom@verb\@tempa}&% + \begingroup\nom@verb\@tempb\endgroup &\begingroup#4\endgroup&% + \begingroup#5\endgroup&\begingroup\protect\nomeqref{\theequation}% |nompageref}{\thepage}}% \endgroup \@esphack} -\def\theglossary{% - \@ifundefined{chapter}{\section*}{\chapter*}{\nomname}% +\def\thenomenclature{% + \@ifundefined{chapter}% + { + \section*{\nomname} + \if@intoc\addcontentsline{toc}{section}{\nomname}\fi% + }% + { + \chapter*{\nomname} + \if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi% + }% + \markboth{\nomname}{\nomname} \nompreamble - % \list{}{% - % \labelwidth\nom@tempdim - % \leftmargin\labelwidth - % \advance\leftmargin\labelsep - % \itemsep\nomitemsep - % \let\makelabel\nomlabel} } +\def\endthenomenclature{% + \endlist + \nompostamble} + \renewcommand\nomgroup[1]{% - \ifthenelse{\equal{#1}{A}}{% - \large{Roman Letters}}{% - \ifthenelse{\equal{#1}{G}}{% - \large{Greek Letters}}{% - \ifthenelse{\equal{#1}{X}}{% - \large{Superscripts}}{% - \ifthenelse{\equal{#1}{Z}}{% - \large{Subscripts}}{% - {}}}}}} + \ifthenelse{\equal{#1}{A}}{% + \large{\nomAname}}{% + \ifthenelse{\equal{#1}{G}}{% + \large{\nomGname}}{% + \ifthenelse{\equal{#1}{X}}{% + \large{\nomXname}}{% + \ifthenelse{\equal{#1}{Z}}{% + \large{\nomZname}}{% + {}}}}}} + +%% +%% + \endinput %% |