On Fri, Dec 05, 2003 at 05:16:32PM +0100, [EMAIL PROTECTED] wrote:
> > Try 'ert-insert' which is usually bound to C-l.
> 
> This did the trick.
> \bind "numbersign"      "ert-insert"
> 
> However, it binds regardless of whether I am in math mode or not.

We don't have 'local' keybindings (yet...)

> Next idea is
> \bind "numbersign"      "self-insert \\"
> \bind "backslash"       "self-insert #"
> 
> And indeed, in text mode # inserts \ and Alt-Gr � inserts # while in math
> mode, # does the same as C-l, i.e. ert-insert.
> 
> It looks like the math mode has some special handling of keys that cannot
> be changed by the user. 

Yes.

> -> Feature request: a \mathbind command, that binds a key only in math
> mode, e.g.
> 
> \mathbind "numbersign"      "ert-insert"

This is a long standing request....

Andre'

Reply via email to