Article View: comp.text
Article #2831Re: TOC Format Question
From: Bruno Pillard
Date: Wed, 15 May 1991 12:03
Date: Wed, 15 May 1991 12:03
47 lines
2123 bytes
2123 bytes
From article <1991May14.150823.2140@solbourne.com>, by tsmith@solbourne.com (Terry Smith):
% Hello Roffers.
%
% Using -mm macros with .TC at the end of my source file,
% I get a TOC print out looking like this:
%
% Section 1: Intro ........................1-1
% 1.1 Foobar .....................1-2
% 1.2 Foo2 .......................1-3
% 1.2.1 Files 1-3
%
%
% Problem --
%
% At level 1.2.1, I want the TOC to print out
% with the leading dots like this:
%
%
% Section 1: Intro ........................1-1
% 1.1 Foobar .....................1-2
% 1.2 Foo2 .......................1-3
% 1.2.1 Files ................. 1-3
%
% I've changed (contents list) .nrCl 3 but this doesn't
% affect anything except the levels of heading that are
% collected for use in the TOC. Is there a number register
% or macro that I can adjust to get the results I want?
Solution:
Use the .TC macro with the following arguments:
.TC 1 1 4 0
For headings whose level is less than or equal to tlevel (the
third argument, default is 2), page number are right justified
otherwise page numbers are separated from heading text by 2 spaces.
If the fourth argument is 0 (default value) dots are used, if the
fourth argument is greater than 0, spaces are used.
The two first arguments control the spacing before each entry of
the TOC.
__
/ ) Bruno Pillard
/--< __ . . __ __ Chorus Systemes
/___/_/ (_(_/_/) )_(_) 6 Avenue Gustave Eiffel
78182 St-Quentin-en-Yvelines-Cedex France
bp@chorus.fr (Internet) Tel: +33 (1) 30 64 82 13
Technical Details
Message-ID:
<10484@chorus.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!corton!chorus!bpReferences:
<1991May14.150823.2140@solbourne.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!corton!chorus!bp From: bp@chorus.fr (Bruno Pillard) Newsgroups: comp.text Subject: Re: TOC Format Question Message-ID: <10484@chorus.fr> Date: 15 May 91 12:03:22 GMT References: <1991May14.150823.2140@solbourne.com> Sender: news@chorus.fr Lines: 47