formatting TOC

Subject: formatting TOC
From: Taranov Alexander <tay@xxxxxxxxxx>
Date: Thu, 19 Jun 97 17:09 MSD
Hi there,

My question is concerning formatting TOCs.

Thanks to Sebastian Ratz, now leader is working in jadetex.

but consider following rule taken from
 DSSSL style sheet for HTML 3.2 print output
by Jon Bosak:

(define ($toc-entry$ level)
  (make paragraph
	use: para-style
	start-indent: (+ %body-start-indent%
			 (* %toc-indent% (+ 1 level)))
	first-line-start-indent: (* -3 %toc-indent%)
	quadding: 'start
	(literal (NUMLABEL level))
	(make link
	      destination: (current-node-address)
	      (with-mode #f (process-children-trim)))
	(make leader (literal "."))
	(current-node-page-number-sosofo)))


it works ok until names of sections become too long and output looks
like:

1. Short title ......................3
2. It is very very very very very very
   long title........................7

but i prefer output of the form 

1. Short title ......................3
2. It is very very very very very 
   very long title...................7

Is it possible by playing with last-line-end-indents 
or something like that ??

Alexander

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • formatting TOC
    • Taranov Alexander - Thu, 19 Jun 1997 09:08:47 -0400 (EDT) <=