[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: |
Mon, 8 Sep 2014 11:10:10 +0200 |
Dnia 2014-09-07, o godz. 20:49:27
Emanuel Berg <embe8573@student.uu.se> napisaĆ(a):
> Teemu Likonen <tlikonen@iki.fi> writes:
>
> > Probably you need to use LaTeX-mode-hook variable
> > instead. It's different from latex-mode-hook (note
> > the letter case difference).
>
> Indeed, but how so? And why?
>
> I always used the latex-mode-hook and it works for the
> major mode that I use for LaTeX, logically named
> LaTeX-mode:
>
> LaTeX mode defined in `tex-mode.el':
> Major mode for editing files of input for LaTeX.
>
> I know there are other modes for LaTeX, most notably
> AUCTeX that seems to be more popular than latex-mode.
> (To me it is not really an issue since all I need is
> syntax highlighting, basically, as well as the mode
> itself so I can setup certain options and a couple of
> dufuns.)
>
> Is AUCTeX what Kimble is using? If not, what? And, why
> is that called something that can be confused
> (apparently) with the latex-mode stuff?
AFAIK, latex-mode is the built-in, very limited LaTeX mode, and
LaTeX-mode is the AUCTeX's one (which is much, much better - think
autocompletion, for instance). Also the texmathp function. And
parsing of \usepackage[...]{inputenc}. And more.
> Case-sensitiveness is a good thing but it doesn't mean
> it makes sense to have one "ls" command and one "LS"
> command and one "lS" and one "Ls".
I guess AUCTeX might call latex-mode-hook, too.
Best
PS. Also, don't use \em, \bf & friends. They are evil. See e.g.
http://tex.stackexchange.com/questions/25911/what-is-the-difference-between-em-and-emph
and
http://tex.stackexchange.com/questions/11199/why-different-commands-for-seemingly-similar-tasks
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University