[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Highlighting user-defined macros
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX] Highlighting user-defined macros |
Date: |
Mon, 16 Apr 2007 19:01:17 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux) |
* sven bretfeld (2007-04-15) writes:
> Can anybody show me how I can define highlighting rules for my own
> LateX macros in my .emacs. I hate this customize-group thing, since I
> don't understand it anyway (I've tried it for an hour now).
What did you try exactly?
> For example, I have two self-defined functions I want to highlight in
> .tex-files:
>
> \mybox{text}
> \agendum{text1}{text2}
>
> How can I, for example, give "text" in the mybox-argument a red color,
> and the "text1" of \agendum a red color and "text2" a yellow
> background?
Assigning different colors to different arguments of the same macro is
currently not supported.
> Maybe somebody can sent me a coding example from his/her own .emacs. I
> will find out the rest.
Using the customize interface is really the easiest way in this case.
--
Ralf