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

MathGroup Archive 2009

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

Search the Archive

Re: MakeBoxes on v7.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97144] Re: MakeBoxes on v7.0
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 6 Mar 2009 04:26:08 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <goo7k8$sgi$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

h /: MakeBoxes[h[i_], StandardForm] :=
  SubscriptBox[MakeBoxes[h, StandardForm], MakeBoxes[i, StandardForm]]

??

Regards
   Jens

=EF=BF=BD wrote:
> 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
>
>


  • Prev by Date: Re: Epilog doesn't work with loglinearplot
  • Next by Date: Differential equation with several variables in the function
  • Previous by thread: MakeBoxes on v7.0
  • Next by thread: Re: MakeBoxes on v7.0