-
Notifications
You must be signed in to change notification settings - Fork 3
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
MakeBoxes for Submanifold #2
Comments
Resolving my MyFun[MyThing[x_]] := x;
MyThing /: MakeBoxes[s_MyThing, StandardForm] := MakeBoxes[MyFun[s], StandardForm];
MyThing[1] When
One possible workaround is MyThing /: MakeBoxes[MyThing[x_], StandardForm] := MakeBoxes[x, StandardForm] However, I'd prefer if I could create this by calling |
|
Indeed, |
You're welcome! |
Do you (e.g. @okofish) happen to know if there is a way to detect if an expression needs to be wrapped in parenthesis before being displayed as a subexpression? For example, |
Alright, 09ed0a7#diff-a2c244be0060c3069d6f099d31408ae79a518d514b74163ea30eb589c747ac96R62-R67 resolves parenthesizing of |
It sounds like you solved the parentheses issue, but some ideas anyways:
Random note: this documentation page is a good read about precedence of built-in syntax, including the arcane variety. |
Currently, there is an issue regarding how
MakeBoxes
displaysSubmanifold
elements havingSymbol
coefficients.If
MakeBoxes
is used on theCoefficient
of theSubmanifold
, then for thea
symbol it is printed as$CellContext`a
.Additionally, I would like to use
InterpretationBox[Selectable -> ...]
but I have not successfully implemented that yet.The text was updated successfully, but these errors were encountered: