forked from themiguelamador/ThesisIST
-
Notifications
You must be signed in to change notification settings - Fork 1
/
00.symlist.sty
97 lines (97 loc) · 2.84 KB
/
00.symlist.sty
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%%
%% This is file `symlist.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% symlist.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright (C) 2008 by Kevin W. Hamlen
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3a 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.3a or later is part of all distributions of LaTeX version
%% 2004/10/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{00.symlist}
[2008/03/11 v1.1 Symbol List package]
\ProcessOptions\relax
\newcommand\LOS@symline[4]{%
\ifx\hyper@anchor\@undefined%
\contentsline{symbol}{\numberline{#2}{#3}}{#4}\relax%
\else%
\contentsline{symbol}{\numberline{#2}{#3}}{#4}{symbol.#1}%
\fi%
}
\newcommand\listsymbolname{List of Symbols}
\newcount\LOS@cnt
\newdimen\LOS@wd
\newcommand\LOS@ext{los}
\newcommand\LOS@init[1]{%
\long\gdef\l@symbol{\@dottedtocline{1}{1.5em}{#1}}%
}
\newcommand\newsym{\@ifnextchar[\LOS@@newsym\LOS@newsym}
\newcommand\LOS@newsym[2]{\LOS@@newsym[#2]{#1}{#2}}
\newcommand\LOS@@newsym{}
\def\LOS@@newsym[#1]#2#3{%
\global\advance\LOS@cnt\@ne%
\ifmmode%
\settowidth\dimen@{$#1$\kern1em}%
\expandafter\gdef%
\csname LOS@sym@\romannumeral\LOS@cnt\endcsname##1##2{%
\@writefile\LOS@ext{\LOS@symline{##1}{$#1$}{#2}{##2}}}%
\else%
\settowidth\dimen@{#1\kern1em}%
\expandafter\gdef%
\csname LOS@sym@\romannumeral\LOS@cnt\endcsname##1##2{%
\@writefile\LOS@ext{\LOS@symline{##1}{#1}{#2}{##2}}}%
\fi%
\ifdim\dimen@>\LOS@wd\global\LOS@wd\dimen@\fi%
\if@filesw%
\write\expandafter\@auxout\expandafter{%
\expandafter\noexpand\expandafter\LOS@sym\expandafter{%
\romannumeral\LOS@cnt}{\thepage}}%
\fi%
\@ifundefined{hyperdef}{}%
{\hyperdef{symbol}{\romannumeral\LOS@cnt}}%
{#3}%
}
\newcommand\LOS@sym[2]{}
\AtBeginDocument{%
\gdef\LOS@sym#1{\csname LOS@sym@#1\endcsname{#1}}%
\if@filesw%
\@temptokena{\expandafter\@writefile\expandafter\LOS@ext%
\expandafter{\expandafter\LOS@init\expandafter{\the\LOS@wd}}}%
\immediate\write\@auxout{\the\@temptokena}%
\fi%
}
\ifx\chapter\undefined
\newcommand\listofsymbols{%
\section*{\listsymbolname}%
\@mkboth{\MakeUppercase\listsymbolname}%
{\MakeUppercase\listsymbolname}%
\addvspace{10\p@}%
\@starttoc\LOS@ext%
}
\else
\newcommand\listofsymbols{%
\if@twocolumn\@restonecoltrue\onecolumn\else\@restonecolfalse\fi%
\chapter*{\listsymbolname}%
\@mkboth{\MakeUppercase\listsymbolname}%
{\MakeUppercase\listsymbolname}%
\addvspace{10\p@}%
\@starttoc\LOS@ext%
\if@restonecol\twocolumn\fi%
}
\fi
\endinput
%%
%% End of file `symlist.sty'.