all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maarten Bergvelt <bergv@math.uiuc.edu>
Subject: Re: LaTeX Keybindings for Math Symbols
Date: Thu, 27 Apr 2006 15:36:42 +0000 (UTC)	[thread overview]
Message-ID: <slrne51p8a.q3h.bergv@bolmikolke.math.uiuc.edu> (raw)
In-Reply-To: mailman.1028.1146150618.9609.help-gnu-emacs@gnu.org

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		

       reply	other threads:[~2006-04-27 15:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1028.1146150618.9609.help-gnu-emacs@gnu.org>
2006-04-27 15:36 ` Maarten Bergvelt [this message]
2006-04-27 15:52   ` LaTeX Keybindings for Math Symbols Ryan Krauss
2006-04-27 15:10 Ryan Krauss
2006-04-27 16:25 ` Reiner Steib
2006-04-27 17:10   ` Ryan Krauss
2006-04-27 21:48     ` Reiner Steib
     [not found]   ` <mailman.1033.1146157859.9609.help-gnu-emacs@gnu.org>
2006-04-27 19:03     ` Maarten Bergvelt
2006-04-27 20:04       ` Ryan Krauss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrne51p8a.q3h.bergv@bolmikolke.math.uiuc.edu \
    --to=bergv@math.uiuc.edu \
    --cc=bergv@uiuc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.