I am fairly competent in Mathematica, but I admit that I am baffled by Boxes
, both making boxes and converting boxes back into expressions. I want to educate myself, but the Documentation Center is uniquely unhelpful on this subject. The examples are too contrived and bear little relation to the actual utility of creating notation. Can anyone suggest a good tutorial or more complete documentation on using Boxes
to create custom expression displays and interpreting back as expressions?
-
2$\begingroup$ Take a look at this. $\endgroup$– Rohit NamjoshiJan 24, 2019 at 16:23
-
$\begingroup$ @RohitNamjoshi Interesting and informative. Sadly, it just whets my appetite more. I feel like I am missing something fundamental. $\endgroup$– Daniel WJan 24, 2019 at 20:54
2 Answers
Converting a comment to an answer for the record:
I am not aware of a better (?any at all) tutorial than Jason's Typesetting Workshop. I am not counting documentation. Otherwise you can learn a lot from great answers scattered around this site.
IntroductionToDynamic because it is important part of the FrontEnd.
Jason Harris' Advanced Typesetting workshop. This one usually comes with a slightly updated content at each Wolfram Technology conference.
You can see the boxes StadardForm uses to format expression using this.
FullForm@ToBoxes[expression]
I normally use MakeBoxes for that sort of thing and I give two non-trivial examples here.