[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: latex-mode hook?

From: Marcin Borkowski
Subject: Re: latex-mode hook?
Date: Tue, 9 Sep 2014 09:51:51 +0200

Dnia 2014-09-08, o godz. 23:54:35
Emanuel Berg <address@hidden> napisaƂ(a):

> Marcin Borkowski <address@hidden> writes:
> > and LaTeX-mode is the AUCTeX's one
> > (which is much, much better think autocompletion
> I
> I think
> I think not

C-c C-e enum TAB RET

and you get


How is that not a win?  And it even understands your \newcommand and
\newenvironment invocations.

> > Also the texmathp function.
> > And parsing of \usepackage[...]{inputenc}. And more.
> What are those?

texmathp (as the name implies?) returns t if the point is in math mode
and nil otherwise.  It knows about $...$, \(...\), \[...\],
\begin{equation} ... \end{equation}, it handles $...$ inside
\text{...} inside \[...\] etc. correctly...  See here: for two possible applications.

In AUCTeX, if I have \usepackage[cp1250]{inputenc} near the beginning,
the buffer is automatically put in the respective encoding.  It's not
a big deal in English-speaking countries, I guess, but here in Poland,
where Windoze uses CP-1250, old Linux files use ISO-8859-2 and
everyone else uses UTF-8, it's /very/ convenient.


Marcin Borkowski
Adam Mickiewicz University

reply via email to

[Prev in Thread] Current Thread [Next in Thread]