-
Notifications
You must be signed in to change notification settings - Fork 72
Under annotations #245
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
base: master
Are you sure you want to change the base?
Under annotations #245
Conversation
|
|
||
| switch (handlerResult) { | ||
| case ({ } /* dummy */, { } atoms): // Atoms producer (pre-styled) | ||
| case ( { } /* dummy */, { } atoms): // Atoms producer (pre-styled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think auto-formatting made this. It's unnecessary spacing which isn't symmetrical with the right side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idk, I didn't it manually for sure, I'm using VS code. Btw any objections with the generic name UnderAnnotation ? same gonna do later as OverAnnotation for Overbrace, Overbracket... If any better suggestion, better to suggest it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have particular opinions on the naming. Are they extensions of Underline and Overline? Maybe they can be merged together too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Abstract category naming UnderAnnotation = abstraction for \underbrace, \underbracket, \underbrace ... only Nucleus is identifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have two \underbrace in your comment. Did you mean to put \underline there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative name may be "Under" which is similar to the existing "Inner" atom. This name would be even more appropriate if the existing Underline is also made to use this.
Though I also see that an underline may not correspond to a text Nucleus directly.
| case (null, null): // Atom modifier | ||
| continue; | ||
| case ({ } resultAtom, null): // Atom producer | ||
| case ( { } resultAtom, null): // Atom producer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
|
@Happypig375 Implementation might take a few days, especially display part is a quite complicated, on a Mathify I've spent more then week :) I'll do a small commits, please track all my commits for better quality and quick fixes. |
|
@Happypig375 Just ran the dotnet format command on a core CSharpMath.csproj , and it broght changes on 53 files, similar to what it changed that you commented already. Lats first resolve problem with autoformatting. I'm using vs code ide, which ide do you use and which formatters? don't want to bring lots of formatting changes on my pr
|
|
@hflexgrig I just use Visual Studio and it formats things on the fly. You can pull request all the auto formatting. The unnecessary space should be fixed though. |
…rpMath into under_annotations

Here in this pr I'll try to bring under annotations ( \underbrace, \underbracket ) with display and latex support