instiki icon indicating copy to clipboard operation
instiki copied to clipboard

Is it possible to use only MathJax without itex2MML?

Open structuralist opened this issue 8 years ago • 5 comments

MathJax seems to have better support for TeX input than itex2MML.

Is it possible to just have MathJax process the TeX input on the client side rather than going through itex2MML?

structuralist avatar Dec 31 '16 11:12 structuralist

Out of curiousity, what (La)TeX constructs, that you like to use, are supported in MathJax, but not in itex2MML ?

distler avatar Dec 31 '16 17:12 distler

Here are some MathJax features I'd like to use:

  1. Spacing: For example, itex2MML puts superfluous space around \bot, while MathJax does it correctly (e.g. in $\mathcal{C}(X, \bot)$).

  2. Macros: I'd like to be able to define my own within a wiki page.

  3. Plugins: There's a MathJax plugin for commutative diagrams I'd like to use: http://sonoisa.github.io/xyjax/xyjax.html

  4. Unicode: If a symbol is missing I'd like to be able to use a unicode symbol in its place (e.g. $\def\multimapinv{\mathrel{⟜}}$).

structuralist avatar Jan 05 '17 12:01 structuralist

Not that this addresses your other issues, but

$\mathrel{⟜}$

is perfectly fine itex input (for stupid architectural reasons, itex2MML is restricted to ASCII input, hence the NCR).

distler avatar Jan 05 '17 16:01 distler

That's good to know, thanks!

structuralist avatar Jan 07 '17 08:01 structuralist

The list of symbols supported in itex is the union (symbols defined in AMSLaTeX)∪(symbols requested by users). Hence \multimap is there, but (heretofore) \multimapinv is not.

It (along with other symbols you're interested in) could be in the next version. If you want to discuss this, I suggest doing so over here.

As to your point 1, it sounds like itex needs something like a \mathord{} command. I will look into that ...

distler avatar Jan 07 '17 17:01 distler