- Removed redundant latex-documentclass template.
1 parent d42b836 commit 66dd50c2cbc026e094b33ab96509a2c3fbdafef9
nstanger authored on 18 Jun 2012
Showing 1 changed file
View
28
modules/latex.xml
Hmm, this may be more complex than I thought... External environment files sort of stuff it up. Perhaps LaTeX document class stuff should be in attributes of the document element?
-->
<template name="latex-documentclass" match="latex-documentclass|documentclass">
<common formats="/latex/xelatex/">
<xsl:text>\documentclass[</xsl:text>
<xsl:value-of select="@options" />
<xsl:text>]{</xsl:text>
<xsl:text>\documentclass</xsl:text>
<xsl:if test="@options">
<xsl:text>[</xsl:text>
<xsl:value-of select="@options" />
</xsl:text>]</xsl:text>
</xsl:if>
<xsl:text>{</xsl:text>
<xsl:value-of select="." />
<xsl:text>}</xsl:text>
<xsl:call-template name="newline-internal" />
</common>
</template>
<!-- Durr, this is identical to the previous one??? -->
<template name="latex-documentclass-options" match="latex-documentclass[@options]|documentclass[@options]">
<common formats="/latex/xelatex/">
<xsl:text>\documentclass[</xsl:text>
<xsl:value-of select="@options" />
<xsl:text>]{</xsl:text>
<xsl:value-of select="." />
<xsl:text>}</xsl:text>
<xsl:call-template name="newline-internal" />
</common>
</template>
<!--
Specify additional LaTeX document class options (i.e., in addition to the defaults). These should be a comma-separated list of the required options. These will be appended to the standard defaults (a4paper, 12pt).
Specify /additional/ LaTeX document class options (i.e., in addition to the defaults). These should be a comma-separated list of the required options. These will be appended to the standard defaults (a4paper, 12pt).
-->
<template name="latex-document-options" match="latex-document-options">
<common formats="/latex/xelatex/">
<xsl:apply-templates />