bed_gdg@SHSU.BITNET (George D. Greenwade) (01/05/91)
This is forwarded from a message sent to me. The original inquirer, lesher@ncifcrf.gov, is not presently an INFO-TeX subscriber, so she is unable to directly post this to INFO-TeX (I don't recall exactly how what she wants to do is done, but know I have seen it done). PLEASE NOTE: The person in need of your response is: lesher@ncifcrf.gov A cross post to INFO-TeX would also be appreciated, but Sarah is the one in need here. Thanks, George ------------------------------------- I need to print indented outlines (roughly like LaTex table of contents, but more flexibly, something which I gather Word- Perfect does -- but I don't need to learn another editor and another operating system!). I've spent many hours trying various things without success. This may be a FAQ but I poured over the clarkson style archives without success, and the volume of traffic in Comp.text.tex overwhelms my brousing efforts. Can you help? at least tell me whether this isn't FAQ so I won't feel foolish posting to whole news group. Thanks, {Sarah Lesher} lesher@ncifcrf.gov lesher%ncifcrf.gov@cunyvm.bitnet
xiaofei@acsu.buffalo.edu (Xiaofei Wang) (01/06/91)
{Sarah Lesher} lesher@ncifcrf.gov lesher%ncifcrf.gov@cunyvm.bitnet asked: * I need to print indented outlines (roughly like LaTex table of * contents, but more flexibly, something which I gather Word- * Perfect does -- but I don't need to learn another editor and If WP can do it, surely TeX can. \def\sixmm{\hbox to 0.6 true cm{}} \item {\sixmm} Text to be indented 0.6 true cm. If you want to indent text x true cm, all you need to do is to define x true cm empty box and then use \item.
bed_gdg@SHSU.BITNET (George D. Greenwade) (01/06/91)
Once again, INFO-TeX comes through in a pinch! Regarding Sarah Lesher's <lesher@ncifcrf.gov> question posted yesterday, Xiaofei Wang <xiaofei@acsu.buffalo.edu> replies: -------------------------------------------------- {Sarah Lesher} lesher@ncifcrf.gov lesher%ncifcrf.gov@cunyvm.bitnet asked: * I need to print indented outlines (roughly like LaTex table of * contents, but more flexibly, something which I gather Word- * Perfect does -- but I don't need to learn another editor and If WP can do it, surely TeX can. \def\sixmm{\hbox to 0.6 true cm{}} \item {\sixmm} Text to be indented 0.6 true cm. If you want to indent text x true cm, all you need to do is to define x true cm empty box and then use \item. -------------------------------------------------- Regards, George
bed_gdg@SHSU.BITNET (George D. Greenwade) (01/09/91)
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}.} }