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

frac{12} #42

Open
primayanuaristya opened this issue Sep 15, 2023 · 3 comments
Open

frac{12} #42

primayanuaristya opened this issue Sep 15, 2023 · 3 comments

Comments

@primayanuaristya
Copy link

Why if math field \frac{1}{2} return \frac12?
If \sqrt{\frac{1}{2}} return \sqrt{\frac{12}}

@primayanuaristya
Copy link
Author

Screenshot_2023-09-15-23-24-07-216_com android chrome

Only single numerator or denumerator

@arnog
Copy link
Member

arnog commented Sep 15, 2023

In LaTeX, some commands can have "single-token arguments", including \frac and \sqrt. This means that \frac12 is identical to \frac{1}{2} and \sqrt2 is identical to \sqrt{2}. Wether to use single-token variants or not is a style preference. The MathLive serializer uses the shorthand version when the numerator and denominator are both single digits.

@primayanuaristya
Copy link
Author

In LaTeX, some commands can have "single-token arguments", including \frac and \sqrt. This means that \frac12 is identical to \frac{1}{2} and \sqrt2 is identical to \sqrt{2}. Wether to use single-token variants or not is a style preference. The MathLive serializer uses the shorthand version when the numerator and denominator are both single digits.

how make single with {} for example \sqrt{4} not \sqrt4 withouth regex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants