Share

XSLT MathML Library

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Operators

You are viewing a single message from this topic. View all messages.

  1. 2004-06-11 20:23:33 UTC
    What about the support for the default operators that supports TeX (\cos, \sin, etc.) ?
    It is easy to add it ; here is a proposition (not the best !) to be inserted at the line 19 of tokens.xslt, just after <xsl:when> :

    <xsl:variable name="op">
    <xsl:value-of select="concat(' ',normalize-space(.),' ')"/>
    </xsl:variable>
    <xsl:choose>
    <xsl:when test="contains(' arccos cos csc exp ker limsup min sinh arcsin cosh deg gcd lg ln Pr sup arctan cot det hom lim log sec tan arg coth dim inf liminf max sin tanh ',$op)">
    <xsl:text>\</xsl:text>
    <xsl:value-of select="normalize-space(.))"/>
    <xsl:text> </xsl:text>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text>\mathrm{</xsl:text>
    ...

    Regards,
    Stephan
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.