summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/xsl/LaTeXML
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/xsl/LaTeXML')
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-bib-xhtml.xsl54
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-block-xhtml.xsl470
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-common.xsl121
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html.xsl53
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html5.xsl52
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-inline-xhtml.xsl120
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-image.xsl36
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml-html5.xsl36
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml.xsl46
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-html5.xsl96
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-xhtml.xsl97
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl36
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg-html5.xsl33
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg.xsl35
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-html5.xsl151
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-xhtml.xsl261
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-tabular-xhtml.xsl89
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-html5.xsl248
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-xhtml.xsl249
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-xhtml.xsl60
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/amsart.css11
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/closedbib.css5
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/core.css157
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/marginpar.css11
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-left.css9
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-right.css7
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/LaTeXML/theme-blue.css15
27 files changed, 0 insertions, 2558 deletions
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-bib-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-bib-xhtml.xsl
deleted file mode 100644
index 82252d877af..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-bib-xhtml.xsl
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-bib-xhtml.xsl |
-| Converting documents structure to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="f"
- exclude-result-prefixes = "ltx f">
-
- <!-- ======================================================================
- Bibliography (AFTER conversion to presentation; ie only bibitem's)
- ====================================================================== -->
-
- <!-- NOTE: bibentry (and all it's components) are converted by postprocessing. -->
-
- <xsl:template match="ltx:biblist" xml:space="preserve">
- <ul class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </ul>
- </xsl:template>
-
- <xsl:template match="ltx:bibitem" xml:space="preserve">
- <li class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </li>
- </xsl:template>
-
- <xsl:template match="ltx:bibitem/ltx:bibtag[@role='refnum']">
- <span class="{f:classes(.)}"><xsl:value-of select="@open"/><xsl:apply-templates/><xsl:value-of select="@close"/></span>
- </xsl:template>
-
- <xsl:template match="ltx:bibtag"/>
-
- <xsl:template match="ltx:bibblock" xml:space="preserve">
- <div class="bibblock"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-block-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-block-xhtml.xsl
deleted file mode 100644
index b4537d12637..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-block-xhtml.xsl
+++ /dev/null
@@ -1,470 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-block-xhtml.xsl |
-| Converting various block-level elements to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:func = "http://exslt.org/functions"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="func f"
- exclude-result-prefixes = "ltx func f">
-
- <!-- ======================================================================
- Various Blocks
- ====================================================================== -->
-
- <!-- no class here, since ltx:p it is generated behind the scenes (?)-->
- <xsl:template match="ltx:p" xml:space="preserve">
- <p style="{f:positioning(.)}" class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></p>
- </xsl:template>
-
- <xsl:template match="ltx:quote" xml:space="preserve">
- <blockquote class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </blockquote>
- </xsl:template>
-
- <xsl:template match="ltx:block" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:listingblock" xml:space="preserve">
- <div class="{concat('listing ',f:classes(.))}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:listingblock/ltx:tabular" xml:space="preserve">
- <table class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </table>
- </xsl:template>
-
- <xsl:template match="ltx:break">
- <br class="{f:classes(.)}"/>
- </xsl:template>
-
- <!-- Need to handle attributes! -->
- <xsl:template match="ltx:inline-block" xml:space="preserve">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:template>
-
- <!--<xsl:template match="ltx:verbatim" xml:space="preserve">-->
- <xsl:template match="ltx:verbatim">
- <xsl:choose>
- <xsl:when test="contains(text(),'&#xA;')">
- <pre class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}"
- style="{f:if(@color,concat('color:',@color),'')}"><xsl:call-template name="add_id"/><xsl:apply-templates/></pre>
- </xsl:when>
- <xsl:otherwise>
- <code class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}"
- style="{f:if(@color,concat('color:',@color),'')}"><xsl:call-template name="add_id"/><xsl:apply-templates/></code>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <!-- ======================================================================
- Equation structures
- ====================================================================== -->
-
- <!-- Equation formatting parameters.
- [how should these be controlled? cmdline? processing-instructions?]
-
- The alignment capability blurs the line between the HTML structure & CSS.
- Some things are getting hardcoded that really should be in CSS.
- -->
-
- <!-- Should alignments like eqnarray, align, be respected, or more semantically presented?-->
- <xsl:param name="aligned_equations" select="true()"/>
-
- <xsl:param name="classPI">
- <xsl:value-of select="//processing-instruction()[local-name()='latexml'][contains(.,'class')]"/>
- </xsl:param>
- <!-- Equation numbers on left, or default right? -->
- <xsl:param name="eqnopos"
- select="f:if(//processing-instruction('latexml')[contains(substring-after(.,'options'),'leqno')],'left','right')"/>
-
- <!-- Displayed equations centered, or indented on left? -->
- <xsl:param name="eqpos"
- select="f:if(//processing-instruction('latexml')[contains(substring-after(.,'options'),'fleqn')],'left','center')"/>
-
-
- <xsl:template match="ltx:equation/@refnum | ltx:equationgroup/@refnum"
- >(<span class='refnum'><xsl:value-of select="."/></span>)</xsl:template>
-
- <!-- ======================================================================
- Basic templates, dispatching on aligned or unaligned forms-->
-
- <xsl:template match="ltx:equationgroup">
- <xsl:choose>
- <xsl:when test="$aligned_equations">
- <xsl:call-template name="equationgroup-aligned"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="equationgroup-unaligned"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="ltx:equation">
- <xsl:choose>
- <xsl:when test="$aligned_equations">
- <xsl:call-template name="equation-aligned"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="equation-unaligned"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!-- ======================================================================
- Unaligned templates -->
-
- <xsl:template name="equationgroup-unaligned" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/>
- <xsl:if test="@refnum and $eqnopos='left'"><xsl:apply-templates select="@refnum"/></xsl:if>
- <xsl:apply-templates select="ltx:equationgroup | ltx:equation | ltx:p"/>
- <xsl:if test="@refnum and $eqnopos='right'"><xsl:apply-templates select="@refnum"/></xsl:if>
- <xsl:apply-templates select="ltx:constraint[not(@hidden='true')]"/>
- </div>
- <xsl:apply-templates select="ltx:metadata" mode="meta"/>
- </xsl:template>
-
- <xsl:template name="equation-unaligned" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/>
- <xsl:if test="@refnum and $eqnopos='left'"><xsl:apply-templates select="@refnum"/></xsl:if>
- <span class='equationcontent'
- ><xsl:apply-templates select="ltx:Math | ltx:MathFork | ltx:text"/></span>
- <xsl:if test="@refnum and $eqnopos='right'"><xsl:apply-templates select="@refnum"/></xsl:if>
- <xsl:apply-templates select="ltx:constraint[not(@hidden='true')]"/>
- </div>
- <xsl:apply-templates select="ltx:metadata" mode="meta"/>
- </xsl:template>
-
-
- <xsl:template name="equation-meta-unaligned">
- <xsl:apply-templates select="ltx:constraint[not(@hidden='true')]"/>
- <xsl:apply-templates select="ltx:metadata" mode="meta"/>
- </xsl:template>
-
- <!-- by default (not inside an aligned equationgroup) -->
- <xsl:template match="ltx:MathFork">
- <xsl:apply-templates select="ltx:Math[1]"/>
- </xsl:template>
-
- <!-- ======================================================================
- Aligned templates -->
-
- <func:function name="f:countcolumns">
- <xsl:param name="equation"/>
- <func:result><xsl:value-of select="count(ltx:MathFork/ltx:MathBranch[1]/ltx:tr[1]/ltx:td
- | ltx:MathFork/ltx:MathBranch[1]/ltx:td
- | ltx:MathFork/ltx:MathBranch[1][not(ltx:tr or ltx:td)]
- | ltx:Math)"/></func:result>
- </func:function>
-
- <func:function name="f:maxcolumns">
- <xsl:param name="equations"/>
- <xsl:for-each select="$equations">
- <xsl:sort select="f:countcolumns(.)" data-type="number" order="descending"/>
- <xsl:if test="position()=1">
- <func:result><xsl:value-of select="f:countcolumns(.)"/></func:result>
- </xsl:if>
- </xsl:for-each>
- </func:function>
-
- <xsl:template name="equationgroup-aligned">
- <!-- Hopefully the 1st equation row will sufficiently represent the pattern.
- Really should be some complex of max's of sum's of... -->
-<!--
- <xsl:param name="columns"
- select=" ltx:equation[1]/ltx:MathFork/ltx:MathBranch[1]/ltx:tr[1]/ltx:td
- | ltx:equation[1]/ltx:MathFork/ltx:MathBranch[1]/ltx:td
- | ltx:equation[1]/ltx:MathFork/ltx:MathBranch[1][not(ltx:tr or ltx:td)]
- | ltx:equation[1]/ltx:Math "/>
- <xsl:param name="ncolumns" select="count($columns)"/>
--->
-<!-- <xsl:param name="ncolumns" select="f:countcolumns(ltx:equation[1])"/>-->
- <xsl:param name="ncolumns" select="f:maxcolumns(ltx:equation | ltx:equationgroup/ltx:equation)"/>
- <table class='{f:classes(.)}'>
- <!--<xsl:call-template name="add_id"/>-->
- <xsl:text>
- </xsl:text>
- <xsl:apply-templates select="." mode="aligned">
- <xsl:with-param name="ncolumns" select="$ncolumns"/>
- </xsl:apply-templates>
- <xsl:text>
- </xsl:text>
- </table>
- </xsl:template>
-
- <!-- Can an equation NOT inside equationgroup meaningfully have embedded MathForks with tr/td ??
- Having only td's wouldn't actually do anything useful, if a single row is implied.
- Having several tr's is possible, though nothing currently constructs such a thing.
- Can we divide up contained Math's, etc, into something useful?...
-
-Currently we assume the content will be placed in a single tr/td. -->
- <xsl:template name="equation-aligned">
- <xsl:param name="ncolumns" select="f:countcolumns(.)"/>
- <table class='{f:classes(.)}'>
- <!--<xsl:call-template name="add_id"/>-->
- <xsl:text>
- </xsl:text>
- <xsl:apply-templates select="." mode="aligned">
- <xsl:with-param name="ncolumns" select="$ncolumns"/>
- </xsl:apply-templates>
- <xsl:text>
- </xsl:text>
- </table>
- </xsl:template>
-
- <!-- ======================================================================
- Generate the padding column (td) for a (potentially) numbered row
- in an aligned equationgroup|equation.
- May contain refnum for eqation or containing equationgroup.
- And, may be omitted entirely, if not 1st row of a numbered equationgroup,
- since that column has a rowspan for the entire table.
- -->
- <xsl:template name="eqnumtd">
- <xsl:param name="side"/> <!-- left or right -->
- <xsl:choose>
- <xsl:when test="$eqnopos != $side"/> <!-- Wrong side: Nothing -->
- <xsl:when test="ancestor-or-self::ltx:equationgroup[position()=1][@refnum]"> <!-- eqn.group is numbered! -->
- <!-- place number only for 1st row -->
- <xsl:if test="(ancestor-or-self::ltx:tr and not(preceding-sibling::ltx:tr))
- or (not(ancestor-or-self::ltx:tr) and not(preceding-sibling::ltx:equation))">
- <xsl:variable name="nrows"
- select="count(
-ancestor-or-self::ltx:equationgroup[position()=1][@refnum]/descendant::ltx:equation/ltx:MathFork/ltx:MathBranch[1]/ltx:tr
-| ancestor-or-self::ltx:equationgroup[position()=1][@refnum]/descendant::ltx:equation[ltx:MathFork/ltx:MathBranch[1]/ltx:td]
-| ancestor-or-self::ltx:equationgroup[position()=1][@refnum]/descendant::ltx:equation[ltx:Math or ltx:MathFork/ltx:MathBranch[not(ltx:tr or ltx:td)]]
-| ancestor-or-self::ltx:equationgroup[position()=1][@refnum]/descendant::ltx:equation[ltx:constraint or ltx:metadata]
- )"/>
- <td rowspan="{$nrows}" class="{concat('middle ',$side)}">
- <xsl:apply-templates select="ancestor-or-self::ltx:equationgroup[position()=1]/@refnum"/>
- </td>
- </xsl:if> <!--Else NOTHING (rowspan'd!) -->
- </xsl:when>
- <xsl:when test="ancestor-or-self::ltx:equation[position()=1][@refnum]"> <!-- equation is numbered! -->
- <!-- place number only for 1st row -->
- <xsl:if test="(ancestor-or-self::ltx:tr and not(preceding-sibling::ltx:tr))
- or not(ancestor-or-self::ltx:tr)">
- <xsl:variable name="nrows"
- select="count(
- ancestor-or-self::ltx:equation[position()=1][@refnum]
- /ltx:MathFork/ltx:MathBranch[1]/ltx:tr
- | ancestor-or-self::ltx:equation[position()=1][@refnum]
- [ltx:MathFork/ltx:MathBranch[1]/ltx:td]
- | ancestor-or-self::ltx:equation[position()=1][@refnum]
- [ltx:Math or ltx:MathFork/ltx:MathBranch[not(ltx:tr or ltx:td)]]
- | ancestor-or-self::ltx:equation[position()=1][@refnum][ltx:constraint or ltx:metadata]
- )"/>
- <td rowspan="{$nrows}" class="{concat('middle ',$side)}">
- <xsl:apply-templates select="ancestor-or-self::ltx:equation[position()=1]/@refnum"/>
- </td>
- </xsl:if> <!--Else NOTHING (rowspan'd!) -->
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="eq-left">
- <xsl:call-template name="eqnumtd"> <!--Place left number, if any-->
- <xsl:with-param name='side' select="'left'"/>
- </xsl:call-template>
- <xsl:if test="$eqpos != 'left'"><td class="eqpad"/></xsl:if><!-- column for centering -->
- </xsl:template>
-
- <xsl:template name="eq-right">
- <xsl:if test="$eqpos != 'right'"><td class="eqpad"/></xsl:if> <!-- Column for centering-->
- <xsl:call-template name="eqnumtd">
- <xsl:with-param name='side' select="'right'"/>
- </xsl:call-template>
- </xsl:template>
-
- <!-- ======================================================================
- Synthesizing rows & columns out for aligned equations and equationgroups
- -->
-
- <!-- for intertext type entries -->
- <xsl:template match="ltx:p" mode="aligned" xml:space="preserve">
- <xsl:param name="ncolumns"/>
- <tr class="baseline">
- <td class="left"
- colspan="{1+$ncolumns+f:if($eqpos!='left',1,0)+f:if($eqpos!='right',1,0)}"
- style="white-space:normal;"
- ><xsl:apply-templates/></td>
- </tr>
- </xsl:template>
-
- <!-- Can this reasonably deal with NESTED equationgroups?
- Probably, assuming the previous counts of tr's and td's are done right.-->
- <xsl:template match="ltx:equationgroup" mode="aligned">
- <xsl:param name="ncolumns"/>
- <xsl:apply-templates select="ltx:equationgroup | ltx:equation | ltx:p" mode="aligned">
- <xsl:with-param name="ncolumns" select="$ncolumns"/>
- </xsl:apply-templates>
- <xsl:call-template name="equation-meta-aligned">
- <xsl:with-param name="ncolumns" select="$ncolumns"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="ltx:equation" mode="aligned">
- <xsl:param name="ncolumns"/>
- <xsl:choose>
- <xsl:when test="ltx:MathFork/ltx:MathBranch[1]/ltx:tr" xml:space="preserve">
- <tr class="{concat('baseline ',f:classes(.))}"><xsl:call-template name="add_id"/>
- <xsl:call-template name="eq-left"/>
- <xsl:apply-templates select="ltx:MathFork/ltx:MathBranch[1]/ltx:tr[1]/ltx:td"
- mode="aligned"/>
- <xsl:call-template name="eq-right"/>
- </tr>
- <xsl:for-each select="ltx:MathFork/ltx:MathBranch[1]/ltx:tr[position() &gt; 1]">
- <tr class="baseline">
- <xsl:call-template name="eq-left"/>
- <xsl:apply-templates select="ltx:td" mode="aligned"/>
- <xsl:call-template name="eq-right"/>
- </tr>
- </xsl:for-each>
- <!--</tbody>-->
- </xsl:when>
- <xsl:when test="ltx:MathFork/ltx:MathBranch[1]" xml:space="preserve">
- <tr class="{concat('baseline ',f:classes(.))}"><xsl:call-template name="add_id"/>
- <xsl:call-template name="eq-left"/>
- <xsl:apply-templates select="ltx:MathFork/ltx:MathBranch[1]/*"
- mode="aligned"/>
- <xsl:call-template name="eq-right"/>
- </tr>
- </xsl:when>
- <xsl:otherwise xml:space="preserve">
- <tr class="{concat('baseline ',f:classes(.))}"><xsl:call-template name="add_id"/>
- <xsl:call-template name="eq-left"/>
- <td class="{$eqpos}" colspan="{$ncolumns}"><xsl:apply-templates select="ltx:Math | ltx:text"/></td>
- <xsl:call-template name="eq-right"/>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:call-template name="equation-meta-aligned">
- <xsl:with-param name="ncolumns" select="$ncolumns"/>
- </xsl:call-template>
- </xsl:template>
-
- <!-- NOTE: This is pretty wacky. Maybe we should move the text inside the equation? -->
- <xsl:template match="ltx:td" mode="aligned">
- <td class="{concat(@align,' ',f:classes(.))}" colspan="{f:if(@colspan,@colspan,1)}">
- <xsl:apply-templates/><xsl:if test="(self::* = ../ltx:td[position()=last()])
- and (parent::* = ../../ltx:tr[position()=last()])
- and ancestor::ltx:MathFork/following-sibling::*[position()=1][self::ltx:text]"
- ><!-- if we're the last td in the last tr in an equation followed by a text,
- insert the text here!
- --><xsl:apply-templates select="ancestor::ltx:MathFork/following-sibling::ltx:text[1]/node()"
- /></xsl:if></td>
- </xsl:template>
-
- <xsl:template match="ltx:Math" mode="aligned">
- <td class="{concat('center ',f:classes(.))}">
- <xsl:apply-templates select="."/><xsl:if test="
- ancestor::ltx:MathFork/following-sibling::*[position()=1][self::ltx:text]"
- ><!-- if we're followed by a text, insert the text here!
- --><xsl:apply-templates select="ancestor::ltx:MathFork/following-sibling::ltx:text[1]/node()"
- /></xsl:if></td>
- </xsl:template>
-
- <xsl:template name="equation-meta-aligned">
- <xsl:param name="ncolumns"/>
- <xsl:if test="ltx:constraint[not(@hidden='true')] or ltx:metadata">
- <tr>
- <td class='right' colspan="{1+$ncolumns
- +f:if($eqpos != 'left',1,0)+f:if($eqpos != 'right',1,0)}">
- <xsl:apply-templates select="ltx:constraint[not(@hidden='true')]"/>
- <xsl:apply-templates select="ltx:metadata" mode="meta"/>
- </td>
- </tr>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="ltx:constraint">
- <span class="{f:classes(.)}"><xsl:apply-templates/></span>
- <span class="eqnend"/>
- </xsl:template>
-
- <xsl:template match="ltx:text" mode="inequationgroup"/>
-
- <!-- ======================================================================
- Various Lists
- ====================================================================== -->
-
- <xsl:template match="ltx:itemize" xml:space="preserve">
- <ul class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </ul>
- </xsl:template>
-
- <xsl:template match="ltx:enumerate" xml:space="preserve">
- <ol class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </ol>
- </xsl:template>
-
- <xsl:template match="ltx:description" xml:space="preserve">
- <dl class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates mode='description'/>
- </dl>
- </xsl:template>
-
- <xsl:template match="ltx:item">
- <xsl:choose>
- <xsl:when test="child::ltx:tag" xml:space="preserve">
- <li class="{concat(f:classes(.),' nobullet')}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </li>
- </xsl:when>
- <xsl:otherwise xml:space="preserve">
- <li class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </li>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="ltx:item" mode="description" xml:space="preserve">
- <dt class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates select="ltx:tag"/></dt>
- <dd class="{f:classes(.)}"><xsl:apply-templates select="*[local-name() != 'tag']"/></dd>
- </xsl:template>
-
- <xsl:template match="ltx:tag">
- <span class="{f:classes(.)}"><xsl:value-of select="@open"/><xsl:apply-templates/><xsl:value-of select="@close"/></span>
- </xsl:template>
-
- <!-- ======================================================================
- Graphics inclusions
- ====================================================================== -->
-
- <xsl:template match="ltx:graphics">
- <img src="{@imagesrc}" width="{@imagewidth}" height="{@imageheight}" class="{f:classes(.)}"
- alt="{f:if(../ltx:figure/ltx:caption,../ltx:figure/ltx:caption/text(),@description)}">
- <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> \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-common.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-common.xsl
deleted file mode 100644
index ecdf089623b..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-common.xsl
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| Common utility functions for stylesheet; for inclusion |
-|=====================================================================|
-| 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:string= "http://exslt.org/strings"
- xmlns:func = "http://exslt.org/functions"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="func f"
- exclude-result-prefixes = "ltx f func string">
-
- <!-- Copy ID info from latexml elements to generated element.
- Prefer the page-unique fragid attribute,
- but if none, and there's an xml:id, use that instead -->
- <xsl:template name="add_id">
- <xsl:choose>
- <xsl:when test="@fragid">
- <xsl:attribute name="id"><xsl:value-of select="@fragid"/></xsl:attribute>
- </xsl:when>
- <xsl:when test="@xml:id">
- <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
-<!-- Usage: <element class='{f:classes(.)}'>...
- Adds space separated classes based on the current element's
- local-name and class attribute (if any). -->
-<func:function name="f:classes">
- <xsl:param name="node"/>
- <xsl:choose>
- <xsl:when test="$node/@class">
- <func:result><xsl:value-of select="concat(local-name($node),' ',@class)"/></func:result>
- </xsl:when>
- <xsl:otherwise>
- <func:result><xsl:value-of select="local-name($node)"/></func:result>
- </xsl:otherwise>
- </xsl:choose>
-</func:function>
-
-<!-- Three-way if as function: f:if(test,iftrue,iffalse)
- Returns either the iftrue or iffalse branch, depending on test. -->
-<func:function name="f:if">
- <xsl:param name="test"/>
- <xsl:param name="iftrue"/>
- <xsl:param name="iffalse"/>
- <xsl:choose>
- <xsl:when test="$test"><func:result><xsl:value-of select="$iftrue"/></func:result></xsl:when>
- <xsl:otherwise><func:result><xsl:value-of select="$iffalse"/></func:result></xsl:otherwise>
- </xsl:choose>
-</func:function>
-
-<!-- Computes html/css styling attributes according to attributes on the current element,
- including Positioning.attributes, font, color, ?
- These should (ultimately) include from Positionable.attributes:
- width, height, depth,
- pad-width, pad-height,
- xoffset, yoffset,
- align, vattach
- And also
- font, color, size(?), framed
--->
-<func:function name="f:catatt">
- <xsl:param name="conj"/>
- <xsl:param name="val1"/>
- <xsl:param name="val2"/>
- <xsl:choose>
- <xsl:when test="not($val1 = '') and not($val2 = '')">
- <func:result><xsl:value-of select="concat($val1,$conj,$val2)"/></func:result>
- </xsl:when>
- <xsl:when test="not($val1 = '')">
- <func:result><xsl:value-of select="$val1"/></func:result>
- </xsl:when>
- <xsl:otherwise>
- <func:result><xsl:value-of select="$val2"/></func:result>
- </xsl:otherwise>
- </xsl:choose>
-</func:function>
-
-<!-- Note that width & height (& padding versions)
- will be ignored in most cases... silly CSS.
- Not yet done:
- depth
- align, vattach
- size
- framed=circle
- -->
-<func:function name="f:positioning">
- <xsl:param name="node"/>
- <func:result>
- <xsl:value-of
- select="concat(f:if($node/@float, concat('float:',$node/@float,'; '),''),
- f:if($node/@width, concat('width:',$node/@width,'; '),''),
- f:if($node/@height, concat('height:',$node/@height,'; '),''),
- f:if($node/@pad-width, concat('height:',$node/@pad-width,'; '),''),
- f:if($node/@pad-height,concat('height:',$node/@pad-height,'; '),''),
- f:if($node/@xoffset, concat('position:relative; left:',$node/@xoffset,'; '),''),
- f:if($node/@yoffset, concat('position:relative; bottom:',$node/@yoffset,'; '),''),
- f:if($node/@color, concat('color:',$node/@color,'; '),''),
- f:if($node/@framed = 'rectangle','border:1px solid black; ',''),
- f:if($node/@framed = 'underline','text-decoration:underline; ',''),
- f:if($node/@align, concat('text-align:',$node/@align,';'),''),
- f:if($node/@vattach, concat('vertical-align:',$node/@vattach,';'),'')
- )"/>
- </func:result>
-</func:function>
-
-</xsl:stylesheet>
-
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html.xsl
deleted file mode 100644
index 37ea6a6fce6..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html.xsl
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-html.xsl |
-| Stylesheet for converting LaTeXML documents to 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"
- exclude-result-prefixes="ltx">
-
- <xsl:output
- method = "html"
- omit-xml-declaration = 'yes'
- doctype-public = "-//W3C//DTD HTML 4.01//EN"
- doctype-system = "http://www.w3.org/TR/html4/strict.dtd"
- media-type = 'text/html'
- encoding = 'utf-8'
- indent = 'yes'/>
-
- <xsl:template name="metatype">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </xsl:template>
-
- <xsl:template match="/">
- <html>
- <xsl:call-template name="head"/>
- <xsl:call-template name="body"/>
- </html>
- </xsl:template>
-
-<xsl:include href="LaTeXML-common.xsl"/>
-<xsl:include href="LaTeXML-inline-html.xsl"/>
-<xsl:include href="LaTeXML-block-html.xsl"/>
-<xsl:include href="LaTeXML-para-html.xsl"/>
-<xsl:include href="LaTeXML-math-image.xsl"/>
-<xsl:include href="LaTeXML-tabular-html.xsl"/>
-<xsl:include href="LaTeXML-picture-image.xsl"/>
-<xsl:include href="LaTeXML-structure-html.xsl"/>
-<xsl:include href="LaTeXML-bib-html.xsl"/>
-
-<xsl:include href="LaTeXML-webpage-html.xsl"/>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html5.xsl
deleted file mode 100644
index dcb4cac0c8e..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-html5.xsl
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-html5.xsl |
-| Stylesheet for converting LaTeXML documents to html5 |
-|=====================================================================|
-| 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"
- exclude-result-prefixes="ltx">
-
- <xsl:output
- method = "html"
- omit-xml-declaration="yes"
- encoding = 'utf-8'
- indent = 'yes'
- media-type = 'text/html'/>
-
- <xsl:template name="metatype">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </xsl:template>
-
- <xsl:template match="/">
- <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
- <html>
- <xsl:call-template name="head"/>
- <xsl:call-template name="body"/>
- </html>
- </xsl:template>
-
-<xsl:include href="LaTeXML-common.xsl"/>
-<xsl:include href="LaTeXML-inline-html.xsl"/>
-<xsl:include href="LaTeXML-block-html.xsl"/>
-<xsl:include href="LaTeXML-para-html5.xsl"/>
-<xsl:include href="LaTeXML-math-mathml-html5.xsl"/>
-<xsl:include href="LaTeXML-tabular-html.xsl"/>
-<xsl:include href="LaTeXML-picture-svg-html5.xsl"/>
-<xsl:include href="LaTeXML-structure-html5.xsl"/><!-- *** -->
-<xsl:include href="LaTeXML-bib-html.xsl"/>
-
-<xsl:include href="LaTeXML-webpage-html5.xsl"/>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-inline-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-inline-xhtml.xsl
deleted file mode 100644
index bbb7b5724d1..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-inline-xhtml.xsl
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-inline-xhtml.xsl |
-| Converting various inline-level elements to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:ltx = "http://dlmf.nist.gov/LaTeXML"
- xmlns:func = "http://exslt.org/functions"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- exclude-result-prefixes = "ltx func f">
-
-<!-- ======================================================================
- Visible inline elements
- ====================================================================== -->
-
-<xsl:template match="ltx:text">
- <span style="{f:positioning(.)}" class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </span>
-</xsl:template>
-
-<xsl:template match="ltx:emph">
- <em class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></em>
-</xsl:template>
-
-<xsl:template match="ltx:acronym">
- <acronym class='{f:classes(.)}' title="{@name}"><xsl:call-template name="add_id"/><xsl:apply-templates/></acronym>
-</xsl:template>
-
-
-<!-- This should either get some sort of style w/width,height & background,
- or, at most, only be an hr if it's wide & short -->
-<xsl:template match="ltx:rule">
- <span style="{concat(f:positioning(.),'background:black; ')}" class="{f:classes(.)}">&#xA0;</span>
-</xsl:template>
-
-<xsl:template match="ltx:ref">
- <xsl:choose>
- <xsl:when test="not(@href) or @href=''">
- <span class="{concat(f:classes(.),' here')}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:otherwise>
- <a href="{@href}" title="{@title}" class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></a>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<!-- can't nest-->
-<xsl:template match="ltx:ref//ltx:ref">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
-</xsl:template>
-
-<xsl:template match="ltx:anchor">
- <a name="{@xml:id}" class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></a>
-</xsl:template>
-
-<xsl:template match="ltx:cite">
- <cite class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></cite>
-</xsl:template>
-
-<!-- ltx:bibref not handled, since it is translated to ref in crossref module -->
-
-<!-- ======================================================================
- Typically invisible meta elements
- ====================================================================== -->
-
-<!-- normally hidden -->
-<xsl:template match="ltx:note">
- <span class="{concat(f:classes(.),' ',@role)}">
- <xsl:call-template name="add_id"/>
- <xsl:call-template name="note-mark"/>
- <span class="{concat(local-name(.),'_content_outer')}">
- <span class="{concat(local-name(.),'_content')}">
- <xsl:call-template name="note-mark"/>
- <xsl:if test="not(@role = 'footnote')">
- <span class="note-type"><xsl:value-of select="@role"/>: </span>
- </xsl:if>
- <xsl:apply-templates/>
- </span>
- </span>
- </span>
-</xsl:template>
-
-<xsl:template name="note-mark">
- <sup class="mark">
- <xsl:choose>
- <xsl:when test="@mark"><xsl:value-of select="@mark"/></xsl:when>
- <xsl:otherwise>&#x2020;</xsl:otherwise>
- </xsl:choose>
- </sup>
-</xsl:template>
-
-<xsl:template match="ltx:ERROR">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
-</xsl:template>
-
-<!-- invisible -->
-<xsl:template match="ltx:indexmark"/>
-
-<xsl:template match="ltx:indexphrase">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
-</xsl:template>
-
-</xsl:stylesheet>
-
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-image.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-image.xsl
deleted file mode 100644
index 519c4ffb5bb..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-image.xsl
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-math-image.xsl |
-| Convert math 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"
- exclude-result-prefixes="ltx">
-
- <!-- could dump a tex form or something? -->
- <xsl:template match="ltx:Math"/>
-
- <xsl:template match="ltx:Math[@imagesrc]">
- <img src="{@imagesrc}" width="{@imagewidth}" height="{@imageheight}"
- alt="{@tex}" class='math'>
- <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>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml-html5.xsl
deleted file mode 100644
index 5823af10df2..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml-html5.xsl
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-math-mathml-html5.xsl |
-| copy MathML w/o namespaces for html5 |
-|=====================================================================|
-| 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:m = "http://www.w3.org/1998/Math/MathML"
- exclude-result-prefixes = "ltx m">
-
- <xsl:template match="ltx:Math">
- <xsl:apply-templates select="m:math"/>
- </xsl:template>
-
- <!-- Copy MathML, as is -->
- <xsl:template match="*[namespace-uri() = 'http://www.w3.org/1998/Math/MathML']">
- <xsl:element name="{local-name()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml.xsl
deleted file mode 100644
index ca9954a3494..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-math-mathml.xsl
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-math-mathml.xsl |
-| copy MathML for xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:m = "http://www.w3.org/1998/Math/MathML"
- xmlns:xlink = "http://www.w3.org/1999/xlink"
- exclude-result-prefixes = "ltx">
-
- <xsl:template match="ltx:Math">
- <xsl:apply-templates select="m:math"/>
- </xsl:template>
-
- <!-- Copy MathML, as is -->
- <xsl:template match="*[namespace-uri() = 'http://www.w3.org/1998/Math/MathML']">
- <xsl:element name="{name()}" namespace='http://www.w3.org/1998/Math/MathML'>
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <!-- firefox needs the xlink:type attribute -->
- <xsl:if test="@*[namespace-uri() = 'http://www.w3.org/1999/xlink'] and not(@xlink:type)">
- <xsl:attribute name="type" namespace='http://www.w3.org/1999/xlink'>simple</xsl:attribute>
- </xsl:if>
- <!-- copy the ltx:Math xml:id -->
- <xsl:if test="parent::ltx:Math/@xml:id">
- <xsl:attribute name="xml:id"><xsl:value-of select="parent::ltx:Math/@xml:id"/></xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-html5.xsl
deleted file mode 100644
index 735313e70ac..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-html5.xsl
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-para-html5.xsl |
-| Converting various (logical) para-level elements to html5 |
-|=====================================================================|
-| 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">
-
-<!-- ======================================================================
- Logical paragraphs
- ====================================================================== -->
-
-<xsl:template match="ltx:para" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
-</xsl:template>
-
- <!-- Need to handle attributes! -->
- <xsl:template match="ltx:inline-para" xml:space="preserve">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:template>
-
-<!-- ======================================================================
- Theorems
- ====================================================================== -->
-
-<xsl:template match="ltx:theorem | ltx:proof" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<!-- ======================================================================
- Figures & Tables
- ====================================================================== -->
-
-<!--
-<xsl:template match="ltx:figure | ltx:table | ltx:listing" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
-</xsl:template>
--->
-
-<xsl:template match="ltx:figure | ltx:table | ltx:float | ltx:listing">
- <figure class='{f:classes(.)}' style="{f:positioning(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:choose>
- <xsl:when test="count(ltx:figure | ltx:table | ltx:float | ltx:listing | ltx:graphics) > 1">
- <table style="width:100%;">
- <tr>
- <xsl:for-each select="ltx:figure | ltx:table | ltx:float | ltx:listing | ltx:graphics">
- <td><xsl:apply-templates select="."/></td>
- </xsl:for-each>
- </tr>
- </table>
- <xsl:apply-templates select="ltx:caption"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </figure>
-</xsl:template>
-
-<xsl:template match="ltx:listing/ltx:tabular" xml:space="preserve">
- <table class="{f:classes(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </table>
-</xsl:template>
-
-<xsl:template match="ltx:caption" xml:space="preserve">
- <figcaption class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}"
- style="{f:if(@color,concat('color:',@color),'')}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </figcaption>
-</xsl:template>
-
-<xsl:template match="ltx:toccaption"/>
-
-</xsl:stylesheet> \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-xhtml.xsl
deleted file mode 100644
index bdaff75bc0c..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-para-xhtml.xsl
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-para-xhtml.xsl |
-| Converting various (logical) para-level elements to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="f"
- exclude-result-prefixes = "ltx f">
-
-<!-- ======================================================================
- Logical paragraphs
- ====================================================================== -->
-
-<xsl:template match="ltx:para" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
-</xsl:template>
-
- <!-- Need to handle attributes! -->
- <xsl:template match="ltx:inline-para" xml:space="preserve">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:template>
-
-<!-- ======================================================================
- Theorems
- ====================================================================== -->
-
-<xsl:template match="ltx:theorem | ltx:proof" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<!-- ======================================================================
- Figures & Tables
- ====================================================================== -->
-
-<!--
-<xsl:template match="ltx:figure | ltx:table | ltx:listing" xml:space="preserve">
- <div class='{f:classes(.)}'><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
-</xsl:template>
--->
-
-<xsl:template match="ltx:figure | ltx:table | ltx:float | ltx:listing">
- <div class='{f:classes(.)}' style="{f:positioning(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:choose>
- <xsl:when test="count(ltx:figure | ltx:table | ltx:float | ltx:listing | ltx:graphics) > 1">
- <table style="width:100%;">
- <tr>
- <xsl:for-each select="ltx:figure | ltx:table | ltx:float | ltx:listing | ltx:graphics">
- <td><xsl:apply-templates select="."/></td>
- </xsl:for-each>
- </tr>
- </table>
- <xsl:apply-templates select="ltx:caption"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
-</xsl:template>
-
-<xsl:template match="ltx:listing/ltx:tabular" xml:space="preserve">
- <table class="{f:classes(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </table>
-</xsl:template>
-
-<xsl:template match="ltx:caption" xml:space="preserve">
- <div class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}"
- style="{f:if(@color,concat('color:',@color),'')}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </div>
-</xsl:template>
-
-<xsl:template match="ltx:toccaption"/>
-
-</xsl:stylesheet> \ No newline at end of file
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
deleted file mode 100644
index f3065dcce9b..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-image.xsl
+++ /dev/null
@@ -1,36 +0,0 @@
-<?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>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg-html5.xsl
deleted file mode 100644
index 8021fbd4f22..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg-html5.xsl
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-picture-svg-html5.xsl |
-| Converting pictures to SVG w/o namespaces for html5 |
-|=====================================================================|
-| 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:m = "http://www.w3.org/1998/Math/MathML"
- xmlns:svg = "http://www.w3.org/2000/svg"
- exclude-result-prefixes = "ltx svg">
-
- <!-- Copy SVG, as is ???? -->
- <xsl:template match="*[namespace-uri() = 'http://www.w3.org/2000/svg']">
- <xsl:element name="{local-name()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg.xsl
deleted file mode 100644
index bad0b6f7fa3..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-picture-svg.xsl
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-picture-svg.xsl |
-| Converting pictures to SVG for xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:m = "http://www.w3.org/1998/Math/MathML"
- xmlns:svg = "http://www.w3.org/2000/svg"
- xmlns:xlink = "http://www.w3.org/1999/xlink"
- exclude-result-prefixes = "ltx">
-
- <!-- Copy SVG, as is ???? -->
- <xsl:template match="*[namespace-uri() = 'http://www.w3.org/2000/svg']">
- <xsl:element name="{name()}" namespace='http://www.w3.org/2000/svg'>
- <xsl:for-each select="@*">
- <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-html5.xsl
deleted file mode 100644
index 21dacbf3f12..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-html5.xsl
+++ /dev/null
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-structure-html5.xsl |
-| Converting documents structure to html5 |
-|=====================================================================|
-| 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">
-
- <!-- ======================================================================
- Document Structure
- ====================================================================== -->
-
- <xsl:template match="ltx:document | ltx:part | ltx:chapter
- | ltx:section | ltx:subsection | ltx:subsubsection
- | ltx:paragraph | ltx:subparagraph
- | ltx:bibliography | ltx:appendix | ltx:index" xml:space="preserve">
- <section class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </section>
- </xsl:template>
-
- <xsl:template match="ltx:creator[@role='author']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:personname" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='address']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='email']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><a href="{concat('mailto:',text())}"><xsl:apply-templates/></a></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='dedicatory']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- put in footer -->
- <xsl:template match="ltx:date"/>
-
- <xsl:template match="ltx:abstract" xml:space="preserve">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>.</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:acknowledgements">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>.</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:keywords" xml:space="preserve">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>:</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:classification">
- <xsl:text>
- </xsl:text>
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <i><xsl:choose>
- <xsl:when test='@scheme'><xsl:value-of select='@scheme'/></xsl:when>
- <xsl:when test='@name'><xsl:value-of select='@name'/></xsl:when>
- </xsl:choose>: </i>
- <xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- ======================================================================
- Titles.
- ====================================================================== -->
- <!-- Hack to determine the `levels' of various sectioning.
- Given that the nesting could consist of any of
- document/part/chapter/section or appendix/subsection/subsubsection
- /paragraph/subparagraph
- We'd like to assign h1,h2,... sensibly.
- Or should the DTD be more specific? -->
-
- <xsl:param name="title_level">6</xsl:param>
-
- <xsl:param name="document_level">
- <xsl:value-of select="1"/>
- </xsl:param>
-
-
- <xsl:template match="ltx:title">
- <hgroup>
- <h1 class="{concat(f:classes(.),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))}"
- style="{f:if(@color,concat('color:',@color),'')}"><xsl:call-template name="add_id"/><xsl:apply-templates/></h1>
- <xsl:apply-templates select="../ltx:subtitle"/>
- </hgroup>
- </xsl:template>
-
- <xsl:template match="ltx:subtitle">
- <h2 class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></h2>
- </xsl:template>
-
- <xsl:template match="ltx:toctitle"/>
-
- <!-- ======================================================================
- Indices
- ====================================================================== -->
-
- <xsl:template match="ltx:indexlist">
- <ul class="{f:classes(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </ul>
- </xsl:template>
-
- <xsl:template match="ltx:indexentry">
- <li class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates select="ltx:indexphrase"/>
- <xsl:apply-templates select="ltx:indexrefs"/>
- <xsl:apply-templates select="ltx:indexlist"/>
- </li>
- </xsl:template>
-
- <xsl:template match="ltx:indexrefs">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-xhtml.xsl
deleted file mode 100644
index e3665da7a25..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-structure-xhtml.xsl
+++ /dev/null
@@ -1,261 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-structure-xhtml.xsl |
-| Converting documents structure to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="f"
- exclude-result-prefixes = "ltx f">
-
- <!-- ======================================================================
- Document Structure
- ====================================================================== -->
-
- <xsl:template match="ltx:document | ltx:part | ltx:chapter
- | ltx:section | ltx:subsection | ltx:subsubsection
- | ltx:paragraph | ltx:subparagraph | ltx:slide
- | ltx:bibliography | ltx:appendix | ltx:index" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:creator[@role='author']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:personname" xml:space="preserve">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='address']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='email']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><a href="{concat('mailto:',text())}"><xsl:apply-templates/></a></div>
- </xsl:template>
-
- <xsl:template match="ltx:contact[@role='dedicatory']" xml:space="preserve">
- <div class="{concat(f:classes(.),' ',@role)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- put in footer -->
- <xsl:template match="ltx:date"/>
-
- <xsl:template match="ltx:abstract" xml:space="preserve">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>.</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:acknowledgements">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>.</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:keywords[not(string(.))]" xml:space="preserve">
- <div class="RDFa"><xsl:copy-of select="@*"/></div>
- </xsl:template>
-
-
- <xsl:template match="ltx:keywords" xml:space="preserve">
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>:</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
-
- <xsl:template match="ltx:classification">
- <xsl:text>
- </xsl:text>
- <div class='{f:classes(.)}'>
- <xsl:call-template name="add_id"/>
- <i><xsl:choose>
- <xsl:when test='@scheme'><xsl:value-of select='@scheme'/></xsl:when>
- <xsl:when test='@name'><xsl:value-of select='@name'/></xsl:when>
- </xsl:choose>: </i>
- <xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- ======================================================================
- Titles.
- ====================================================================== -->
- <!-- Hack to determine the `levels' of various sectioning.
- Given that the nesting could consist of any of
- document/part/chapter/section or appendix/subsection/subsubsection
- /paragraph/subparagraph
- We'd like to assign h1,h2,... sensibly.
- Or should the DTD be more specific? -->
-
- <xsl:param name="title_level">6</xsl:param>
-
- <xsl:param name="document_level">
- <xsl:value-of select="1"/>
- </xsl:param>
-
- <xsl:template match="ltx:document/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$document_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="part_level">
- <xsl:value-of select="$document_level+number(boolean(ltx:document))"/>
- </xsl:param>
-
- <xsl:template match="ltx:part/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$part_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="chapter_level">
- <xsl:value-of select="$part_level+number(boolean(//ltx:part))"/>
- </xsl:param>
-
- <xsl:template match="ltx:chapter/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$chapter_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="section_level">
- <xsl:value-of select="$chapter_level+number(boolean(//ltx:chapter))"/>
- </xsl:param>
-
- <xsl:template match="ltx:section/ltx:title | ltx:bibliography/ltx:title
- | ltx:index/ltx:title | ltx:appendix/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$section_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="subsection_level">
- <xsl:value-of select="$section_level+number(boolean(//ltx:section | //ltx:appendix
- | //ltx:index | //ltx:bibliography))"/>
- </xsl:param>
-
- <xsl:template match="ltx:subsection/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$subsection_level"/>
- </xsl:call-template>
- </xsl:template>
-
-
- <xsl:param name="subsubsection_level">
- <xsl:value-of select="$subsection_level+number(boolean(//ltx:subsection))"/>
- </xsl:param>
-
- <xsl:template match="ltx:subsubsection/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$subsubsection_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="paragraph_level">
- <xsl:value-of select="$subsubsection_level+number(boolean(//ltx:subsubsection))"/>
- </xsl:param>
-
- <xsl:template match="ltx:paragraph/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$paragraph_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:param name="subparagraph_level">
- <xsl:value-of select="$paragraph_level+number(boolean(//ltx:paragraph))"/>
- </xsl:param>
-
- <xsl:template match="ltx:subparagraph/ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="$subparagraph_level"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="ltx:title">
- <xsl:call-template name="maketitle">
- <xsl:with-param name="title_level" select="6"/>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Convert a title to an <h#>, with appropriate classes and content.
- The parameter $title_level should specify the level 1-6,
- determined by the container and its context in the document.
- A title always appears as a child of a Labelled element. -->
- <xsl:template name="maketitle">
- <xsl:param name="title_level">6</xsl:param>
- <xsl:param name="use_level">
- <xsl:choose>
- <xsl:when test="$title_level &gt; 6">6</xsl:when>
- <xsl:otherwise><xsl:value-of select="$title_level"/></xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:element name="{concat('h',$use_level)}">
- <xsl:call-template name="add_id"/>
- <xsl:attribute name="class">
- <xsl:value-of select="concat(f:classes(.),
- ' ',concat(local-name(..),'-title'),
- f:if(@font,concat(' ',@font),''),
- f:if(@size,concat(' ',@size),''))"/>
- </xsl:attribute>
- <xsl:if test="@color">
- <xsl:attribute name="style">
- <xsl:value-of select="concat('color:',@color)"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
-
- <xsl:template match="ltx:toctitle"/>
-
-<!-- NOTE: Probably should support font, punct, etc, right? -->
- <xsl:template match="ltx:subtitle">
- <div class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></div>
- </xsl:template>
-
- <!-- ======================================================================
- Indices
- ====================================================================== -->
-
- <xsl:template match="ltx:indexlist">
- <ul class="{f:classes(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </ul>
- </xsl:template>
-
- <xsl:template match="ltx:indexentry">
- <li class="{f:classes(.)}"><xsl:call-template name="add_id"/>
- <xsl:apply-templates select="ltx:indexphrase"/>
- <xsl:apply-templates select="ltx:indexrefs"/>
- <xsl:apply-templates select="ltx:indexlist"/>
- </li>
- </xsl:template>
-
- <xsl:template match="ltx:indexrefs">
- <span class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></span>
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-tabular-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-tabular-xhtml.xsl
deleted file mode 100644
index 93849426b67..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-tabular-xhtml.xsl
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-tabular-xhtml.xsl |
-| Converting tabular to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- extension-element-prefixes="f"
- exclude-result-prefixes = "ltx f">
-
-<!-- ======================================================================
- Tabulars
- ====================================================================== -->
-
-<xsl:template match="ltx:tabular" xml:space="preserve">
- <table class="{f:classes(.)}">
- <xsl:call-template name="add_id"/>
- <xsl:apply-templates/>
- </table>
-</xsl:template>
-
-<xsl:template match="ltx:thead" xml:space="preserve">
- <thead class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></thead>
-</xsl:template>
-
-<xsl:template match="ltx:tbody" xml:space="preserve">
- <tbody class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></tbody>
-</xsl:template>
-
-<xsl:template match="ltx:tfoot" xml:space="preserve">
- <tfoot class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></tfoot>
-</xsl:template>
-
-<xsl:template match="ltx:tr" xml:space="preserve">
- <tr class="{f:classes(.)}"><xsl:call-template name="add_id"/><xsl:apply-templates/></tr>
-</xsl:template>
-
-<xsl:template match="ltx:td">
- <xsl:text>
-</xsl:text>
- <xsl:element name="{f:if(@thead,'th','td')}">
- <xsl:call-template name="add_id"/>
- <xsl:if test="@colspan">
- <xsl:attribute name='colspan'><xsl:value-of select='@colspan'/></xsl:attribute>
- </xsl:if>
- <xsl:if test="@rowspan">
- <xsl:attribute name='rowspan'><xsl:value-of select='@rowspan'/></xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="starts-with(@align,'char:')">
- <xsl:attribute name='align'>char</xsl:attribute>
- <xsl:attribute name='char'><xsl:value-of select="substring-after(@align,'char:')"/></xsl:attribute>
- </xsl:when>
- <xsl:when test="@align">
- <xsl:attribute name='align'><xsl:value-of select='@align'/></xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="@border">
- <xsl:attribute name='class'><xsl:value-of select="concat(f:classes(.),' ',@border)"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name='class'><xsl:value-of select="f:classes(.)"/></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="@width">
- <xsl:attribute name='width'><xsl:value-of select="@width"/></xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:apply-templates/>
- </xsl:element>
-</xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-html5.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-html5.xsl
deleted file mode 100644
index 7e0e8b0df63..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-html5.xsl
+++ /dev/null
@@ -1,248 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-webpage-html5.xsl |
-| General purpose webpage wrapper for LaTeXML documents in html5 |
-|=====================================================================|
-| 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:string= "http://exslt.org/strings"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- exclude-result-prefixes = "ltx f"
- extension-element-prefixes="string f">
-
-<xsl:param name="CSS"></xsl:param>
-<xsl:param name="ICON"></xsl:param>
-
-<!-- ======================================================================
- The Page
- ====================================================================== -->
-
-<xsl:param name="n">0</xsl:param>
-
-<xsl:template name="head">
- <xsl:text>
- </xsl:text>
- <head><xsl:text>
- </xsl:text>
- <xsl:if test="*/ltx:title">
- <title>
- <xsl:apply-templates select="*/ltx:title" mode="visible-text"/>
- <xsl:for-each select="//ltx:navigation/ltx:ref[@class='up']"
- > &#x2023; <xsl:value-of select="@title"/></xsl:for-each>
- </title>
- </xsl:if>
- <xsl:text>
- </xsl:text>
- <xsl:call-template name="metatype"/>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='start']"><xsl:text>
- </xsl:text>
- <link rel="start" href="{/*/ltx:navigation/ltx:ref[@class='start']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='start']/@title)}"/>
- </xsl:if>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='previous']"><xsl:text>
- </xsl:text>
- <link rel="prev" href="{/*/ltx:navigation/ltx:ref[@class='previous']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='previous']/@title)}"/>
- </xsl:if>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='next']"><xsl:text>
- </xsl:text>
- <link rel="next" href="{/*/ltx:navigation/ltx:ref[@class='next']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='next']/@title)}"/>
- </xsl:if>
- <xsl:if test='$ICON'>
- <link rel="shortcut icon" href="{$ICON}" type="image/x-icon"/>
- </xsl:if>
- <xsl:if test='$CSS'>
- <xsl:for-each select="string:split($CSS,'|')"><xsl:text>
- </xsl:text>
- <link rel='stylesheet' type="text/css" href="{text()}"/>
- </xsl:for-each>
- </xsl:if>
- <xsl:if test="//ltx:indexphrase"><xsl:text>
- </xsl:text>
- <meta name="keywords" xml:lang="en-us">
- <xsl:attribute name="content">
- <xsl:for-each select="//ltx:indexphrase[not(.=preceding::ltx:indexphrase)]">
- <xsl:sort select="text()"/>
- <xsl:if test="position() &gt; 1">, </xsl:if>
- <xsl:value-of select="text()"/>
- </xsl:for-each>
- </xsl:attribute>
- </meta>
- </xsl:if>
- <!-- Should include ltx:keywords here? But, we don't know how the content is formatted!-->
- <xsl:text>
- </xsl:text>
- </head>
-</xsl:template>
-
-<xsl:template match="text()" mode="visible-text"><xsl:value-of select="."/></xsl:template>
-<xsl:template match="*" mode="visible-text"><xsl:apply-templates mode="visible-text"/></xsl:template>
-<xsl:template match="ltx:indexphrase" mode="visible-text"/>
-
-<xsl:template name="body">
- <xsl:text>
- </xsl:text>
- <body>
- <xsl:call-template name="navbar"/>
- <xsl:text>
- </xsl:text>
- <div class='main'>
- <xsl:call-template name="header"/>
- <xsl:text>
- </xsl:text>
- <div class='content'>
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </div>
- <xsl:call-template name="footer"/>
- <xsl:text>
- </xsl:text>
- </div>
- <xsl:text>
- </xsl:text>
- </body>
-</xsl:template>
-
-<!-- ======================================================================
- Header & Footer
- ====================================================================== -->
-
-<!--
-<xsl:template name="navbar">
- <xsl:if test="//ltx:navigation/ltx:toclist">
- <xsl:text>
- </xsl:text>
- <div class='navbar'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='start']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:toclist"/>
- <xsl:text>
- </xsl:text>
- </div>
- </xsl:if>
-</xsl:template>
--->
-<xsl:template name="navbar">
- <xsl:if test="//ltx:navigation/ltx:TOC">
- <xsl:text>
- </xsl:text>
- <nav class='navbar'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='start']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:TOC"/>
- <xsl:text>
- </xsl:text>
- </nav>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="header">
- <xsl:if test="//ltx:navigation/ltx:ref">
- <xsl:text>
- </xsl:text>
- <header class='header'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='up']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='previous']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='next']"/>
- <xsl:text>
- </xsl:text>
- </header>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="footer">
- <xsl:if test="//ltx:date[@role='creation' or @role='conversion'][1] | //ltx:navigation/ltx:ref">
- <xsl:text>
- </xsl:text>
- <footer class='footer'>
- <xsl:value-of select='//ltx:date/node()'/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='previous']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='next']"/>
- <xsl:text>
- </xsl:text>
- </footer>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="ltx:navigation"/>
-
-<!-- ======================================================================
- Tables of Contents.
- ====================================================================== -->
-<!-- explictly requested TOC -->
-<xsl:template match="ltx:TOC[@format='short']">
- <xsl:apply-templates mode="short"/>
-</xsl:template>
-
-<xsl:template match="ltx:TOC[@format='veryshort']">
- <xsl:apply-templates mode="veryshort"/>
-</xsl:template>
-
-<xsl:template match="ltx:TOC">
- <xsl:if test="ltx:toclist/descendant::ltx:tocentry">
- <xsl:text>
- </xsl:text>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>:</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="ltx:toclist" mode="short">
- <xsl:text>
- </xsl:text>
- <div class="shorttoc"><xsl:text>
- &#x2666; </xsl:text><xsl:apply-templates mode="short"/>
- </div>
-</xsl:template>
-
-<xsl:template match="ltx:toclist" mode="veryshort">
- <xsl:text>
- </xsl:text>
- <div class="veryshorttoc">&#x2666;<xsl:apply-templates mode="veryshort"/></div>
-</xsl:template>
-
-<xsl:template match="ltx:toclist[@tocindent]">
- <xsl:text>
- </xsl:text>
- <ul class="{concat('toc toclevel',floor((@tocindent+3) div 4))}">
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </ul>
-</xsl:template>
-
-<xsl:template match="ltx:toclist">
- <xsl:text>
- </xsl:text>
- <ul class="toc">
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </ul>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry">
- <xsl:text>
- </xsl:text>
- <li class="{f:classes(.)}"><xsl:call-template name='add_id'/><xsl:apply-templates/></li>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry" mode="short">
- <xsl:apply-templates/><xsl:text> &#x2666; </xsl:text>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry" mode="veryshort">
- <xsl:apply-templates/>&#x2666;</xsl:template>
-
-</xsl:stylesheet> \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-xhtml.xsl
deleted file mode 100644
index 560233fec27..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-webpage-xhtml.xsl
+++ /dev/null
@@ -1,249 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-webpage-xhtml.xsl |
-| General purpose webpage wrapper for LaTeXML documents in xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:string= "http://exslt.org/strings"
- xmlns:f = "http://dlmf.nist.gov/LaTeXML/functions"
- exclude-result-prefixes = "ltx f"
- extension-element-prefixes="string f">
-
-<xsl:param name="CSS"></xsl:param>
-<xsl:param name="ICON"></xsl:param>
-
-<!-- ======================================================================
- The Page
- ====================================================================== -->
-
-<xsl:param name="n">0</xsl:param>
-
-<xsl:template name="head">
- <xsl:text>
- </xsl:text>
- <head><xsl:text>
- </xsl:text>
- <xsl:if test="*/ltx:title">
- <title>
- <xsl:apply-templates select="*/ltx:title" mode="visible-text"/>
- <xsl:for-each select="//ltx:navigation/ltx:ref[@class='up']"
- > &#x2023; <xsl:value-of select="@title"/></xsl:for-each>
- </title>
- </xsl:if>
- <xsl:text>
- </xsl:text>
- <xsl:call-template name="metatype"/>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='start']"><xsl:text>
- </xsl:text>
- <link rel="start" href="{/*/ltx:navigation/ltx:ref[@class='start']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='start']/@title)}"/>
- </xsl:if>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='previous']"><xsl:text>
- </xsl:text>
- <link rel="prev" href="{/*/ltx:navigation/ltx:ref[@class='previous']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='previous']/@title)}"/>
- </xsl:if>
- <xsl:if test="/*/ltx:navigation/ltx:ref[@class='next']"><xsl:text>
- </xsl:text>
- <link rel="next" href="{/*/ltx:navigation/ltx:ref[@class='next']/@href}"
- title="{normalize-space(.//ltx:navigation/ltx:ref[@class='next']/@title)}"/>
- </xsl:if>
- <xsl:if test='$ICON'>
- <link rel="shortcut icon" href="{$ICON}" type="image/x-icon"/>
- </xsl:if>
- <xsl:if test='$CSS'>
- <xsl:for-each select="string:split($CSS,'|')"><xsl:text>
- </xsl:text>
- <link rel='stylesheet' type="text/css" href="{text()}"/>
- </xsl:for-each>
- </xsl:if>
- <xsl:if test="//ltx:indexphrase"><xsl:text>
- </xsl:text>
- <meta name="keywords" xml:lang="en-us">
- <xsl:attribute name="content">
- <xsl:for-each select="//ltx:indexphrase[not(.=preceding::ltx:indexphrase)]">
- <xsl:sort select="text()"/>
- <xsl:if test="position() &gt; 1">, </xsl:if>
- <xsl:value-of select="text()"/>
- </xsl:for-each>
- </xsl:attribute>
- </meta>
- </xsl:if>
- <!-- Should include ltx:keywords here? But, we don't know how the content is formatted!-->
- <xsl:text>
- </xsl:text>
- </head>
-</xsl:template>
-
-<xsl:template match="text()" mode="visible-text"><xsl:value-of select="."/></xsl:template>
-<xsl:template match="*" mode="visible-text"><xsl:apply-templates mode="visible-text"/></xsl:template>
-<xsl:template match="ltx:indexphrase" mode="visible-text"/>
-
-<xsl:template name="body">
- <xsl:text>
- </xsl:text>
- <body>
- <xsl:call-template name="navbar"/>
- <xsl:text>
- </xsl:text>
- <div class='main'>
- <xsl:call-template name="header"/>
- <xsl:text>
- </xsl:text>
- <div class='content'>
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </div>
- <xsl:call-template name="footer"/>
- <xsl:text>
- </xsl:text>
- </div>
- <xsl:text>
- </xsl:text>
- </body>
-</xsl:template>
-
-<!-- ======================================================================
- Header & Footer
- ====================================================================== -->
-
-<!--
-<xsl:template name="navbar">
- <xsl:if test="//ltx:navigation/ltx:toclist">
- <xsl:text>
- </xsl:text>
- <div class='navbar'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='start']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:toclist"/>
- <xsl:text>
- </xsl:text>
- </div>
- </xsl:if>
-</xsl:template>
--->
-<xsl:template name="navbar">
- <xsl:if test="//ltx:navigation/ltx:TOC">
- <xsl:text>
- </xsl:text>
- <div class='navbar'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='start']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:TOC"/>
- <xsl:text>
- </xsl:text>
- </div>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="header">
- <xsl:if test="//ltx:navigation/ltx:ref">
- <xsl:text>
- </xsl:text>
- <div class='header'>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='up']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='previous']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='next']"/>
- <xsl:text>
- </xsl:text>
- </div>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="footer">
- <xsl:if test="//ltx:date[@role='creation' or @role='conversion'][1] | //ltx:navigation/ltx:ref">
- <xsl:text>
- </xsl:text>
- <div class='footer'>
- <xsl:value-of select='//ltx:date/node()'/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='previous']"/>
- <xsl:apply-templates select="//ltx:navigation/ltx:ref[@class='next']"/>
- <xsl:text>
- </xsl:text>
- </div>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="ltx:navigation"/>
-
-<!-- ======================================================================
- Tables of Contents.
- ====================================================================== -->
-<!-- explictly requested TOC -->
-<xsl:template match="ltx:TOC[@format='short']">
- <xsl:apply-templates mode="short"/>
-</xsl:template>
-
-<xsl:template match="ltx:TOC[@format='veryshort']">
- <xsl:apply-templates mode="veryshort"/>
-</xsl:template>
-
-<xsl:template match="ltx:TOC">
- <xsl:if test="ltx:toclist/descendant::ltx:tocentry">
- <xsl:text>
- </xsl:text>
- <xsl:if test="@name"><h6><xsl:apply-templates select="@name"/><xsl:text>:</xsl:text></h6></xsl:if>
- <xsl:apply-templates/>
- </xsl:if>
-</xsl:template>
-
-<xsl:template match="ltx:toclist" mode="short">
- <xsl:text>
- </xsl:text>
- <div class="shorttoc"><xsl:text>
- &#x2666; </xsl:text><xsl:apply-templates mode="short"/>
- </div>
-</xsl:template>
-
-<xsl:template match="ltx:toclist" mode="veryshort">
- <xsl:text>
- </xsl:text>
- <div class="veryshorttoc">&#x2666;<xsl:apply-templates mode="veryshort"/></div>
-</xsl:template>
-
-<xsl:template match="ltx:toclist[@tocindent]">
- <xsl:text>
- </xsl:text>
- <ul class="{concat('toc toclevel',floor((@tocindent+3) div 4))}">
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </ul>
-</xsl:template>
-
-<xsl:template match="ltx:toclist">
- <xsl:text>
- </xsl:text>
- <ul class="toc">
- <xsl:apply-templates/>
- <xsl:text>
- </xsl:text>
- </ul>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry">
- <xsl:text>
- </xsl:text>
- <li class="{f:classes(.)}"><xsl:call-template name='add_id'/><xsl:apply-templates/></li>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry" mode="short">
- <xsl:apply-templates/><xsl:text> &#x2666; </xsl:text>
-</xsl:template>
-
-<xsl:template match="ltx:tocentry" mode="veryshort">
- <xsl:apply-templates/>&#x2666;</xsl:template>
-
-</xsl:stylesheet> \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-xhtml.xsl b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-xhtml.xsl
deleted file mode 100644
index 7b56175b8d6..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/LaTeXML-xhtml.xsl
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/=====================================================================\
-| LaTeXML-xhtml.xsl |
-| Stylesheet for converting LaTeXML documents to xhtml |
-|=====================================================================|
-| 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 = "http://www.w3.org/1999/xhtml"
- xmlns:m = "http://www.w3.org/1998/Math/MathML"
- xmlns:svg = "http://www.w3.org/2000/svg"
- exclude-result-prefixes = "ltx">
-
- <xsl:output method="xml"
- doctype-public = "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
- doctype-system = "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"
- media-type = 'application/xhtml+xml'
- encoding = 'utf-8'
- indent = "yes"/>
-<!-- doctype-system = "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" -->
- <xsl:template name="metatype">
- <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
- </xsl:template>
-
- <xsl:template match="/">
- <html xmlns = "http://www.w3.org/1999/xhtml"
- xmlns:m = "http://www.w3.org/1998/Math/MathML"
- xmlns:svg = "http://www.w3.org/2000/svg">
- <xsl:copy-of select="/ltx:document/namespace::*[not(local-name() = 'ltx')]"/>
- <xsl:call-template name="head"/>
- <xsl:call-template name="body"/><xsl:text>
- </xsl:text>
- </html>
- </xsl:template>
-
-<xsl:include href="LaTeXML-common.xsl"/>
-<xsl:include href="LaTeXML-inline-xhtml.xsl"/>
-<xsl:include href="LaTeXML-block-xhtml.xsl"/>
-<xsl:include href="LaTeXML-para-xhtml.xsl"/>
-<xsl:include href="LaTeXML-math-mathml.xsl"/>
-<xsl:include href="LaTeXML-tabular-xhtml.xsl"/>
-<xsl:include href="LaTeXML-picture-svg.xsl"/>
-<xsl:include href="LaTeXML-structure-xhtml.xsl"/>
-<xsl:include href="LaTeXML-bib-xhtml.xsl"/>
-
-<xsl:include href="LaTeXML-webpage-xhtml.xsl"/>
-
-</xsl:stylesheet>
-
-
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/amsart.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/amsart.css
deleted file mode 100644
index 5865875b873..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/amsart.css
+++ /dev/null
@@ -1,11 +0,0 @@
-/* A somewhat amsart-like style */
-h1, h2, h3, h4, h5, h6, .author .authorname
- { font-family:serif; font-variant:small-caps;}
-.author
- { font-family:serif; }
-
-h1, h2, h3
- { text-align:center; color:#700303; }
-
-.para > p:first-child { text-indent: 2em; }
-p { text-align:justify; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/closedbib.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/closedbib.css
deleted file mode 100644
index d4ed13f403c..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/closedbib.css
+++ /dev/null
@@ -1,5 +0,0 @@
-/*======================================================================
- closedbib.css
- supplemental style for LaTeXML documents converted to (X)HTML */
-
-.bibblock { display:inline; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/core.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/core.css
deleted file mode 100644
index 1007bca0ee7..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/core.css
+++ /dev/null
@@ -1,157 +0,0 @@
-/*======================================================================
- Core CSS for LaTeXML documents converted to (X)HTML */
-
-/* Generic Page layout */
-/* Header & footer */
-/*.header:before { content:url(latexml.png); }*/
-.header,.footer { font-size:80%; }
-.header .previous,
-.footer .previous { float:left; }
-.header .up,
-.footer { display:block; text-align:center; }
-.header .next,
-.footer .next { float:right; }
-.header li { padding:0.1em 0.2em 0.1em 1em;}
-
-/* Main content */
-.content { clear:both; padding-top:5px; border-top:1px solid; }
-.footer { margin-top:5px; border-top:1px solid; }
-
-/* if shown */
-.navbar .toc li { margin-left:-0.5em; }
-.navbar li { white-space:nowrap; display:block; overflow:hidden; }
-.navbar li .here { white-space:normal; overflow:visible; }
-
-.slide {width: 95%;
- margin: 5mm 5mm 5mm 5mm;
- border-style:solid;
- border-width:medium;
- padding: 10pt;
- position: relative;
-}
-
-/*======================================================================
- Titles & Frontmatter */
-h1 { text-align:center; font-size: 150%; font-family:sans-serif;}
-h2 { font-family:sans-serif; padding-left:0.2em; margin-left:-0.5em; }
-h3 { font-family:sans-serif; padding-left:0.2em; margin-left:-0.3em; }
-/* h6 { display:run-in; }*/
-/* Hack to simulate run-in! */
-h6 { display:inline; font-size:100%; font-family:sans-serif; }
-h6:after { content:" "; }
-h6 + div.para,
-h6 + p { display:inline; }
-
-.subtitle { text-align:center; font-size: 120%; font-family:sans-serif;
- padding-left:0.2em; margin-left:-0.5em; }
-.author { text-align:center; font-family:sans-serif; }
-.author .personname { font-size: 130%; }
-.dedicatory { font-style:oblique; }
-.classification,
-.keywords { font-size:90%; margin-left:4em; }
-.abstract { margin:1em 4em 1em 4em; }
-.toc li { list-style-type:none; }
-
-.navbar { display: none; } /* override! */
-.main { margin:0px; padding:1em 3em 1em 2em; }
-
-/*======================================================================
- Blocks, Lists, Floats */
-.inline-block { display:inline-block; }
-div.equation { display:block; width:95%; text-align:center; }
-.equation span.refnum.left { position:absolute; left:2em; }
-.equation span.refnum.right { position:absolute; right:2em; }
-
-.equation td { width:auto; }
-table.equation,
-table.equationgroup { width:100%; }
-/* Hide this from IE */
-tr > td.eqpad { width:50%; }
-
-dl.description dt { margin-right:0.5em; float:left;
- font-weight:bold; font-size:95%; }
-dl.description dd { margin-left:5em; }
-dl.description dl.description dd { margin-left:3em; }
-
-.theorem {margin:1em 0em 1em 0em; }
-
-.bibliography dt { margin-right:0.5em; float:left; }
-.bibliography dd { margin-left:3em; }
-.biblist { list-style-type:none; }
-.bibtag { font-weight:bold; margin-left:-2em; width:3em; }
-/*.bibitem-tag + div { display:inline; }*/
-.bib-title { font-style:italic; }
-.bib-article .bib-title { font-style:normal !important; }
-.bib-journal { font-style:italic; }
-.bib-volume { font-weight:bold; }
-
-.indexlist li { list-style-type:none; }
-.indexlist { margin-left:1em; padding-left:1em;}
-.listing td.linenumber,
-.listingblock td.linenumber
- { width:3em; text-align:right;}
-/*======================================================================
- Borders and such */
-.framed { border:1px solid black;}
-.tabular td, .tabular th { padding:0.1em 0.5em; }
-table { border-collapse:collapse; }
-/* Hmm... the star should be m:mtd */
-td.t, th.t, *[class~="t"] { border-top:1px solid black; }
-td.r, th.r, *[class~="r"] { border-right:1px solid black; }
-td.b, th.b, *[class~="b"] { border-bottom:1px solid black; }
-td.l, th.l, *[class~="l"] { border-left:1px solid black; }
-td.tt, th.tt, *[class~="tt"] { border-top:3px double black; }
-td.rr, th.rr, *[class~="rr"] { border-right:3px double black; }
-td.bb, th.bb, *[class~="bb"] { border-bottom:3px double black; }
-td.ll, th.ll, *[class~="ll"] { border-left:3px double black; }
-
-td.left, th.left { text-align:left; white-space:nowrap; }
-td.right, th.right { text-align:right; white-space:nowrap; }
-td.center, th.center { text-align:center; white-space:nowrap; }
-td.middle, th.middle, tr.middle { vertical-align:middle; }
-td.baseline, th.baseline, tr.baseline { vertical-align:baseline; }
-
-/*======================================================================
- Low-level Basics */
-.TINY { font-size:50%; }
-.Tiny { font-size:60%; }
-.tiny { font-size:65%; }
-.script { font-size:70%; }
-.footnote { font-size:80%; }
-.small { font-size:90%; }
-.normal { font-size:100%; }
-.large { font-size:110%; }
-.Large { font-size:120%; }
-.LARGE { font-size:140%; }
-.huge { font-size:150%; }
-.Huge { font-size:170%; }
-.HUGE { font-size:200%; }
-.sansserif { font-family: sans-serif; }
-.typewriter { font-family: monospace; }
-.bold { font-weight: bold; }
-.medium { font-weight: normal; }
-.italic { font-style: italic; }
-.upright { font-style: normal; }
-.slanted { font-style: oblique; }
-.smallcaps { font-variant: small-caps; }
-.red { color:red; }
-.centering { text-align:center;
- margin:auto; }
-.inline-block.centering,
-img.centering { display:block;
- margin:auto; }
-.flushleft { text-align:left; }
-.flushright { text-align:right; }
-.ERROR { color:red; }
-cite { font-style: normal; }
-
-/*======================================================================
- pop-up footnotes, endnote, margin */
-.note .note_content {display:none; }
-.note .note_content {
- width: 70%; right:5%; font-size:80%;
- background:#E0E0E0; border:3px outset gray; }
-.note .mark { color:blue; }
-.note-type { font-weight: bold; }
-.note:hover .note_content
- { display:block; position:absolute; z-index:10; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/marginpar.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/marginpar.css
deleted file mode 100644
index fb6888573cf..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/marginpar.css
+++ /dev/null
@@ -1,11 +0,0 @@
-/* A simple example of CSS for placing marginpar in margin.
- (more sophisticated layout probably requires xslt) */
-.note.margin .mark { display:none; }
-.note.margin .note-type { display:none; }
-.note.margin .note_content {
- display:block;
- position:fixed; left:83%; width:15%;
- background-color: transparent; border:0pt; }
-
-/* Narrower, to make room for marginpar */
-.main { width:80%; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-left.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-left.css
deleted file mode 100644
index dc8cf31d1a8..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-left.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/* CSS for left navigation bar */
-
-.navbar { display:block!important; position:fixed; left:0px; top:0px; width:170px;
- margin:0em; padding:1em; font: bold 75% sans-serif;
- border: 3px double; }
-.navbar ul { margin-left:-2em; }
-.main { position:absolute; left:190px; top:0px; right:2px;
- margin:0px; padding:1em 3em 1em 2em;
- width:70%; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-right.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-right.css
deleted file mode 100644
index 16af01b4005..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/navbar-right.css
+++ /dev/null
@@ -1,7 +0,0 @@
-/* CSS for left navigation bar */
-
-.navbar { display:block!important; position:fixed; left:80%; top:0px; width:20%;
- margin:0em; padding:1em; font: bold 75% sans-serif; }
-.navbar ul { margin-left:-2em; }
-.main { margin:0px; padding:1em 3em 1em 2em;
- width:75%; }
diff --git a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/theme-blue.css b/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/theme-blue.css
deleted file mode 100644
index 9e3659bc7cd..00000000000
--- a/Master/texmf-dist/source/latex/stex/xsl/LaTeXML/theme-blue.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Blue theme */
-body { background:#FFFFFF; color:#000000; }
-
-/*
-.navbar { border-right: 3px double #087d9d;
- border-bottom: 5px double #087d9d; background:#e5f7fb; }
-*/
-.navbar { border: 5px double #087d9d; background:#e5f7fb; }
-
-.content { border-top:1px solid #087d9d; }
-.footer { border-top:1px solid #087d9d; }
-
-h2 { border-top: 5px double #087d9d; border-left: 3px double #087d9d; background:#e5f7fb; }
-h3 { border-top: 1px solid #087d9d; border-left: 1px solid #087d9d; background:#e7faff; }
-th, *[class~="thead"] { background-color:#e5f7fb; }