Katex: Add support for \xrightarrow

Created on 13 Oct 2015  路  9Comments  路  Source: KaTeX/KaTeX

\xrightarrow or \overset support text above arrow.

xrightarrow

Most helpful comment

This is in v0.8.0.

All 9 comments

Just a quick one: Should this be relation or accent? There is already rightarrow defined:

defineSymbol(math, main, rel, "\u2192", "\\rightarrow");

Also, which unicode shall I use? It seems that \xrightarrow is AMSMath symbol.

We cannot add letter on the top of rightarrow? Am I right?

Yes, \xrightarrow is AMSMath symbol. You have to add amsmath plugin when use mathjax.

It should be great if KaTex support this symbol.

So basically if I got this right: adding support of xrightarrow to KaTeX requires u2192 as an accent. If someone can verify this, so I can create a PR.

Thank you.

\xrightarrow and \overset should be functions because they accepts a parameter.

Ok - what about the unicode? Is it u2192?

@Newman101 yes, \u2192 is the right character. The arrow's tail grows to match the content positioned above it.

@Newman101 Any news about this? Seems like it was on the right track but no news for almost two years :/ Is this being dropped? Can we help somehow?

There's support for \xrightarrow on `master right now. I need to publish a new version to npm which I haven't got round to yet.

This is in v0.8.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yawnoc picture yawnoc  路  3Comments

StaloneLab picture StaloneLab  路  3Comments

fabiospampinato picture fabiospampinato  路  4Comments

oddhack picture oddhack  路  3Comments

q2apro picture q2apro  路  3Comments