summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/losymbol.sty
blob: 8325dc6cdb0431ed7ff38de20c149c5c6f752f04 (plain)
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
%------------------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{\@ifundefined{chapter}{%
		\section*{\losymbolsname \@mkboth
		{\uppercase{\losymbolsname}}{\uppercase{\losymbolsname}}}
                \addcontentsline{toc}{section}{\losymbolsname}\@starttoc{los}
	}{%
		\chapter*{\losymbolsname \@mkboth
		{\uppercase{\losymbolsname}}{\uppercase{\losymbolsname}}}
                \addcontentsline{toc}{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