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)
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex