PDF: Quote titles in xrefs to chapters instead of italicizing them.

This commit is contained in:
dcramer
2012-10-27 10:00:28 -05:00
parent 35ad8bd550
commit c143e0035d
2 changed files with 22 additions and 1 deletions

View File

@@ -940,4 +940,22 @@
</fo:block-container>
</xsl:template>
<xsl:template match="d:chapter|d:appendix" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<xsl:when test="$purpose = 'xref'">
<!-- <fo:inline font-style="italic"> -->
<xsl:copy-of select="$title"/>
<!-- </fo:inline> -->
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

View File

@@ -8,7 +8,10 @@
<l:gentext key="abstract" text=""/>
<l:context name="title-numbered">
<l:template name="chapter" text="%n. %t"/>
<l:template name="chapter" text='%n. %t'/>
</l:context>
<l:context name="xref-number-and-title">
<l:template name="chapter" text='Chapter %n, “%t”'/>
</l:context>
</l:l10n>
</l:i18n>