[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

808.0. "Separate tables of contents for each chapter" by DECSIM::GREENE () Fri Aug 14 1987 13:10

    How can you create a book with separate tables of contents for
    each chapter, and a less detailed table of contents for the entire
    book?
    
    \Mary Greene
T.RTitleUserPersonal
Name
DateLines
808.1Can be done, partially.VAXUUM::CORMANFri Aug 14 1987 14:3718
    To generate a table of contents for each chapter, you can process
    each chapter separately in an element build and use the /contents
    qualifier. For example, to do an element build for a chapter 
    named FIRST_CHAP.SDML, which is part of a book with a profile 
    called GREAT_BOOK.SDML, you use the command:
    
    DOCU FIRST_CHAP doctype destination /profile=great_book /content
                                                               
    Before you can do an element build, you must first have done
    a complete bookbuild, so that you have a cross-reference file for
    the whole book.
    
    You cannot generate a table of contents for the whole book that
    is less detailed than the seperate chapters. All your chapter headings
    are included automatically in any table of contents.
    
    
    
808.2Will .2 put the contents in the chapter?PNEUMA::ILSLEYYoyodyne consultant....Fri Aug 14 1987 16:328
Re: .2

Will your method create a TOC that starts the chapter, with the page accounted
for? That is, will the TOC for Chapter 1 end up on page 1-1? I think that's what
.1 is looking for. I'd also like to create such a style, with a detailed TOC for
each chapter and a simple TOC for the book.    
    

808.3A Messy SolutionPNEUMA::ILSLEYYoyodyne consultant....Fri Aug 14 1987 18:0819
There is a very messy way to do this.

1. Process a chapter, using /contents and /keep=tex.

2. Cut and paste the chapter_contents.tex file into the chapter.tex
   file. You have to do some housecleaning, such as deleting the
   extra \begintexinput command, and the \begintoc and \endtoc commands. 
   The _contents.tex should come after the chapter heading. For the
   moment, the page numbers will be wrong.

3. Repeat step 1 and print out your new contents file. This has the
   correct page numbers.

4. Edit the chapter.tex file from step 2. You have to change the page
   numbers in the contents you inserted, to match the contents from step 3.

I tried this method, and it works (at least in one local doctype). Of course,
to get a less detailed contents for the book, you'd have to delete the
subentries from the book_contents.tex file.
808.4On wishlistCLOSET::ANKLAMMon Aug 17 1987 09:458
    
    Mary, I apologize for not responding to 778; I have put this item
    on the wishlist. We can look at how to implement this along with
    the already listed item of being able to cross-reference items
    by page number.
    
    -patti