开发者

MathJax doesn't render the "less-than sign"

I'm trying to display the less-than sign using MathJax to render MathML input... currently working on Firefox but will be expanding to other browsers. I have tried displaying the sign in different variations:

  • <
  • &lt;
  • &#x003C;

But I get the following error:

Error parsing MathML: not well-formed Line Number 18, Column 13: <mo><</mo> ------------------------------------------------------^

I'm using the following MathML code:

<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
 <mpadded height="+.7lex">
  <mrow>
   <mo>&#x003C;</mo>
  </mrow>
 </mpadded>
</math>

Any idea why this might be happening? I've read that this might be a bug with MathJax, but开发者_如何学Go I also tried doing this using other tags but no luck. I'm also pretty sure I'm using the latest version of MathJax.

Thanks, Hristo


This was a bug in MathJax that was fixed in the SVN version 580, which hasn't been included in a packaged version yet. You may want to get a current SVN copy of MathJax rather than one of the ZIP files. The fix will be included in the next release of MathJax


I am using the older, beta version of MathJax, but did find a working example on my site. It uses the code <mo>&lt;</mo>.

Could it be that you need to use the math operator (mo) tag instead of the text (mtext) tag?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜