X-VM-v5-Data: ([nil nil nil nil nil nil nil t nil] [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil]) Date: Thu, 5 Jul 90 12:36:00 PDT Reply-To: LaTeX-L Mailing list From: Don Hosek Subject: Re: hierarchy in toc files (a different idea) To: Rainer Schoepf Status: R X-Status: X-Keywords: X-UID: 164 >Well anyway: I will put the idea on this list and see >if anyone 'takes the bait'. Here's a typical segment from a TOC file: ------ \contentsline {chapter}{\numberline {1}Output from T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX}{3} \contentsline {section}{\numberline {1.1}The r{\accent 94 o}le\ of the {\ptt DVI}\ file}{3} \contentsline {section}{\numberline {1.2}Output devices for T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX}{4} \contentsline {subsection}{\numberline {1.2.1}What makes a good T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\ output device}{4} \contentsline {subsection}{\numberline {1.2.2}T\kern -.1667em\lower 5ex\hbox {E}\kern -.125emX\ output devices supported}{4} \contentsline {section}{\numberline {1.3}Writing your own {\ptt DVI}\ driver}{4} \contentsline {subsection}{\numberline {1.3.1}The T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX\ Users Group {\ptt DVI}\ Driver Standards Committee}{5} \contentsline {subsection}{\numberline {1.3.2}Some guidelines for writing a {\ptt DVI}\ driver}{5} \contentsline {subsubsection}{\numberline {1.3.2.1}General Considerations}{5} \contentsline {subsubsection}{\numberline {1.3.2.2}External files}{6} \contentsline {paragraph}{\numberline {1.3.2.2.1}Font formats}{6} \contentsline {paragraph}{\numberline {1.3.2.2.2}Where files should be located}{6} \contentsline {paragraph}{\numberline {1.3.2.2.3}Where are the formats of the various files described?}{6} \contentsline {subsubsection}{\numberline {1.3.2.3}Device Considerations}{7} \contentsline {paragraph}{\numberline {1.3.2.3.1}The relationship between {\ptt DVI}\ fonts and printer fonts}{7} \contentsline {paragraph}{\numberline {1.3.2.3.2}Dealing with large characters}{7} \contentsline {paragraph}{\numberline {1.3.2.3.3}Other common device-inspired pitfalls}{8} \contentsline {paragraph}{\numberline {1.3.2.3.4}Handling extensions (\pSPECIAL \ commands)}{9} \contentsline {section}{\numberline {1.4}Some utility programs for manipulating {\ptt DVI}\ files}{10} ----- It is a trivial exercise to modify \contentsline so that it uses its first argument in producing the hierarchical table of contents. This will work with the existing LaTeX styles (the toc segment above is output by an unmodified book.sty). Over the weekend, if I remember, I'll code up a sample implementation. -dh