summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/extradefs.tex
blob: c7ac99e5adab59d25287aa86b2e2222d4f118c12 (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
%
% Supplied by Kent McPherson
%
\def\trademark{{\ooalign
   {\tiny \hfill \raise .085ex\hbox{R}\hfill \crcr
    \scriptsize \mathhexbox20D}}}
%
% Supplied by Kent McPherson
%
\newlength{\ulength}
\newcommand{\uline}[2]{
 \settowidth{\ulength}{#2}
 \parbox{\ulength}{
   {#2} \\ [-.75\baselineskip]
   \rule{\ulength}{#1}}
}
%
% Supplied by Kent McPherson
%
\newcount\@outlinedepth \@outlinedepth = 0

\@definecounter{outlinei}
\@definecounter{outlineii}
\@definecounter{outlineiii}
\@definecounter{outlineiv}

\def\outline{\ifnum \@outlinedepth >3 \@toodeep\else
      \advance\@outlinedepth \@ne
      \edef\@outlinectr{outline\romannumeral\the\@outlinedepth}\list
      {\csname label\@outlinectr\endcsname}{\usecounter
        {\@outlinectr}\def\makelabel##1{\hss\llap{##1}}}\fi}

\let\endoutline =\endlist

\def\labeloutlinei{\Roman{outlinei}.}
\def\theoutlinei{\Roman{outlinei}}
\def\labeloutlineii{\Alph{outlineii}.}
\def\theoutlineii{\Alph{outlineii}}
\def\p@outlineii{\theoutlinei}
\def\labeloutlineiii{\arabic{outlineiii}.}
\def\theoutlineiii{\arabic{outlineiii}}
\def\p@outlineiii{\theoutlinei(\theoutlineii)}
\def\labeloutlineiv{\alph{outlineiv}.}
\def\theoutlineiv{\alph{outlineiv}}
\def\p@outlineiv{\p@outlineiii\theoutlineiii}
%
% Supplied by Kent McPherson
%
%
% Produce a list of MIL documents
\def\documentlabel#1{\def\\{\egroup\hbox\bgroup}
    \raisebox{0pt}[2.5ex][0ex]{\vtop{\hbox\bgroup#1\egroup}} \hfill}
\def\documentlist{\list{}{\labelwidth=10em 
    \advance\labelwidth\labelsep
    \leftmargin\labelwidth \advance\leftmargin\labelsep 
    \advance\leftmargin 2\parindent 
    \let\makelabel\documentlabel \raggedright}}
\let\enddocumentlist=\endlist