I have the same issue as described in


So basically whenever I use AltGr to write [ or ] in Mathematica, it automatically creates one blank space before the bracket symbol. The above fix, however, crashes my Mathematica on startup, I get the error message:

A serious error has occurred while Mathematica was starting up. Mathematica will probably not function properly until this problem is resolved. You may choose to continue anyway, but Mathematica may crash or exit without warning

There was a syntax error on line 10 in text resource KeyEventTranslations. The error was: @@resource KeyEv

For me this error message is no help, since it says that the code from the blog I linked above does not work, but gives no clues to what exactly is wrong. Did anyone here encounter the same problem, or has any ideas?

Important info: This occurs on a QWERTZ keyboard layout.

  • $\begingroup$ Well, I cannot really help you, but just to note that this problem does not occur on a UK keyboard. There are no problems in that case with characters typed using AltGr. $\endgroup$ May 28, 2015 at 12:58
  • $\begingroup$ Oh I completely forgot to include that I am using a QWERTZ keyboard layout. Sorry, I will edit that in. $\endgroup$ May 28, 2015 at 13:04

1 Answer 1


I just had the same problem - I copy and pasted the line from your link but it produced the error. The reason is that you need to exchange the quotation marks to the usual vertical ones. Hopefully this will solve the problem and Thank you for directing me to the solution!

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[{:

    Sequence[], After]}] ],

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.