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

Parentheses or brackets size adaptation in display math #1799

Open
Omikhleia opened this issue May 8, 2023 · 0 comments
Open

Parentheses or brackets size adaptation in display math #1799

Omikhleia opened this issue May 8, 2023 · 0 comments
Labels
question Ask for advice or investigate solutions

Comments

@Omikhleia
Copy link
Member

Omikhleia commented May 8, 2023

Standalone parentheses or brackets in (display) math automatically adopt a "big" scale if needed around content:

\math[mode=display]{(\frac{a}{b})}

image

However, they lose this capability if the expression gets (subscript or) superscripts, e.g. gets elevated to some power:

\math[mode=display]{(\frac{a}{b})^2}

image

Adding extra brackets around the parenthetical part sort of works, but the power is not raised higher (as e.g. TeX would do after a \bigg)) so it doesn't seem to be a fully satisfying workaround:

\math[mode=display]{{(\frac{a}{b})}^2}

image

My expectation (image manually tweaked) would have been:
image

Is there a proper way to achieve it?

image

@Omikhleia Omikhleia added the question Ask for advice or investigate solutions label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Ask for advice or investigate solutions
Projects
Status: To do
Development

No branches or pull requests

1 participant