Created
July 9, 2010 22:05
-
-
Save urschrei/470140 to your computer and use it in GitHub Desktop.
\glossaries modifications for xhtml2latex.xslt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- anchors --> | |
<xsl:template match="html:a[@href]"> | |
<xsl:param name="footnoteId"/> | |
<xsl:choose> | |
<!-- footnote (my addition)--> | |
<xsl:when test="@class = 'footnote'"> | |
<xsl:text>\footnote{</xsl:text> | |
<xsl:apply-templates select="/html:html/html:body/html:div[@class]/html:ol/html:li[@id]" mode="footnote"> | |
<xsl:with-param name="footnoteId" select="@href"/> | |
</xsl:apply-templates> | |
<xsl:text>}</xsl:text> | |
</xsl:when> | |
<xsl:when test="@class = 'footnote glossary'"> | |
<xsl:text>\newglossaryentry</xsl:text> | |
<xsl:apply-templates select="/html:html/html:body/html:div[@class]/html:ol/html:li[@id]" mode="glossary"> | |
<xsl:with-param name="footnoteId" select="@href"/> | |
</xsl:apply-templates> | |
<xsl:text></xsl:text> | |
</xsl:when> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
l. 1 above refers to ~ l. 544 in the original