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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Thanks for your proposition. I added this code to the project. Please, check cvs for update.