Menu

Operators

Anonymous
2004-06-11
2004-07-15
  • Anonymous

    Anonymous - 2004-06-11

    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

     
    • Vasil I. Yaroshevich

      Thanks for your proposition. I added this code to the project. Please, check cvs for update.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.