Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save urschrei/470140 to your computer and use it in GitHub Desktop.
Save urschrei/470140 to your computer and use it in GitHub Desktop.
\glossaries modifications for xhtml2latex.xslt
<!-- 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>
@urschrei
Copy link
Author

urschrei commented Jul 9, 2010

l. 1 above refers to ~ l. 544 in the original

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment