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 problem: Setting start indent for List of Figures?


The indent is the $body.start.indent that is being applied to the 
page-sequence for each list of titles.  The template that does that is 
named 'set.flow.properties' in fo/pagesetup.xsl, which you can customize. 
Here is the original:

<xsl:template name="set.flow.properties">
  <xsl:param name="element" select="local-name(.)"/>
  <xsl:param name="master-reference" select="''"/>

  <!-- This template is called after each <fo:flow> starts. -->
  <!-- Customize this template to set attributes on fo:flow -->

  <xsl:choose>
    <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
      <!-- body.start.indent does not work well with these processors -->
    </xsl:when>
    <xsl:when test="starts-with($master-reference, 'body') or
                    starts-with($master-reference, 'lot') or
                    starts-with($master-reference, 'front') or
                    $element = 'preface' or
                    (starts-with($master-reference, 'back') and
                    $element = 'appendix')">
      <xsl:attribute name="start-indent">
        <xsl:value-of select="$body.start.indent"/>
      </xsl:attribute>
      <xsl:attribute name="end-indent">
        <xsl:value-of select="$body.end.indent"/>
      </xsl:attribute>
    </xsl:when>
  </xsl:choose>

 If you remove this line:

          starts-with($master-reference, 'lot') or

then the page sequences for lists of titles (lot) won't have the 
body.start.indent.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Schramm, Martin" <MSchramm@harmanbecker.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, October 09, 2006 3:52 AM
Subject: [docbook-apps] FO problem: Setting start indent for List of 
Figures?


> Hi,
> I've got a problem to set my list of figures correctly into my page 
> layout. For this I want to ask you for some support.
>
> I have written an XSL customization, which indents the main text (Body 
> text: paras, mediaobjects etc.) 42.25mm to the right. The Headlines 
> (titles of sections etc.) are not indented.
> So in my customization I have altered the body.start.indent parameter 
> like this:
>   <xsl:param name="body.start.indent">42.25mm</xsl:param>
>
> I want the Table of Content to start directly after the left margin of 
> the page (=not indented), therefore I have altered the 
> toc.margin.properties parameter like this:
>
>   <xsl:attribute-set name="toc.margin.properties">
>   <xsl:attribute name="start-indent">0mm</xsl:attribute>
>   </xsl:attribute-set>
>
> My list of figures is indented with all the oter body text, but I would 
> like see it not indented, so it would be placed into the page like the 
> Table of Contents. Roughly it should look like the following arrangement:
>
>
>   List of Tables
>
>   List of Figures
>
>   Headline
>             Body text
>             Body text
>             Body text
>             Body text
>             Mediaobject
>   Headline
>             Body text
>             Mediaobject
>             ...
>
>
> I just cannot find the parameters to set the list of figures to the left 
> page margin and I would be thankful, if you could help me.
> Thanks a lot!
>
> Martin
>
> P.S.: We are using XSLTPROC as XSL Engine and Antenna House as Formatter.
>
>
>
> ----
> Harman/Becker Automotive Systems (Becker Division) GmbH
> Becker-Göring-Straße 16 D-76307 Karlsbad - Germany
>
> Martin Schramm
>
> ES-P Quality & Tools, Technical Documentation
>
> Fon:  +49(0) 7248-71 1155
> Mail:  MSchramm@harmanbecker.com <mailto:MSchramm@harmanbecker.com>
>


*******************************************
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-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






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