parasew / instiki

a basic wiki clone so pretty and easy to set up, you’ll wonder if it’s really a wiki.
https://golem.ph.utexas.edu/wiki/instiki/show/HomePage
503 stars 111 forks source link

Is it possible to use only MathJax without itex2MML? #41

Open structuralist opened 7 years ago

structuralist commented 7 years ago

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?

distler commented 7 years ago

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

structuralist commented 7 years ago

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{⟜}}$).

distler commented 7 years ago

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).

structuralist commented 7 years ago

That's good to know, thanks!

distler commented 7 years ago

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 ...