Re: MakeBoxes on v7.0
- To: mathgroup at smc.vnet.net
- Subject: [mg97124] Re: [mg97107] MakeBoxes on v7.0
- From: "David Park" <djmpark at comcast.net>
- Date: Fri, 6 Mar 2009 04:22:32 -0500 (EST)
- References: <5450977.1236247102044.JavaMail.root@m02>
Try this: MakeBoxes[h[i_], form : StandardForm | TraditionalForm] := InterpretationBox[#1, #2] & @@ {SubscriptBox["h", MakeBoxes[i, form]], h[i]} David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: Mariano Su=E1rez-Alvarez [mailto:mariano.suarezalvarez at gmail.com] Hi all, after executing this on v7.0 h /: MakeBoxes[h[i_], StandardForm] := SubscriptBox[h, MakeBoxes[i, StandardForm]] evaluating h[4] results not in an h with a subscript, but in Global`h with the expected subscript. Is that intentional? This code is very close to an example in the documentation for MakeBoxes... -- m