bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classe


From: Patrick Drechsler
Subject: Re: [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes
Date: Sat, 15 Oct 2005 20:40:39 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Ralf Angeli wrote on 15 Oct 2005 11:24:14 MET:

> * Patrick Drechsler (2005-10-15) writes:
>
>> Ralf Angeli wrote on 14 Oct 2005 08:56:11 MET:
>>
>>> * Patrick Drechsler (2005-10-13) writes:
>>>
>>>> I was wondering if somebody could help me suppress syntax
>>>> highlighting of the math environment within a certain macro?
>>> [...]
>>>> Here is the value: \Sexpr{b$p.value} some more text.
>>>
>>> I'd add this macro to `LaTeX-verbatim-macros-with-braces'.
>>
>> Thanks, this got me on the right track.
>>
>> Customizing `font-latex-verbatim-macros' solved my problem. I
>> could not find `LaTeX-verbatim-macros-with-braces'. Is this a cvs
>> feature?
>
> Yes.  `LaTeX-verbatim-macros-with-braces' replaces
> `font-latex-verbatim-macros'.
>
>> Here is a situation were it still gives unwanted fontification:
> [...]
>> not fine: $P=\Sexpr{b$p.value}$ some text in verbatim color.
> [...]
>> Everything after the last `$' is fontified as verbatim.
>
> Good heavens!  That's a tough one.  Frankly I don't know a good way
> how to fix this.  As a workaround you can write
>
>   \(P=\Sexpr{b$p.value}\)
>
> instead of
>
>   $P=\Sexpr{b$p.value}$

I can life with this workaround, thank you Ralf!

Cheers

Patrick
-- 
The only difference between the saint and the sinner is that every saint
has a past and every sinner has a future.
                -- Oscar Wilde




reply via email to

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