[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: customize admonitions
Hi, How can I manage to customize the start indent of the
used (nongraphical) admonitions depending on their position within the text?
There are admonitions in sections (different levels) and in itemized lists
(also different levels), which all have varying start-indents. I want to fit
the notes etc. to the specific indent. At present I’m using a customized
admon.xsl with following code: <xsl:template
name="nongraphical.admonition">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="child::*[1]/self::para">
<fo:block space-before.minimum="0.6em"
space-before.optimum="0.8em"
space-before.maximum="1.0em"
start-indent="0.25in"
end-indent="0.25in"
border-top="0.5pt solid black"
border-bottom="0.5pt solid black"
padding-top="4pt"
padding-bottom="4pt"
id="{$id}"
xsl:use-attribute-sets="nongraphical.admonition.properties">
<fo:block>
<fo:inline font-size = "10pt"
font-weight = "bold"
font-family = "sans-serif"
hyphenate = "false"
keep-with-next.within-line='always'
xsl:use-attribute-sets="admonition.title.properties">
<xsl:apply-templates select="."
mode="object.title.markup"/>
<xsl:text>: </xsl:text>
</fo:inline>
<xsl:apply-templates select="para[1]/node()"/>
</fo:block>
<xsl:apply-templates select="*[not(self::para[1])]"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<xsl:apply-imports/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> Thanks for help! Isabel Hofherr |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]