[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Abbreviations and backslash
From: |
David Kastrup |
Subject: |
Re: Abbreviations and backslash |
Date: |
Fri, 30 Jun 2006 12:51:52 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Hodei Usabiaga" <hodei@euskalerria.org> writes:
> Hi everybody,
>
> Is it possible to include a backslash in the abbreviation under emacs? e.g.
> "\a" is replaced by "\alpha"
>
> I tried to introduce something like
> (define-abbrev-table 'text-mode-abbrev-table '(
> ;abbreviations to long letters in the Greek alphabet
> ("\\a" "\\alpha" nil 0)
> ("\\b" "\\beta" nil 0)
> ))
>
> in the abbreviation file, but the abbreviation doesn't work. It
> seems that emacs do not accept any backslash character as an
> abbreviation. However, I find those abbreviations very useful in
> order to write documents under Latex.
This is not a direct help, but AUCTeX
<URL:http://www.gnu.org/software/auctex> has
C-c ~ runs the command LaTeX-math-mode
which is an interactive compiled Lisp function in `latex.el'.
It is bound to C-c ~, <menu-bar> <LaTeX> <Math Mode>.
(LaTeX-math-mode &optional ARG)
A minor mode with easy access to TeX math macros.
Easy insertion of LaTeX math symbols. If you give a prefix argument,
the symbols will be surrounded by dollar signs. The following
commands are defined:
key binding
--- -------
` Prefix Command
` C-b LaTeX-math-leftarrow
` C-c LaTeX-math-cos
` C-d LaTeX-math-det
` C-e LaTeX-math-exp
` C-f LaTeX-math-rightarrow
` C-l LaTeX-math-lim
` C-n LaTeX-math-downarrow
` C-p LaTeX-math-uparrow
` C-s LaTeX-math-sin
` C-t LaTeX-math-tan
` C-^ LaTeX-math-sup
` C-_ LaTeX-math-inf
` & LaTeX-math-wedge
` ( LaTeX-math-langle
` ) LaTeX-math-rangle
` * LaTeX-math-times
` + LaTeX-math-cup
` - LaTeX-math-cap
` . LaTeX-math-cdot
` / LaTeX-math-not
` 0 LaTeX-math-emptyset
` : LaTeX-math-colon
` < LaTeX-math-leq
` > LaTeX-math-geq
` A LaTeX-math-forall
` D LaTeX-math-Delta
` E LaTeX-math-exists
` F LaTeX-math-Phi
` G LaTeX-math-Gamma
` I LaTeX-math-infty
` J LaTeX-math-Theta
` L LaTeX-math-Lambda
` N LaTeX-math-nabla
` P LaTeX-math-Pi
` S LaTeX-math-Sigma
` U LaTeX-math-Upsilon
` W LaTeX-math-Omega
` X LaTeX-math-Xi
` Y LaTeX-math-Psi
` [ LaTeX-math-subseteq
` \ LaTeX-math-setminus
` ] LaTeX-math-supseteq
` ^ LaTeX-math-hat
` ` self-insert-command
` a LaTeX-math-alpha
` b LaTeX-math-beta
` c LaTeX-math-cal
` d LaTeX-math-delta
` e LaTeX-math-epsilon
` f LaTeX-math-phi
` g LaTeX-math-gamma
` h LaTeX-math-eta
` i LaTeX-math-in
` j LaTeX-math-theta
` k LaTeX-math-kappa
` l LaTeX-math-lambda
` m LaTeX-math-mu
` n LaTeX-math-nu
` p LaTeX-math-pi
` q LaTeX-math-chi
` r LaTeX-math-rho
` s LaTeX-math-sigma
` t LaTeX-math-tau
` u LaTeX-math-upsilon
` w LaTeX-math-omega
` x LaTeX-math-xi
` y LaTeX-math-psi
` z LaTeX-math-zeta
` { LaTeX-math-subset
` | LaTeX-math-vee
` } LaTeX-math-supset
` ~ LaTeX-math-tilde
[back]
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum