[comp.text.tex] Revised OUTLINEITEMS.STY

bed_gdg@SHSU.BITNET (George D. Greenwade) (01/10/91)

Yesterday, I posted OUTLINEITEMS.STY in response to the outline problem.
As usual, my comprehensive code writing skills are suspect.  Max Hailperin
<max@nic.gac.edu> pointed out quite correctly that the mere changing of
\labelenumX would cause problems in a ref/label sequence since not all of
the aspects of the \labelX, \theX, and \p@X weren't properly changed.  Max
also suggested that the appropriate way to do this might not be to
piggyback this onto enumerate, but to create a new environment for this
(which is also probably true).  Based on the sheer volume of mail I
received about yesterday's post (60 as of this time!), I feel obligated to
re-post a corrected version (and place it now on FILESERV) which does
handle label/ref's and continues to use a variant of enumerate.  Thanks to
Max for pointing this out (and providing the corrected code); all omissions
and mistakes remain mine.  If anyone has an outline environment they would
like to offer, please do so, sending it to either me (BED_GDG@SHSU.BITNET),
the list (INFO-TeX@SHSU.BITNET), or to the FILESERV style archives manager
(STY-Mgr@SHSU.BITNET).

-- George

%% OUTLINEITEMS.STY -- Different outline \item options for LaTeX version 2.09
%% September 28, 1988; revised January 9, 1991 (label/ref now operable)
%% George D. Greenwade (BED_GDG@SHSU), Department of Economics and Business
%%  Analysis, Sam Houston State University, Huntsville, TX  77341-2118
%%
%% Includes original FULLPAGE.STY as default. Defines \outlineitems
%%  for traditional outline enumerations; retains standard
%%  default for enumeration under \normalitems.

\marginparwidth 0pt
\oddsidemargin  0pt
\evensidemargin  0pt
\marginparsep 0pt

\topmargin   0pt

\textwidth   6.5in
\textheight  8.5 in

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% define the enumeration options    %%
%% (\outlineitems and \normalitems)  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\outlineitems{
\def\theenumi{\Roman{enumi}}
\def\labelenumi{\theenumi.}
\def\theenumii{\Alph{enumii}}
\def\p@enumii{\theenumi.}
\def\labelenumii{\theenumii.}
\def\theenumiii{\arabic{enumiii}}
\def\p@enumiii{\p@enumii\theenumii.}
\def\labelenumiii{\theenumiii.}
\def\theenumiv{\alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii.}
\def\labelenumiv{\theenumiv.}
}

\def\normalitems{
\def\theenumi{\arabic{enumi}}
\def\labelenumi{\theenumi.}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi.}
\def\labelenumii{\theenumii.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\p@enumii\theenumii.}
\def\labelenumiii{\theenumiii.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii.}
\def\labelenumiv{\theenumiv.}
}