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 00:27:39 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

I'm not sure if my last reply was sent, so forgive me if it's
posted twice.

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?


Here is a situation were it still gives unwanted fontification:

--8<------------------------schnipp------------------------->8---
\documentclass{scrartcl}
\begin{document}

some text

@ 
<<>>=
a <- randn(10)
b <- shapiro.test(a)
@ %def 

fine: \Sexpr{b$p.value}

not fine: $P=\Sexpr{b$p.value}$ some text in verbatim color.

still in verbatim color\ldots

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
--8<------------------------schnapp------------------------->8---

Everything after the last `$' is fontified as verbatim.

Any ideas?

Patrick
-- 
Schwerer als Luft? Flugmaschinen sind unmöglich.
        -- Lord Kelvin, Präsident der Royal Society (1895)




reply via email to

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