Mathematica 7.0 has a known issue with the Alt-Gr button with non-US keyboards. When you use Alt-Gr to type, for instance, square brackets it also adds a space in front of the newly created bracket. Hence, if you type “Alt-Gr + è” in an Italian keyboard, you will obtain ” [” instead of simply “[“. This is due to the fact that Alt-Gr behaves as the spacebar when it is pressed.
To remove this issue, open as root the file:
“/usr/local/Wolfram/Mathematica/7.0/SystemFiles/FrontEnd/TextResources/X/
KeyEventTranslations.tr”
and add the following new line after “EventTranslations[{“:
Item[KeyEvent[“ISO_Level3_Shift”], FrontEndExecute[{FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], Sequence[], After]}] ],
User said:
Thank you very much!
Solved the problem!
Guillaume said:
Thanks a lot, this works !! (i’ve been searching for this for a long time…)
Petr said:
Thans too.
gauthma said:
Thanks, fixed it!
Jeroen Van Goey said:
Thanks, works like a charm!
Hjalmar said:
I got the same problem with , (comma) whenever Alt+Gr is pressed.
Any idea how to fix that?
Thanks, Hjalmar
Giovanni said:
Ti stimo…
teodor said:
Thanks, the riddle is solved!