Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!ucbvax!SHSU.BITNET!bed_gdg From: bed_gdg@SHSU.BITNET (George D. Greenwade) Newsgroups: comp.text.tex Subject: Re: LaTeX output of indented outlines Message-ID: <0094265f.c18a6c00.12080@SHSU.BITNET> Date: 8 Jan 91 16:55:25 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 61 Another idea came to mind when I thought about Sarah Lesher's outline question a little longer (especially since I wrote this style file but didn't recall it very quickly). I have a style file, OUTLINEITEMS.STY (attached below and available at FILESERV@SHSU.BITNET as STY.OUTLINEITEMS) which relies exclusively on the enumerate environment for output of outlines. All that is changed is the definition of enumi, enumii, enumiii, and enumiv. In their default states, enumi=arabic (1., 2., ...), enumii=alph (a., b., ...), enumiii=roman (i., ii., ...), and enumiv-Alph (A., B., ...). With no other commands, this is what you will get. The style file creates a toggle between these normal definitions (\normalitems) and a more conventional outline enumeration (\outlineitems). If the command \outlineitems is given in the text or preamble, enumi=Roman (I., II.,...), enumii=Alph (A., B., ...), enumiii=arabic (1., 2., ...), and enumiv=alph (a., b., ...). You can toggle back and forth as often as you wish using \normalitems and \outlineitems. The main limitation (which I don't personally see as a limitation, especially given Xiaofei Wang's earlier response) is the spacing of the enumerate environment is what the outline will be based on. Regards, George % Save file as: OUTLINEITEMS.STY Source: FILESERV@SHSU.BITNET %% OUTLINEITEMS.STY -- Different outline \item options for LaTeX version 2.09 %% September 28, 1988 %% George D. Greenwade (BED_GDG@SHSU), Center for Business & Economic %% Research, Sam Houston State University, Huntsville, TX 77341-2056 %% %% Includes 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) %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \long\def\outlineitems{ \def\labelenumi{\Roman{enumi}.} \def\labelenumii{\Alph{enumii}.} \def\labelenumiii{\arabic{enumiii}.} \def\labelenumiv{\alph{enumiv}.} } \long\def\normalitems{ \def\labelenumi{\arabic{enumi}.} \def\labelenumii{\alph{enumii}.} \def\labelenumiii{\roman{enumiii}.} \def\labelenumiv{\Alph{enumiv}.} }