[comp.text] TOC Format Question

tsmith@solbourne.com (Terry Smith) (05/14/91)

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?

Terry
tsmith@solbourne.com

bp@chorus.fr (Bruno Pillard) (05/15/91)

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