 
\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}

