I want to set up a part of my Mathematica package so that typing <-Space is replaced with the left arrow character (← or \[LeftArrow]) just like it does with ->Space. Does anyone know how to do this? I looked briefly at event handling but didn't see anything immediately useful. I already know, of course, that Esc<-Esc will insert ←, and that doing so is not that much additional effort, but I'm more interested in the concept involved here. Any ideas?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
|
|
Normally you could use:
But this fails because Mathematica already parses
You can see that this setting works for other strings, e.g.:
Then typing (with a space):
Will render:
|
||||
|
|

