Fixed bug that stripped embedded markup in the LaTeX subtitle.
1 parent 52eb58b commit 40e2e1ac0cc466da69de407f3fc9d2c47ed7110c
Nigel Stanger authored on 13 Aug 2013
Showing 1 changed file
View
14
modules/titling.xml
Process the subtitle, if any. If there is no author specified, then we can appropriate the \author, otherwise, append it to the main title.
-->
<xsl:if test="/document/subtitle and /document/author">
<xsl:text>\\[0.25\baselineskip] \large </xsl:text>
<xsl:value-of select="/document/subtitle" />
<xsl:apply-templates select="/document/subtitle" mode="title" />
</xsl:if>
<xsl:text>}</xsl:text>
<xsl:if test="/document/subtitle and not( /document/author )">
<xsl:text>\author{</xsl:text>
<xsl:value-of select="/document/subtitle" />
<xsl:apply-templates select="/document/subtitle" mode="title" />
<xsl:text>}</xsl:text>
</xsl:if>
</common>
<!--
</common>
</template>
<!--
Document subtitle. This template exists only to catch any embdedded markup within the subtitle.
Document subtitle. This template exists only to catch any embdedded markup within the subtitle. Note that this is also used by the LaTeX preamble above.
-->
<template name="document-subtitle-title" match="document/subtitle" mode="title">
<common formats="/html/xhtml/">
<xsl:apply-templates />
</common>
</template>
<common>
<xsl:apply-templates />
</common>
</template>
<!--
This template exists only to trap the general apply-templates and prevent the subtitle being output twice. The actual processing of this element is done in the document-title template above.
-->