* Abbreviations and backslash
@ 2006-06-30 10:32 Hodei Usabiaga
0 siblings, 0 replies; 2+ messages in thread
From: Hodei Usabiaga @ 2006-06-30 10:32 UTC (permalink / raw)
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.
So, does anybody know how to include those kind of abbreviations in the
abbreviation list?
Note: the following lines were added in emacs file.
(setq-default abbrev-mode t)
;enable abbreviations
(setq save-abbrevs t)
;save abbreviations upon exiting emacs
(setq abbrev-file-name "~/abbreviations.el")
;the file storing the abbreviations
(if (file-readable-p abbrev-file-name)
;read the abbreviations every
(read-abbrev-file abbrev-file-name)
;time emacs is started
)
The previous commands, the abbreviations commands included, seem to work
under Xemacs as shown in www.math.umn.edu/~aoleg/emacs/latex.shtml.
Help, will be very much appreciated.
Thanks,
Hodei
_________________________________________________________
Lortu posta elektronikoa doan >>> http://www.euskalerria.org
___________________________________________________________________________________________
Lortu posta elektronikoa doan >> http://www.euskalerria.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Abbreviations and backslash
[not found] <mailman.3558.1151663648.9609.help-gnu-emacs@gnu.org>
@ 2006-06-30 10:51 ` David Kastrup
0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2006-06-30 10:51 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-30 10:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-30 10:32 Abbreviations and backslash Hodei Usabiaga
[not found] <mailman.3558.1151663648.9609.help-gnu-emacs@gnu.org>
2006-06-30 10:51 ` David Kastrup
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).