Next in thread →
Next in month →
Re: [docbook] Hanging indent for biblioentries
Thanks. This turned out relatively simple. I replaced the following code:
<fo:block id="{$id}" xsl:use-attribute-sets="biblioentry.properties">
<xsl:copy-of select="$label"/>
<xsl:choose>
<xsl:when test="$bibliography.style = 'iso690'">
<xsl:call-template name="iso690.makecitation"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="bibliography.mode"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
With this:
<fo:list-block provisional-distance-between-starts="{$body.start.indent}"
provisional-label-separation="2mm"
space-before.maximum="0.6em"
space-before.minimum="0.4em"
space-before.optimum="0.5em" start-indent="0mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()" text-align="end">
<fo:block>
<xsl:call-template name="biblioentry.label" />
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()" text-align="start">
<fo:block>
<xsl:apply-templates mode="bibliography.mode" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
MT
--
On Sat, Oct 22, 2011 at 10:47 PM, Bob Stayton <> wrote:
[Moving this over to the docbook-apps mailing list
where stylesheet issues are discussed]
I'm not sure what you mean by simple here.
This requires customizing a template. The template with
match="biblioentry" is in fo/biblio.xsl. If you copy that to your
customization file, you can edit it to apply the method described in that
section. You put the label in the fo:list-item-label block and then
apply-templates in mode="bibliography.mode" in the fo:list-item-body
block.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
From:
Marcel Tromp
To:
Sent: Saturday, October 22, 2011 5:59
PM
Subject: [docbook] Hanging indent for
biblioentries
Hi,
I am trying to customize biblioentry stylesheet. I would like to treat
them similar to my section headings with a hanging indent for the label
(similar to http://www.sagehill.net/docbookxsl/SideBySide.html).
Is there a simple way to do this?
Thanks,
MT
--
Next in thread →
Next in month →