SuSE GmbH

SuSE Support Database

Title: Mathematica: AltGr keys doesn´t work

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

Mathematica: AltGr keys doesn´t work

The special keys, which are pushed with the modifying key AltGr (e.g. [ ] { }), possibly don't work at Mathematica.

1. Use the programm xev to find out the keysym names of the characters to configured. In this example I am using the following:

character           keysym
---------           ------
    {               braceleft
    [               bracketleft
    ]               bracketright
    }               braceright

2. Decide which key will be used with which characters to produce the characters to be configured. Here, I will use the Alt_GR key with the characters "7", "8", "9", and "0", to produce "{", "[", "]" and "}".

3. Select the X Environment InformationHelp menu, and use the Find Keys and Modifiers option to find out which Mod key the Alt_GR key is set to. In this example Alt_GR key is set to Mod2 if it is not currently set to any Mod key you can set it here.

4. Add a line to the XMathematica file in the ~Mathematica/FrontEnd directory for eachh key. Currently the file will have an entry like

*Notebook.translations: #override \n\
<Btn1Up> selection-put() \n\
<Btn1Down> selection-get()
The new lines can be added as follows:
*Notebook.translations: #override \n\
<Btn1Up> selection-put() \n\
<Btn1Down> selection-get() \n\
Mod2<Key>7: key("braceleft") \n\
Mod2<Key>8: key("bracketleft") \n\
Mod2<Key>9: key("bracketright") \n\
Mod2<Key>0: key("braceright")
This should set the key combinations Alt-GR + "7", "8", "9" ans "0". to the characters "{", "[", "]" and "}".

Additionally:

----------

Keywords: MATHEMATICA, ALTGR, KEYS, [

----------

Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-kfr_34)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-kfr_34, Copyright SuSE GmbH, Nuremberg, Germany - Version:
SuSE GmbH - Last generated: 07. Oct 1999 16:54:13 by maddin with sdb_gen 1.00.0