Hello everyone,
On my french AZERTY keyboard, some keys are dead by default. This includes the ‘^’ key and is necessary for circumflexes such as î or ê. However, when in math mode, circumflexes are seldom needed; in math mode, I'd rather have the ‘^’ not dead, in order to easily type exponents. Worse, in fact TM behaves strangely when one tries to type a character which can't be circumflexed, it doesn't display anything: when typing ‘^{’ on my keyboard, nothing appears.
So I though the easiest solution would be to override the ‘^’ key with a snippet in scope string.other.math.latex, but the shortcut doesn't seems to work. Any other solution?
Oh, and while I'm at it. I found it really useful to bound a ~ snippet to alt-space - ~ is a dead key too on my keyboard. I was wondering if it was worth including this in the LaTeX bundle. And the X ~> \Xi command completion is lacking in my version of the package. Why is that?
As always, thanks for your help, Édouard
Édouard Gilbert wrote:
On my french AZERTY keyboard, some keys are dead by default.
I suppose "if you're programming you'll be happier in the long run just switching to a US keyboard layout" is probably not the answer you're looking for? ;)
In response to your question, I'm not sure that TM can really do much about this; the dead keys are as far as I know intercepted at a lower level than TM has access to. If you want to expend some effort, you could try making your own keyboard layout using a tool like [Ukelele][1], based on the french layout, but which uses e.g. ⌥^ for the ˆ dead key.
-Jacob
[1]: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele