Skip to main content
10 events
when toggle format what by license comment
Mar 8, 2017 at 20:25 comment added b3m2a1 @Mr.Wizard (per your mention of not having looked at the Notation` internals in a while) all it does is coerce the boxes to a string representation (in the case of Subscripts this is x\[UnderBracket]Subscript\[UnderBracket]*) and then applies MakeBoxes and MakeExpression in the way one would expect. This means you can easily clear all such variables via Clear@"x\[UnderBracket]Subscript\[UnderBracket]*".
Jul 15, 2016 at 1:11 comment added Mr.Wizard @H.R. If you use the TagSet method the rule is attached to e.g. a, and if a is in the Global context ClearAll["Global*"] will clear that rule.
Jul 14, 2016 at 16:18 comment added Hosein Rahnama Is there any way that we could clear by ClearAll["Global*"]?
Jan 6, 2015 at 3:59 comment added Mr.Wizard @Manuel--Moe--G That would work but usually it is better to use e.g. a[5] which makes conversion in either direction much simpler and faster. However there are places (like Module) that actual Symbols are needed. Also, I haven't looked at the internals of the Notation palette in some years but I seem to recall that the use of Symbolize is performing this kind of translation itself, such that Symbols are used in place of Subscripts during computation, then formatted again as Subscripts for output, so look at that before you "reinvent the wheel" as it were.
Jan 5, 2015 at 19:00 comment added Manuel --Moe-- G is it good MMA form to convert subscript as quickly as possible to something like a5 and then at the last step for output output the result with a subscript, so do the majority of manipulations with identifiers like a5?
Feb 1, 2012 at 2:51 history edited Mr.Wizard CC BY-SA 3.0
added 177 characters in body
Feb 1, 2012 at 2:37 vote accept Osiris Xu
Jan 30, 2012 at 18:38 comment added murray It's worth noting that you can directly type a shortcut for subscripts, but I don't know how to show this here. Namely: a<sub>3</sub> = "lion"; where "<sub>3</sub> should be an actual subscript, typed in the Mathematica Front End by first typing Ctrl _ .
Jan 30, 2012 at 18:12 history migrated from stackoverflow.com (revisions)
Jan 29, 2012 at 17:59 history answered Mr.Wizard CC BY-SA 3.0