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


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

Reply via email to