11
$\begingroup$

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?

$\endgroup$
2
  • 2
    $\begingroup$ Take a look at this. $\endgroup$ Jan 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 W
    Jan 24, 2019 at 20:54

2 Answers 2

7
$\begingroup$

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.

$\endgroup$
3
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.