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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: [docbook] Indented title second line


Hi Yvonne,

I've not tried this in isolation from my other changes, so I can't  
guarantee that this will work as it stands, but here's what I did:

Firstly, I modified the "section.heading" rule in fo/sections.xsl so  
that inside each <when> clause of the <choose> block, it did something  
like this:

       <xsl:when test="$level=1">
         <fo:block xsl:use-attribute- 
sets="section.title.level1.properties">
           <xsl:call-template name="transitive.section.table">
             <xsl:with-param name="title" select="$title"/>
             <xsl:with-param name="section_number"  
select="$section_number"/>
           </xsl:call-template>
         </fo:block>
       </xsl:when>

I then implemented transitive.section.table in my customisation layer  
like this:

<xsl:template name="transitive.section.table">
   <xsl:param name="title"/>
   <xsl:param name="section_number"/>

   <fo:table-and-caption>
     <fo:table>
       <fo:table-column column-width="{$body.start.indent}"/>
       <fo:table-column/>

       <fo:table-body>
         <fo:table-row>
           <fo:table-cell>
             <fo:block><xsl:value-of select="$section_number"/></ 
fo:block>
           </fo:table-cell>
           <fo:table-cell>
             <fo:block><xsl:value-of select="$title"/></fo:block>
           </fo:table-cell>
         </fo:table-row>
       </fo:table-body>

     </fo:table>
   </fo:table-and-caption>

</xsl:template>

I think that the resulting effect is as you would want - it also has  
the advantage of ensuring the the text of the heading is always  
aligned to the body indent, which looks quite nice.

I think that the same effect could have been achieved using side  
floats rather than tables, which might be cleaner.

Thanks,

Geraint North
Principal Engineer
Transitive
* The leader in cross-platform virtualization

This E-mail and any attachments hereto are strictly confidential and  
intended solely for the addressee. If you are not the intended  
addressee please notify the sender by return and delete the message.  
You must not disclose, forward or copy this E-mail or attachments to  
any third party without the prior consent of the sender.

On 18 Dec 2007, at 10:38, Roth, Yvonne wrote:

> Hello Scott,
>
> I have a problem. In my documentation the titles often are longer than
> one line. But because of the numbering the first line is indented.
> Unfortunately the second line is not. Can you give me a hint how to
> intend also the second line with the same gap as the first one?
>
> Thanks in advance
> Yvonne
>
> *******************************************
> Harman Becker Automotive Systems GmbH
> Geschaeftsfuehrung:  Dr. Peter Geiselhart  -  Michael Mauser  -   
> Edwin Summers  -  Regis Baudot
> Sitz der Gesellschaft: Karlsbad - Registergericht: Mannheim HRB 361395
>
> *******************************************
> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte  
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese  
> E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den  
> Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie  
> die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged information.  
> If you are not the intended recipient (or have received this e-mail  
> in error) please notify the sender immediately and delete this e- 
> mail. Any unauthorized copying, disclosure or distribution of the  
> contents in this e-mail is strictly forbidden.
> *******************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>



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