When I input
{{1,0},{0,1}} // MatrixForm
and then m = %;
, the value that m
takes is the actual matrix (list of lists), rather than MatrixForm[...]
.
Example:
In[1]:= {{1, 0}, {0, 1}} // MatrixForm
In[2]:= Head[%]
Out[2]= List
I have defined my own wrapper myForm
to display expressions in a particular form, and I would like to duplicate this behavior: I would like %
to take the value before myForm
is applied. Is this possible?
$OutputForms
. This works at least in 10.1, but I make no claims about robustness:Unprotect[$OutputForms]; AppendTo[$OutputForms, myForm]; Protect[$OutputForms];
$\endgroup$