Skip to content

Conversation

@hflexgrig
Copy link
Contributor

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

image


switch (handlerResult) {
case ({ } /* dummy */, { } atoms): // Atoms producer (pre-styled)
case ( { } /* dummy */, { } atoms): // Atoms producer (pre-styled)
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

@Happypig375 Happypig375 Jan 27, 2026

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator

@Happypig375 Happypig375 Jan 27, 2026

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@hflexgrig
Copy link
Contributor Author

@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.

@hflexgrig
Copy link
Contributor Author

@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

image

@Happypig375
Copy link
Collaborator

Happypig375 commented Jan 27, 2026

@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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants