|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
MakeBoxes
MakeBoxes[expr, form]
is the low-level function used in Mathematica sessions to convert expressions into boxes.
MakeBoxes[expr]
is the function to convert expr to StandardForm boxes.
DetailsDetails
- MakeBoxes does not evaluate expr.
- form can be StandardForm, TraditionalForm, or any other format represented using boxes.
- You can give definitions for MakeBoxes[expr, form] to specify your own rules for how expressions should be converted to boxes. »
- MakeBoxes is not automatically called on the results it generates. This means that explicit MakeBoxes calls must typically be inserted into definitions that are given.
- If you change the output format for an expression by giving a definition for MakeBoxes, there is no guarantee that output you get will subsequently be able to be interpreted by Mathematica.
- Definitions you give for MakeBoxes will override built-in Mathematica rules for generating output.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
Box representation of a polynomial:
| In[1]:= |
| Out[1]= |
Box representation of a graphic:
| In[1]:= |
| Out[1]= |
A special function in StandardForm and TraditionalForm:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
New in 3
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

