-
Notifications
You must be signed in to change notification settings - Fork 1
/
losymbol.sty
executable file
·97 lines (93 loc) · 2.92 KB
/
losymbol.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
%------------------8<--------------------8<------------8<--------------
%losymbol.sty by gerry van dooren, may 1992, revised august 1992.
% elecgd@urc.tue.nl
%
%definition is nearly analogous to the setup for list of figures
%and list of tables; use same definition using \@starttoc,
%however default extension is now .los
%
%MODIFICATIONS:
%
%1. losymbol.sty can now always be used, without paying attention to the
% style file used in de main document (using if undefined) <aug 1992>.
%
%2. It appeared that, if the list of symbols is larger than one page,
% the pagenumber of the list in the table of contents was the last page
% of the list of symbols. This is also repaired by interchanging the
% \addcontentsline{} and the \starttoc{} statements <july 1992>.
%
%PROBLEMS ENCOUNTERED:
%
%1. If the explanation of the symbols is longer than the width of the
% right column, the linespacing is not uniform anymore. The solution
% to this problem is not yet found <july 1992>.
%
\def\losymbolsname{List of Symbols}
\def\listofsymbols{%
\appendix \setcounter{chapter}{1} \chapter{\losymbolsname}
\@starttoc{los}
}
%
%command for putting text in file \jobname.loa is \addsymbol
%command that is used for actually producing text is called
%\makenicesymbolline
\def\addsymbol#1#2{%
\addtocontents{los}{\protect \makenicesymbolline{#1}{#2}}}
%
%physical dimensions of columns
%
\newdimen\@lcsym %width of left column
\@lcsym=3cm %default 3cm
%
\newdimen\@mcsym %width of mid column (space)
\@mcsym=2cm %default 2cm
%
\newdimen\@rcsym %width of right column
\@rcsym=\hsize %initial width=textwidth
%
\advance\@rcsym by -\@lcsym %subtract lcsym
\advance\@rcsym by -\@mcsym %subtract mid
%
%command for producing the actual line uses standard minipages
%to cope with long definitions
%
\def\makenicesymbolline#1#2{%
\begin{minipage}[t]{\@lcsym}#1\end{minipage}%
$\hspace{\@mcsym}$%
\begin{minipage}[t]{\@rcsym}#2\end{minipage}\newline}
%
%end of losymbol.sty
%another implementation
%
%\ifx\documentclass\usepackage % true after \begin{document}
% \begin{list}{}{\leftmargin=2cm
% \labelwidth\leftmargin\advance\labelwidth-\labelsep
% \def\makelabel##1{##1\hfil}}
% \def\EndThisFile{\end{list}}
% \renewcommand\newsymbol[4][]{\item[#2] #4}
% \renewcommand\otherdef[3][\relax]{\item[#2] #3}
% \index{ @Physical Symbols}
%\else
% \newcommand\newsymbol[4][]{\def#2{%
% \index{ @Physical Symbols!#1\protect#2@$#3$}%
% \ensuremath{#3}}}
% \newcommand\otherdef[3][\relax]{\ifx#1\relax\else\let#1#2\fi}
% \let\EndThisFile\relax
%\fi
%
%\newsymbol{\Cd}{C_D}
% {Depletion layer capacitance}
%
%\newsymbol{\Cm}{C_m}
% {MOS capacitance per unit area}
%
%\newsymbol{\Cox}{C_{ox}}
% {Oxide capacitance, $\Cox = \eSiO2/\dox$}
%
%\newsymbol{\Cs}{C_S}
% {Semiconductor capacitance per unit area}
%
%\otherdef[\CS]{\Cs}
% {Pipeline cell storage capacitor}
%
%\EndThisFile