Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Silly question about Contexts

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84194] Re: Silly question about Contexts
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 13 Dec 2007 05:49:02 -0500 (EST)
  • References: <fjq06j$n75$1@smc.vnet.net>


Hi Peter,

instead of a symbol, you could give a string to display:

InterpretationBox[SubscriptBox["r", 2], r2]

But note that this can not be read back into mathematica

hope this helps, Daniel



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

> 




  • Prev by Date: Re: Silly question about Contexts
  • Next by Date: Re: Returning a local array
  • Previous by thread: Re: Silly question about Contexts
  • Next by thread: Re: Silly question about Contexts