[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes
From: |
Patrick Drechsler |
Subject: |
[Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes |
Date: |
Thu, 13 Oct 2005 22:36:25 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.
Be sure to consult the FAQ section in the manual before submitting
a bug report. If the bug (or problem) is triggered by a specific
(La)TeX file, you should try to produce a minimal sample file
showing the problem and include it in your report.
Your bug report will be posted to the AUCTeX bug reporting list.
------------------------------------------------------------------------
Hello,
I was wondering if somebody could help me suppress syntax
highlighting of the math environment within a certain macro?
The macro \Sexpr{} is used by Sweave to include R code in
LaTeX documents. The `$' symbol can be used within the \Sexpr as
R syntax (having nothing to do with LaTeX's math
environment). Running LaTeX works fine. But AUCTeX's syntax
highlighting kicks in...
Here is an example file junk.Rnw (junk.Rnw -> via Sweave ->
junk.tex):
--8<------------------------schnipp------------------------->8---
\documentclass{article}
\begin{document}
@
<<echo=TRUE>>=
a <- rnorm(10)
b <- shapiro.test(a)
b
@ %def
Here is the value: \Sexpr{b$p.value} some more text.
% ^
\end{document}
--8<------------------------schnapp------------------------->8---
Every character after `b$' is colored as math in the Rnw file. The
resulting tex file includes the number. But with this work flow
one does normally not look into the tex file.
If experimented with `font-latex-user-keyword-classes' but with
no success.
In case you need more information do not hesitate to ask.
Any pointers?
TIA
Patrick
Emacs : GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.6.4)
of 2005-10-09 on trurl
Package: 11.81
current state:
==============
(setq
AUCTeX-date "2005-09-25"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style" "auto"
"/usr/local/share/emacs/site-lisp/auctex/style" "/usr/local/var/auctex")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("clean" "rm %s.bm %s.log *.aux %s.out %s.lof
%s.lot %s.toc %s.bbl %s.blg %s.dvi %s.ps %s.2.ps %s.pdf"
TeX-run-command nil t)
("Clean"
"rm %s.log *.aux %s.out %s.exa %s.ilg %s.idx
%s.ind %s.lof %s.lot %s.toc %s.bbl %s.blg %s.dvi %s.ps %s.2.ps %s.pdf
%s.nav %s.snm" TeX-run-command nil t)
("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input
%t\"" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
:help "Run plain TeX")
("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX
nil (latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t"
TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML
output")
("AmSTeX" "%(PDF)amstex %S%(PDFout)
\"%(mode)\\input %t\"" TeX-run-TeX nil (ams-tex-mode) :help "Run
AMSTeX")
("ConTeXt" "texexec --once --texutil
%(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt
once")
("ConTeXt Full" "texexec %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion")
("ConTeXt Clean" "texutil --purgeall"
TeX-run-interactive nil (context-mode) :help "Clean temporary ConTeXt
files")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("View" "%V" TeX-run-discard t t :help "Run
Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View
the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t
:help "Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t
:help "Create index file")
("Check" "lacheck %s" TeX-run-compile nil
(latex-mode) :help "Check LaTeX file for correctness")
("Spell" "<ignored>" TeX-run-ispell-on-document
nil t :help "Spell-check the document")
("Other" "" TeX-run-command t t :help "Run an arbitrary
command"))
)
--
"Science knows only one commandment: contribute to science."
-- Bertolt Brecht, "Galileo".
- [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes,
Patrick Drechsler <=