diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl')
-rw-r--r-- | Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl new file mode 100644 index 00000000000..f3065dcce9b --- /dev/null +++ b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/=====================================================================\ +| LaTeXML-picture-image.xsl | +| Converting pictures to images for html | +|=====================================================================| +| Part of LaTeXML: | +| Public domain software, produced as part of work done by the | +| United States Government & not subject to copyright in the US. | +|=====================================================================| +| Bruce Miller <bruce.miller@nist.gov> #_# | +| http://dlmf.nist.gov/LaTeXML/ (o o) | +\=========================================================ooo==U==ooo=/ +--> +<xsl:stylesheet + version = "1.0" + xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" + xmlns:ltx = "http://dlmf.nist.gov/LaTeXML" + xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions" + extension-element-prefixes="f" + exclude-result-prefixes="ltx f"> + + <xsl:template match="ltx:picture"/> + <xsl:template match="ltx:picture[@imagesrc]"> + <img src="{@imagesrc}" width="{@imagewidth}" height="{@imageheight}" + alt="{@tex}" class="{f:classes(.)}"> + <xsl:call-template name="add_id"/> + <xsl:if test="@imagedepth"> + <xsl:attribute name='style'> + <xsl:value-of select="concat('vertical-align:-',@imagedepth,'px;')"/> + </xsl:attribute> + </xsl:if> + </img> + </xsl:template> + +</xsl:stylesheet> |