|
Subject: Re: formatting TOC From: Daniel Speck <dspeck@xxxxxxxxxxxx> Date: Thu, 19 Jun 1997 15:39:31 -0400 |
Taranov Alexander wrote:
>
> 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 ??
>
Yes, all you need to specify in the (make paragraph ...) is:
end-indent: .5in
last-line-end-indent: -.5in
-dan
--
Daniel Speck e-mail: dspeck@xxxxxxxxxxxx
Research Engineer voice: +1 301.548.7818
Thomson Technology Services Group fax: +1 301.527.4094
1375 Piccard Drive, Rockville, MD 20850 WWW: www.thomtech.com
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| formatting TOC, Taranov Alexander | Thread | DD: Handbook outline so far, Tony Graham |
| Re: DD: Outline for "Crash course , Bill Lindsey | Date | DD: ports -Reply, David Pawson |
| Month |