blob: 72210c222c1324d2ae80b3170ab3a9ac24e7ee2c (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
\ifx\selectfont\undefined
\documentstyle[newdoc,ltugboat]{article}
\else
\documentstyle[oldlfont,newdoc,ltugboat]{article}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% The next section defines a few font related commands if the
%% new font selection scheme is in force.
%%
%% Additionally you have to use the oldlfont option because this was
%% written for the old LaTeX.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx \selectfont\undefined \else
\ifx\tensl\undefined
\newcommand{\tensl}
{\family{cmr}\series{m}\shape{sl}\size{10}{12pt}\selectfont}
\fi
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% The next few lines are for those with a new TeX 3.0 to ensure
%% that hyphenation etc. is done correctly.
%%
\ifx \lefthyphenmin\undefined \else
\lefthyphenmin=2
\righthyphenmin=3
\errorcontextlines=1
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% And finally some definitions for the doc style
%% to get this special article right.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\SelfDocumenting
\addtolength{\marginparwidth}{1cm} % Long macro names
% Compensate for stupid long net address
\makeatletter
\def\makesignature{%
\par
\rightline{%
\vbox{\hsize=19pc \ninepoint \raggedright % was 12pc
\parindent \z@ \everypar={\hangindent 1pc }
\parskip \z@skip
\netaddrat
\netaddrpercent
\def\|{\unskip\hfil\break}%
\def\\{\endgraf}%
\def\net{\tt}%
\def\phone{\rm Phone: } \rm
\medskip
\@signature}}
}
\makeatother
\PrelimDraftfalse
\setcounter{page}{1}
\setcounter{IndexColumns}{2} % two column index
%\let\DescribeMacro\SpecialUsageIndex % \
%\let\DescribeEnv\SpecialEnvIndex % > no marginal notes
%\renewcommand{\PrintMacroName}[1]{} % /
\renewcommand{\theCodelineNo}{{\rm\tiny\arabic{CodelineNo}}}
\MakeShortverb{\|}
\DisableCrossrefs % No Cross references
%\EnableCrossrefs
%\OnlyDescription % Full article
%\RecordChanges % Do not print changes
\CodelineIndex % Code lines numbered
%\PageIndex
\begin{document}
\DocInput{exercise.doc}
\PrintIndex
\end{document}
|