help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Fontifying latex.ltx


From: Ilya Zakharevich
Subject: Re: Fontifying latex.ltx
Date: Tue, 18 Jan 2011 07:33:04 +0000 (UTC)
User-agent: slrn/0.9.8.1pl1 (Linux)

On 2011-01-18, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 1. In the definition \def\verb{...,
>
> Indeed, the \verbC...C fontification gets triggered incorrectly there.
> Hmm...kind of a pain to try and detect such corner cases.

The user was using defadvice anyway.  Could one allow EASIER modification of
LaTeX font-lock structures on the fly, like disabling \verbC...C in
certain files?

> Overall handling LaTeX is a real nightmare, because there is no actual
> structure: \begin and \end don't have to match up, and neither do
> $...$.  They're just usually used in pairs.  Of course, you can mess up
> c-mode similarly by playing around with macros like
>
> #define LOTSOFFUN }
>
> but luckily this is not done in practice, whereas "odd" LaTeX structures
> are used even by normal LaTeX users (tho \def\verb arguably is not).

Since latex.ltx is NOT written in LaTeX... ;-)

Ilya


reply via email to

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