Re: Symbolize and Notation
- To: mathgroup at smc.vnet.net
- Subject: [mg21382] Re: [mg21361] Symbolize and Notation
- From: Jason Harris <j.harris at phys.canterbury.ac.nz>
- Date: Fri, 31 Dec 1999 21:30:15 -0500 (EST)
- References: <199912291915.OAA03057@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
> Can someone explain why Symbolize and Notation are incompatible? > > For example: I want to use Notation so that terms like >E_subcript_x[x,y,z] display as E_subcript_x only. Using Notation as follows > > Notations[E_subscript_x <---E_subscript_x[x,y,z]] I can >accomplish this. > > However, suppose that I also want to define things like E = >{E_subcript_x[x,y,z],E_subcript_y[x,y,z],E_subcript_z[x,y,z]} then I have to >use > > Symbolize[E_]. What happens then, however, is that the Notations >definition I made up no longer works, i.e. the output becomes > > E_subscript_x[x,y,z] for example instead of E_subscript_x. > > Why are the 2 incompatible? The symbolize definition needs to be declared first since it uses a new symbol if there is a pre-existing similar symbol. Thus, it takes precedence. >Or am I doing something wrong? I've >also upgraded to the most recent Notations Utility. Just glanced in at my email... The answer is a bit tricky. I'll respond to this fully within a week... Otherwise... (I just looked at this really quickly). You might want to use a hidden box structure or something e.g. Cell[BoxData[ RowBox[{"Notation", "[", RowBox[{ TagBox[ InterpretationBox[ SubscriptBox["E", "x"], E\[UnderBracket]Subscript\[UnderBracket]x[ x, y, z]], NotationBoxTag, TagStyle->"NotationTemplateStyle"], " ", "\[DoubleLongLeftArrow]", " ", TagBox[ RowBox[{"E\[UnderBracket]Subscript\[UnderBracket]x", "[", RowBox[{"x", ",", "y", ",", "z"}], "]"}], NotationBoxTag, TagStyle->"NotationTemplateStyle"]}], "]"}]], "Input", CellLabel->"In[6]:="] There are better solutions though. More later. Happy new year everyone! Cheers, Jason
- References:
- Symbolize and Notation
- From: Blimbaum Jerry DLPC <BlimbaumJE@ncsc.navy.mil>
- Symbolize and Notation