auctex-devel
[Top][All Lists]
Advanced

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

Re: patch to support title, author etc in amsart


From: Tassilo Horn
Subject: Re: patch to support title, author etc in amsart
Date: Sat, 03 Sep 2022 10:13:10 +0200
User-agent: mu4e 1.9.0; emacs 29.0.50

Uwe Brauer <oub@mat.ucm.es> writes:

> Please see the attached patch, it is very simple

...and also wrong, I think.

--8<---------------cut here---------------start------------->8---
+     (font-latex-add-keywords '(("curraddr" "\\{")
+                                ("contrib" "\\{")
+                                ("email" "\\{")
+                                ("dedicatory" "\\{")
+                                ("keywords" "\\{")
+                                ("subjclass" "[{")
+                                ("thanks" "\\{")
+                                ("urladdr" "[{"))
+                              'function)))
--8<---------------cut here---------------end--------------->8---

The docs of font-latex-built-in-keyword-classes say about the syntax
arg:

     It can contain "*" if the macro has a starred variant, "[" for an
     optional argument, "{" for a mandatory argument, and "\" for a
     macro.  A "|" means the following two tokens should be regarded as
     alternatives.

So your specs "\\{" say that after \email comes one macro and then one
mandatory argument, e.g., \email\foobar{my@email.invalid}.  I guess
that's not correct and you only want "{".

Bye,
Tassilo



reply via email to

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