[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Syntax for describing LaTeX macro arguments
From: |
David Kastrup |
Subject: |
Re: [AUCTeX-devel] Syntax for describing LaTeX macro arguments |
Date: |
Sun, 18 Jun 2006 23:03:48 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> writes:
> The multiline-font-lock branch uses special specifiers for describing
> the order and type of macro arguments. The specifier for \newcommand,
> for example, looks like this: "*{}[][]{}" That means there is a
> starred version of the macro and it expects a mandatory argument
> followed by two optional arguments and another mandatory argument.
>
> For some macros like \newcommand there is the possibility that one can
> use a macro instead of a TeX group as argument. That means both
> \newcommand{\foo}{\bar} and \newcommand\foo{\bar} are valid. I'm
> currently trying to fit this possibility into the syntax for the
> specifier.
Mandatory arguments that really _need_ braces for a single token are
rather rare. They are more often than not TeX primitives.
Not sure we really need to cater for them.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum