Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Silly question about Contexts

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84176] Silly question about Contexts
  • From: Peters <apetrov at wayne.edu>
  • Date: Wed, 12 Dec 2007 19:58:31 -0500 (EST)

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: Invert Black/White Colors of Binary Images
  • Next by Date: Re: Implementing own data functions
  • Previous by thread: Re: Simplifying an expression - with my own definition of what
  • Next by thread: Re: Silly question about Contexts