PDF: Quote titles in xrefs to chapters instead of italicizing them.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user