OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] TOC numbers are not lining up correctly


Actually, I made an interesting discovery.

I went back to my stylesheets, and reprocessed my file using the 
standard DocBook.xsl for fo. The TOC came out fine (just without my 
styles). I then knew the problem resided in my customization layer, so I 
went through and took everything out of it, then slowly added stuff back 
in, testing the output until I found what broke it.

Oddly enough, the offending line was in a customization for my 
header.properties. In that layer, I specified the font-wieght to be 
bold. When I took that line out, the TOC came out just fine.

I'm not sure how the font-weight for the header of my document affects 
the TOC, but there you have it. Strange, isn't it?

Dave Shevitz

Oh, and I am using 0.20.5 of FOP.

Bob Stayton wrote:

>The numbers should be right justified automatically.  They line up when I
>use version 0.20.5 of FOP.  What version are you using?  Are you using any
>other customizations?
>
>Bob Stayton
>Sagehill Enterprises
>DocBook Consulting
>bobs@sagehill.net
>
>
>----- Original Message ----- 
>From: "David Shevitz" <dshevitz@singlestep.com>
>To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
>Sent: Thursday, June 24, 2004 8:25 AM
>Subject: [docbook-apps] TOC numbers are not lining up correctly
>
>
>  
>
>>Greetings all,
>>
>>Yes, its me with yet another question! I have just converted a large
>>document (several hundred pages, instead of the 10 or so I've been using
>>as DocBook test cases) into a DocBook format. Everything is working
>>fine, with one exception: when I generate a PDF, the TOC numbers are not
>>aligned correctly.
>>
>>I suspect that there is a parameter that sets how much space exists
>>between a TOC entry and its corresponding page number. But I have looked
>>in the DocBook XSL: The Definitive Guide, as well as several of the
>>parameter reference pages, and I am having trouble locating what
>>parameter/template I need to change. Of course, this lack of alignment
>>might be caused by something else entirely.
>>
>>For clarification, the output I'm getting is this:
>>
>>Section..........1
>>    Section2......2
>>    Section3.......3
>>    Section4......4
>>
>>Again, I think the length of the toc entry title has something to do
>>with this, but I'm not sure what to change. If it matters, I'm using FOP
>>to convert to PDF (I don't _think_ this is a FOP issue, but I could be
>>wrong)
>>
>>Thanks in advance for any assistance,
>>
>>David Shevitz
>>Lead Technical Writer
>>Singlestep Technologies
>>http://www.singlestep.com
>>
>>To unsubscribe from this list, send a post to
>>    
>>
>docbook-apps-unsubscribe@lists.oasis-open.org, or visit
>http://www.oasis-open.org/mlmanage/.
>  
>
>>
>>    
>>
>
>
>
>To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
>
>
>  
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]