auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] adding personnal macros with Auctex


From: Ralf Angeli
Subject: Re: [AUCTeX] adding personnal macros with Auctex
Date: Thu, 03 Jul 2014 21:54:06 +0200

* François Patte (2014-07-03) writes:

> For instance, I would like to add some lines to my .emacs file to get
> this result: I create a command \foo and I want to be able to have
> \foo with a special color and
>
> \foo[arg1-with my color1]{arg2 with my color 2}
>
> Up to now, I have found this model on the web:
> (setq font-latex-match-reference-keywords
>   '(
>     ("foo" "[{")))
>
> but I want to change the colors for the command itself and for its
> arguments.

You can select your own colors for mandatory arguments of a LaTeX macro
by customizing `font-latex-user-keyword-classes', see
(info "(auctex)Fontification of macros").  Selecting other colors for
the command itself and the optional arguments is not easily possible,
though.

-- 
Ralf



reply via email to

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