auctex
[Top][All Lists]
Advanced

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

[AUCTeX] adding personnal macros with Auctex


From: François Patte
Subject: [AUCTeX] adding personnal macros with Auctex
Date: Thu, 03 Jul 2014 09:33:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bonjour,

I would like to know if there is an easy way (ie. a tutorial with
examples...) to have a syntax highlighting for my own macros.


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.

Thank you.

- -- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlO1B1kACgkQdE6C2dhV2JWR5QCgrUC+b0An9gLr7MnKgNCk61hQ
inoAoNOlpT328kvYWyym5BFukl/EkGTt
=CEuI
-----END PGP SIGNATURE-----



reply via email to

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