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] FO "Table of Contents" title alignment error



On Mon, 16 Jan 2006, Bob Stayton wrote:

> Hi Costin,

Hi!

> Regarding the Table of Contents title, I don't see the problem.  The 
> title is outdented to zero in the book table of contents that I tried. 
> Can you provide more details?

Here they are. I don't really know whether this would be a bug or a 
feature. I'd say, for uniformity, the title "Table of Contents" to be 
styled just as a chapter title. At least, in my book. But it is indented 
just as normal text.

This is a synthetic example. As you can see, the title "Preface" starts 
from the first column and the title "Table of Contents" starts two columns 
to the right. This is similar to my pdf output.


This is the table of contents page.

|  Table of Contents
|
|  License and Warranty
|  Preface
|    1. Conventions used in this book
|      1.1. Typographical conventions
|      1.2. Admonitions
|    2. The book structure
|    3. Request for Comments


And this is the preface page.

|Preface
|
|  This User's Guide is intended to ...

Looking inside the fo file, the ToC title is styled this way (simplified)

<fo:block margin-left="0pt" text-align="left">Table of Contents</fo:block>

...while the preface title is this way:

<fo:block margin-left="0pt" text-align="left">
   <fo:block keep-with-next.within-column="always" text-align="left"
             start-indent="0pt">Preface</fo:block>
</fo:block>

The key is the 'start-indent="0pt"' attribute, which is missing in the ToC 
title fo:block.

As I have said before, I don't know if this is the normal behavior. In my 
book, the ToC title is styled like a chapter, excepting this start-indent 
and this is why...

PostScriptum. After writing this message, I have realized the 
start-indent="0pt" attribute was present, by default, in the 
titlepage.templates.xml. It seems that, long time ago, I have removed it 
without noting the difference. I have added it back now and... surprise: 
the bug has just disappeared. That's all. ;)


> Regarding the glossary, by default the body.start.indent is not applied 
> to page sequences that use the 'back' page-master, except for appendix 
> elements.  You can customize the template named 'set.flow.properties' as 
> described here:
>
> http://www.sagehill.net/docbookxsl/PrintOutput.html#IndentingBodyText
>

Yes, this was the solution. Thanks.

-- 
Costin STROIE
Linux Technical Writer
-------------------------------
SOFTWIN
Data Security Division
-------------------------------
e-mail: cstroie@bitdefender.com
tel: (+402) 1 233 07 80
fax: (+402) 1 233 07 63
gsm: (+40) 722 46 23 79
Bucharest, ROMANIA
-------------------------------
http://www.softwin.ro
http://www.bitdefender.com
-------------------------------
secure your every bit
-------------------------------


-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/



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