Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!tut.cis.ohio-state.edu!ucbvax!SHSU.BITNET!bed_gdg From: bed_gdg@SHSU.BITNET ("George D. Greenwade") Newsgroups: comp.text.tex Subject: LaTeX table of contents problem (sort of) Message-ID: <009481BF.8E7A6660.21053@SHSU.BITNET> Date: 4 May 91 22:40:27 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 56 I am in the process of overseeing final production on a project which I didn't ask for and for which I personally don't approve of the style we are constrained to (but that's why we have tenure-track professors starting an academic year in which a tenure election is to be held, isn't it?). We are preparing a relatively large report (230+ pages) in what amounts to outline format. Peter Halvorson's OUTLINE.STY has been marvelous for this -- proper spacing, enumeration labels, everything precisely as it should be -- floats even work as they should. I've even taken the work files containing each chapter, stripped the file-specific preambles, made a master shell which inputs the files, and produces the final document (at least as final as "final" is right now). Again, everything is marvelous. Now the problem. At commencement exercises today, I was asked by one of the powers that be on the project, "Oh, by the way, you're generating a table of contents based on the first, second, and third level items, right?" Quick answer by me: "Nope." It turns out that the official body to which this report will be in the mail to ON WEDNESDAY requires a table of contents (this is the first time anyone had even suggested such a beast to me; even in the illustrations I had to work with, I never saw a table of contents!). Ran (well, really walked) back to my office thinking, "this will be easy, just use \addtocontents{toc}{...} for these items and \tableofcontents at the start, then (a) LaTeX will generate a table of contents and (b) life will be easy." Guess what? (a) it doesn't and (b) it isn't. Admittedly, there are no \section'ing commands since the outline style does *specifically* what it needs to do in terms of output appearance (I'm using article.sty as the main style), but this just plain doesn't generate anything worthwhile. I didn't expect it to be exactly right due to missing sectioning commands, but did expect it to give me titles and page numbers so I could work with that by hand (seven first-level items, 42 second-level items, and 239 third-level items looks like what I should expect). What am I missing? There has to be something simple I am overlooking. All that is at stake is a project the entire faculty of the College has been working on since January (although I am still waiting on a first draft from one of the committees which still has to be incorporated prior to Wednesday's deadline -- I was hoping that it could be keyed in after a quick editing and sent, but now I face this). Clearly, I can do the contents by hand (and probably will for this iteration -- future iterations are expected, though, so this is not a transient problem), but if anyone can come up with a quick (and even dirty) trick to do this, I will be appreciative (especially if you can dream up a way to redefine \item in a list environment to do this directly, since everything presently is of the format \item {\bf Leading required text.} Discussion text..... and {Leading required text.} is what I need in the toc 8-)). Yours in ignorance, George %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% George D. Greenwade, Ph.D. Bitnet: BED_GDG@SHSU Department of Economics and Business Analysis THEnet: SHSU::BED_GDG P. O. Box 2118 Voice: (409) 294-1266 Sam Houston State University FAX: (409) 294-3612 Huntsville, TX 77341 Internet: bed_gdg%shsu.decnet@relay.the.net %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%