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 left..right construct #2179

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

Omikhleia
Copy link
Member

@Omikhleia Omikhleia commented Nov 24, 2024

This PR supports TeX's \left...\right construct in SILE's TeX-like syntax.

It is proposed both under the principle of least astonishment, and for existing equations in LaTeX syntax, often using this construct, to be supported as-is.
I included a test scenario, which show its use, incl. with unpaired delimiters, and with the period as "null delimiter".

Regarding other tests: In my booklet, I had set \left and \right as no-op with a \def, so I didn't have to remove these from all my test formulas... I just removed that hack, and all reprocessed fine.
Moreover, these formulas from Josephus Javawaski's Browser Test now pass really decently:

image

image

The first (in TeX syntax, similar to the MathML case shown in #2177 (comment)) was passing but without the appropriate stretch on the vertical bars.

The second was not rendering as expected, as it uses a few null delimiters (e.g. \right.) which my no-op hack of course didn't cancel out (the period was rendered), besides the same vertical bar sizing issue as the previous.

It thus ticks a checkbox in #2148 -- and there's then one only left there, but I'll discuss it afterwards in that ticket (I think what we have is actually better)

@Omikhleia Omikhleia requested review from a team and alerque as code owners November 24, 2024 16:34
@Omikhleia Omikhleia self-assigned this Nov 24, 2024
@Omikhleia Omikhleia added the enhancement Software improvement or feature request label Nov 24, 2024
@Omikhleia Omikhleia added this to the v0.15.7 milestone Nov 24, 2024
@alerque alerque merged commit e7158e4 into sile-typesetter:master Nov 25, 2024
21 checks passed
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants