Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Remediate stacking of sub- and superscripts.#78

Merged
Daniel-Diaz merged 2 commits intoDaniel-Diaz:masterfrom
leftaroundabout:master
May 13, 2016
Merged

Remediate stacking of sub- and superscripts.#78
Daniel-Diaz merged 2 commits intoDaniel-Diaz:masterfrom
leftaroundabout:master

Conversation

@leftaroundabout
Copy link
Copy Markdown
Collaborator

@leftaroundabout leftaroundabout commented Apr 20, 2016

ec9a178 enforced braces around the a in a_b. This prevents the LaTeX error of double subscripts in expressions like a_b_c, but unfortunately it also prohibits the commonly used pattern a_b^c from getting rendered a c stacked over b. Also, it outright breaks integrals with limits.

To bring back this functionality without also enabling the LaTeX errors again, I introduced a new operator !^, for stacked sub- and superscript.
Also, I patched sumFromTo etc. to apply their limits as raw sub- and superscripts.

ec9a178 enforced braces around the `a` in `a_b`. This prevents the LaTeX error of double subscripts in expressions like `a_b_c`, but unfortunately it also broke the commonly used pattern `a_b^c` (which is supposed to stack `c` over `b`). Also, it outright breaks integrals with limits.

To bring back this functionality without also enabling the LaTeX errors again, I introduced a _new_ operator `!^`, for stacked sub- and superscript.
Also, I patched `sumFromTo` etc. to apply their limits as `raw` sub- and superscripts.
This is useful for embedding actual text (sentences!) into math environments.
@Daniel-Diaz Daniel-Diaz merged commit 768ec6d into Daniel-Diaz:master May 13, 2016
@Daniel-Diaz
Copy link
Copy Markdown
Owner

Thanks! I'm still unsure about adding brackets automatically without the user knowing with subscripts and superscripts. However, I definitely like the idea of having a sub- and superscript combined combinator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants