* 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

_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to