-
Notifications
You must be signed in to change notification settings - Fork 97
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
Extensible delimiters (\left and \right) #14
Comments
I think that we'll need to store brace stack somewhere when interpreting the formula, and try to keep size of the matching braces equal. Note that different braces could match each one. E.g. Here's a good explanation of so-called "extensible delimiters" on StackExchange: http://tex.stackexchange.com/a/77593/109147 |
This is definitely a feature that should be prioritised. I'm not sure if the Java library I ported from handled this at all (actually there were two Java libraries; one for plain TeX and one for LaTeX), but it's worth a check. If not, having a look at the LaTeX source code may be informative. |
Aha, it seems like jlatexmath have support for |
Just dumping what I've found regarding this task so far. It seems that we have the atom definition for the brace-enclosed formula; it's called It looks like that I also want to add unit tests for the parser; I'll file another issue about that. |
We aren't using these definitions anyway.
We aren't using these definitions anyway.
Good work on this. I haven't looked at the implementation yet, but I'm slightly concerned that most of the brackets are implemented except for |
Ah, that's a long story. My initial implementation had some flaws, and I thought there were problems with The delimiters are implemented in a generic way (because there's already a metadata on delimiters),
|
Oh, right. Fair enough then! |
I just noticed that |
Good spot. That was definitely the problem. |
Full brace list we need to support:
\left.
\right.
(empty delimiter)\left(
\right)
\left[
\right]
\left\{
\right\}
\left<
\right>
\left|
\right|
Plan
The text was updated successfully, but these errors were encountered: