Robert Goldman <[email protected]> writes:

Hi Robert,

> I would like to be able to change the face used to display the
> ARGUMENT to a latex macro.
>
> In particular, we commonly use \hide{} to wrap old text that we are
> not formatting.  This is less cumbersome than the % line comments, but
> it's hard to tell if large blocks of text are active or not.  So I
> would like to gray it out by assigning it a face like "shadow."
>
> I thought that font-latex-user-keyword-classes would let me do this,
> but it seems like it sets the face for the keyword itself, rather than
> the arguments.

Hm, no, according to the docs it sets the face for the macro arguments
if the macro type is command.  So basically this should do the trick:

(setq font-latex-user-keyword-classes
      '(("shadow-hidden" (("hide" "{")) 'shadow command)))

However, it doesn't work for me.  Not sure what's wrong...

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to