On Dec 13, 5:50 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:
> Hi,
>
> r2 /: MakeBoxes[r2, fmt_] :=
> InterpretationBox[SubscriptBox["r", 2], r2];
>
> ??
>
> Regards
> Jens
>
> Peters wrote:
> > Hi,
>
> > Sorry for this question, but is there any way to suppress display of Context in the Mathematica 6 output? In particular, I define:
>
> > r2/:MakeBoxes[r2,fmt_]:=InterpretationBox[SubscriptBox[r,2],r2];
> > r2
>
> > and Mathematica returns
>
> > Subscript[Global`r, 2]
>
> > which is correct, but clutters my output a lot (as I have many of those). Is there any way to make it just display Subscript[r,2] without showing Context? It used to be like that in Mathematica 4...
I use it to define a vector (in a geometrical sense) which I later
work with - so it is a variable, not just used for printing purposes.
I have many variables like that, so that's why the output is kinda
cluttered... the weird thing is that it worked just fine in Math4...