1 % I liked the look of the Linux Network Admin guide, so I borrowed some
2 % of his personal macros (with a few modifications of course). I am anything
3 % but a LaTeX / TeX pro ....
5 \def\felt{{\reset@font
\rm FElt
}}
8 % The following is copied from book.sty. It is used for
9 % preamble sections like "Contents", "List of Figures",
10 % etc. I use it for the "List of Abbreviations"
11 \def\prechapter#1{\chapter*
{#1}%
12 \addcontentsline{toc
}{chapter
}{#1}%
13 \markboth{\uppercase{#1}}{\uppercase{#1}}
15 \def\postchapter#1{\prechapter{#1}}
16 \def\presection#1{\section*
{#1}%
17 \addcontentsline{toc
}{section
}{#1}%
18 \markboth{\uppercase{#1}}{\uppercase{#1}}
20 \def\postsection#1{\presection{#1}}
23 % The following was ripped from transfig output. It is used in
24 % conjunction with FIG pictures in LaTeX.
25 \typeout{TransFig: figures in eepic.
}
27 \begingroup\makeatletter
28 % extract first six characters in \fmtname
29 \def\x#1#2#3#4#5#6#7\relax{\def\x{#1#2#3#4#5#6}}
30 \expandafter\x\fmtname xxxxxx
\relax \def\y{splain
}
31 \ifx\x\y % LaTeX or SliTeX?
32 \gdef\SetFigFont#1#2#3{%
33 \ifnum #1<
17 \tiny\else \ifnum #1<
20 \small\else
34 \ifnum #1<
24 \normalsize\else \ifnum #1<
29 \large\else
35 \ifnum #1<
34 \Large\else \ifnum #1<
41 \LARGE\else
36 \huge\fi\fi\fi\fi\fi\fi
39 \gdef\SetFigFont#1#2#3{\begingroup
40 \count@
#1\relax \ifnum 25<
\count@
\count@
25 \fi
41 \def\x{\endgroup\@setsize
\SetFigFont{#2pt
}}%
43 \csname \romannumeral\the\count@ pt
\expandafter\endcsname
44 \csname @
\romannumeral\the\count@ pt
\endcsname