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

Support TeX-like \sqrt[3]{...} for roots with degrees #2225

Open
Omikhleia opened this issue Feb 5, 2025 · 0 comments
Open

Support TeX-like \sqrt[3]{...} for roots with degrees #2225

Omikhleia opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages

Comments

@Omikhleia
Copy link
Member

Omikhleia commented Feb 5, 2025

( Split from #2120 under its own topic, with a clearer title )
Since the latter, and SILE 0.15.6, we support MathML's \mroot.

In TeX-like math, we do not support \sqrt[...]{....} however.

This would require a non-trivial but interesting extension of our TeX-like math parser.

Obviously a workaround is to use \mroot{...}{....} for now (since we can mix TeX-like math and MathML).

Image

As shown, this does work, but under the principle of least astonishment, the ideal would be to support as much as possible a decent subset of the TeX math syntax, hence this issue.

Additional reference for the TeX-math case:

https://github.com/jgm/texmath/blob/master/src/Text/TeXMath/Readers/TeX.hs#L687-L691

@Omikhleia Omikhleia added the enhancement Software improvement or feature request label Feb 5, 2025
@Omikhleia Omikhleia added this to Math Feb 5, 2025
@github-project-automation github-project-automation bot moved this to To do in Math Feb 5, 2025
@Omikhleia Omikhleia added the modules:packages Issue relates to core or 3rd party packages label Feb 5, 2025
@Omikhleia Omikhleia changed the title TeX-like: \sqrt[3]{...} = Ah. Our TeX-like parser does not seem to have provision for such "optional" square-bracketed content... Support TeX-like \sqrt[3]{...} for roots with degrees Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages
Projects
Status: To do
Development

No branches or pull requests

1 participant