← Prev in month ← Prev in thread

Formal titles as a float

From
Skopik Pavel <>
Date
2006-12-04T09:22:44+00:00
ID
Thread
Formal titles as a float
Hello,

 

I have been trying to format formal titles (for itemizedlist,
orderedlist and task) as a float so that it is easier for a user to scan the
text. I would like the float to be on the left side.

 

I used Bob Stayton’s example
for floating admonitions as a starting point and changed the template to task…
The float gets generated, however, the problem is that the title is generated twice
– once as a side float on the left and second as if no float was used. The
only thing I am not able to solve now is to turn off generating the title above
task, itemizedlist etc.

 

Here is what I have done so far in my customization layer.
I call the template „formal.object.heading“ and I tried to apply templates
with „title markup mode“ as well but I still get the same result.

 

 

<xsl:param name="body.start.indent">2cm</xsl:param>

<xsl:param name="xep.extensions" select="'1'"></xsl:param>

 

<xsl:template match="task | itemizedlist | orderedlist">

        <xsl:call-template
name="floater"> 

           
<xsl:with-param name="position">left</xsl:with-param>

           
<xsl:with-param name="width">0.7in</xsl:with-param>

           
<xsl:with-param name="start.indent">0in</xsl:with-param>

           
<xsl:with-param name="content">

               
<fo:block margin-top="1em" text-align="left"

                   
padding="3pt">

                   
<xsl:call-template name="formal.object.heading"></xsl:call-template>

               
</fo:block>

           
</xsl:with-param>

        </xsl:call-template>

        <xsl:apply-imports/>

    </xsl:template>

 

 

Could anyone provide me with a few tips what I am doing wrong?
Thank you very much. 

 

Greetings

 

pavel
← Prev in month ← Prev in thread