[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LaTeX Keybindings for Math Symbols
From: |
Maarten Bergvelt |
Subject: |
Re: LaTeX Keybindings for Math Symbols |
Date: |
Thu, 27 Apr 2006 15:36:42 +0000 (UTC) |
User-agent: |
slrn/0.9.7.4 (Linux) |
In article <mailman.1028.1146150618.9609.help-gnu-emacs@gnu.org>,
Ryan Krauss wrote:
> I would like to create Latex keybindings for math symbols (or find
> out what they are if they already exist). For example, in Vim I
> used to have mappings for `t -> \tau so that typing ` and then a
> english character would insert the Latex math code for the
> corresponding greek symbol (`a would insert \alpha and `b would
> insert \beta ...).
>
> My first attempts at writing a key binding have failed:
> (global-set-key "`q" "\theta")
> leads to:
> error: "Key sequence ` q uses invalid prefix characters"
>
> So, I think part of the problem is that I need a valid set of
> short-cut keys where I can set a,b,d,t, q, w, ... versions to things.
>
> Do such mappings for latex greek characters already exist? If not,
> can someone help me with an example of a valid global-set-key?
Are you aware of the existence of AucTeX?
http://www.gnu.org/software/auctex/
It looks as if you want to reinvent the wheel. In particular if you
enter Math Mode 'a inserts \alpha.
--
Maarten Bergvelt
- Re: LaTeX Keybindings for Math Symbols,
Maarten Bergvelt <=