Re: Silly question about Contexts

*To*: mathgroup at smc.vnet.net*Subject*: [mg84205] Re: Silly question about Contexts*From*: apetrov at wayne.edu*Date*: Thu, 13 Dec 2007 14:49:18 -0500 (EST)*References*: <fjq06j$n75$1@smc.vnet.net> <fjr2pd$52q$1@smc.vnet.net>

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...