Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension (similar to) mathtools [was: Support for \xrightleftharpoons] #1582

Closed
sassanh opened this issue Aug 15, 2016 · 11 comments
Closed

Comments

@sassanh
Copy link

sassanh commented Aug 15, 2016

While I can draw arrows with \rightarrow for example, I can't use \xrightleftharpoons{\hspace{8cm}} which is supported in LaTeX. Am I missing something or is it not supported? If it's not supported is there any document I can read about which parts of LaTeX are supported in MathJax?

@pkra
Copy link
Contributor

pkra commented Aug 16, 2016

I'm not sure which TeX package you have in mind, but you can define custom arrows using the extpfeil extension, http://docs.mathjax.org/en/latest/tex.html#extpfeil, e.g., \require{extpfeil} \Newextarrow{\xrightharpoonup}{5,10}{0x21C0}

@pkra pkra added the Question label Aug 16, 2016
@sassanh
Copy link
Author

sassanh commented Aug 16, 2016

I guess it's mathtools, please take a look at this: http://tex.stackexchange.com/questions/324906/having-a-leftrightharpoons-with-custom-length

@sassanh
Copy link
Author

sassanh commented Aug 16, 2016

\require{extpfeil} Newextarrow{\xrightharpoonup}{5,10}{0x21C0}

It didn't work in the demo dialog provided in https://www.mathjax.org/, I wrapped it with $$.

@pkra
Copy link
Contributor

pkra commented Aug 16, 2016

I guess it's mathtools,

Mathtools is not directly supported (and probably not a good name for an extension since it does a lot of text mode). But large parts of it are easy to implement (e.g., harpoons), see also #1059.

If someone wants to contribute, the best place to start would be https://github.com/mathjax/MathJax-third-party-extensions/.

I guess it's mathtools,

It works for me; you need to use the newly defined arrow, e.g., $$\require{extpfeil} \Newextarrow{\xrightharpoonup}{5,10}{0x21C0} \xrightharpoonup{x}$$..

@dpvc
Copy link
Member

dpvc commented Aug 16, 2016

@pkra, your original code was missing a backslash before Newextarrow. Might be worth editing that in in case anyone else gets to this issue looking for the answer.

@pkra
Copy link
Contributor

pkra commented Aug 16, 2016

@dpvc ah, sorry. Thanks for catching that!

@sassanh
Copy link
Author

sassanh commented Aug 16, 2016

Thanks for info, so I close this.

@sassanh sassanh closed this as completed Aug 16, 2016
@pkra pkra changed the title Support for \xrightleftharpoons Add extension (similar to) mathtools [was: Support for \xrightleftharpoons] Aug 16, 2016
@pkra
Copy link
Contributor

pkra commented Aug 16, 2016

Re-opening this as a feature request for mathtools.

@pkra pkra reopened this Aug 16, 2016
@pkra pkra added this to the Backlog milestone Aug 16, 2016
@sassanh
Copy link
Author

sassanh commented Aug 16, 2016

Oh, I thought you're not interested to add this to core. Thanks for reopening then.

@pkra
Copy link
Contributor

pkra commented Aug 16, 2016

Oh, I thought you're not interested to add this to core. Thanks for reopening then.

No problem. Let me try to clarify.

We (the MathJax team) do not have plans to work on this, thus it's only in the long-term backlog milestone (like most feature requests).

If somebody wants to contribute, they should start in the third party repo. Nevertheless, those extensions can move up into core.

Also, the third party repo's tracker isn't used much so it's better to track features here.

@dpvc
Copy link
Member

dpvc commented Mar 11, 2022

MathJax v3.2 includes a mathtools extension that implements most of the macros from the mathtools package.

@dpvc dpvc closed this as completed Mar 11, 2022
@dpvc dpvc removed this from the Backlog milestone Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants