diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/x-om2cml.xsl')
-rw-r--r-- | Master/texmf-dist/tex/context/base/x-om2cml.xsl | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/x-om2cml.xsl b/Master/texmf-dist/tex/context/base/x-om2cml.xsl index 60888c10d7c..4bc1818078b 100644 --- a/Master/texmf-dist/tex/context/base/x-om2cml.xsl +++ b/Master/texmf-dist/tex/context/base/x-om2cml.xsl @@ -177,7 +177,29 @@ <!-- Trivial Cases: abs, divide, gcd, lcm, minus, plus --> <xsl:template match="om:OMS[@cd='arith1']"> - <xsl:element name="{@name}"/> + <xsl:element name="{@name}"> + <xsl:choose> + <xsl:when test="@name='times'"> + <xsl:choose> + <xsl:when test="../@style='empty'"> + <xsl:attribute name='symbol'></xsl:attribute> + </xsl:when> + <xsl:when test="../@style='cross'"> + <xsl:attribute name='symbol'>times</xsl:attribute> + </xsl:when> + <xsl:when test="../@style=''"> + <!-- inherit from parent times --> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name='symbol'><xsl:value-of select="../@style"/></xsl:attribute> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <!-- forget about it --> + </xsl:otherwise> + </xsl:choose> + </xsl:element> </xsl:template> <!-- unary_minus --> |