• Added generate-latex-toc attribute to document element to support generating tables of contents in (Xe)LaTeX (closes #3).
1 parent 1016329 commit c95e61c1907a165f27fbe0f19e23e547647fdabb
Nigel Stanger authored on 16 Feb 2016
Showing 1 changed file
View
8
xml2xslt.xsl
<xsl-out:text>
\maketitle
</xsl-out:text>
</xsl-out:if>
<!--
Note that the generate-latex-toc attribute doesn't override anything that the document class does. If the document class generates a table of contents anyway, the value of the attribute is irrelevant.
-->
<xsl-out:if test="@generate-latex-toc = 'yes'">
<xsl-out:text>
\tableofcontents
</xsl-out:text>
</xsl-out:if>
<xsl-out:text>
 
</xsl-out:text>