diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2006-12-01 10:42:41 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2006-12-01 10:42:41 +0000 |
commit | 93211732ba767f3d2be8e4b948553a42791302c8 (patch) | |
tree | ca5509bc7a7e9aa8e310dc5278a3c7c9bdbad7dc /Master/texmf-dist/tex/context/base/x-om2cml.xsl | |
parent | c407afe4a4284ab98479d51d2553287055f0ce1c (diff) |
context release 2006.11.29
git-svn-id: svn://tug.org/texlive/trunk@2572 c570f23f-e606-0410-a88d-b1316a301751
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 --> |