[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Chapter TOC



*** The original message appeared on the FrameUsers mailing list.
*** This reply is copied only to the framers@omsys.com mailing list.
*** If this information was useful, consider copying it to FrameUsers.

> I was wondering how would you create a mini TOC on the first 
> page of each chapter of a book. 

For chapter-level TOCs in a book, there's no really simple way.
The alternatives are:

a) If you don't have too many headings in your chapter-level TOC,
   and you don't add/delete/move headings a lot, using cross-refs
   to make up a TOC is an option. You have to create special cross-ref
   formats that look like TOC entries, and you have to insert them
   manually (that's why you don't want the headings to change much).
   A TOC made up of cross-refs will always be updated correctly
   when you update the book.

b) Copy and paste each chapter's TOC from a large book-level TOC
   into your chapter files. This is a manual method that sometimes
   needs another book update and copy/paste session, if your page
   numbering is changed by the addition of the TOC.

c) From each chapter file, generate a TOC file and insert it as
   a text inset in the chapter file. The TOC file will be included
   automatically, but you have to re-generate the chapter TOCs manually.
   A book update cannot generate TOCs for individual files.

d) A variant of the above: create a small mini-book for each chapter,
   consisting of the chapter file and the generated TOC, and insert
   the TOC as a text inset in the chapter file. Before updating the
   large book, run a script to first update all mini-books. This can
   be achieved by fmbatch on UNIX or DZbatcher on Windows.

e) Make each chapter file use their own unique heading tags, e.g.
   Heading1_A in file A and Heading1_B in file B. Then you can create
   a book TOC for each chapter, using only the chapter-specific tags.
   This is completely automatic, but very cumbersome and not very
   template-friendly...

- - - - - - - - - - - - - - - - - - - - - -
Thomas Michanek, FrameMaker/UNIX/MIF expert
mailto:Thomas.Michanek@iar.se     (Sweden)
http://w1.133.telia.com/~u13304072/framers
- - - - - - - - - - - - - - - - - - - - - -
Join the low-volume "Free Framers" mailing list: send an email
to majordomo@omsys.com with "subscribe framers" in the body

** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **