auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Mandatory arguments in TeX/LaTeX and font locking


From: Ralf Angeli
Subject: Re: [AUCTeX-devel] Mandatory arguments in TeX/LaTeX and font locking
Date: Tue, 02 May 2006 00:37:06 +0200

* David Kastrup (2006-05-01) writes:

> Ralf Angeli <address@hidden> writes:
>
>> \newcommand{\foo}{\bar}
>> \newcommand{\foo}\bar
>> \newcommand\foo{\bar}
>> \newcommand\foo\bar
>> as being equivalent and correct?
[...]
> Still, the manual only recommends the braced versions, and in both
> instances leaving the braces off happens to work, even though this is
> used only for \foo in practice.

So there is no general rule.  Too bad.  Maybe implementing a format
specifier for something like a "relaxed" mandatory argument which
recognizes both a TeX group and a macro would help.  A cheap band-aid
as an alternative could be to do the error indication only in LaTeX
mode and not in Plain TeX mode.  Of course this won't help with the
arguments of \newcommand and similar macros not being fontified.

-- 
Ralf




reply via email to

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