editing Sweave files in xemacs with ess (noweb), auctex and reftex

Stephen Eglen eglen at pcg.wustl.edu
Wed Jul 17 17:08:23 CEST 2002


Markus Jäntti writes:
 > I am having some trouble getting reftex, in particular the bibtex
 > related features, to work properly in xemacs when editing text in Sweave
 > files. I have added
 > 
 > (defun Rnw-mode ()
 >   (noweb-mode)
 >   (if (fboundp 'R-mode)
 >       (setq noweb-default-code-mode 'R-mode)))
 > (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
 > (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode))
 > 
 > in my .xemacs/init.el file, as suggested by the Sweave manual FAQ. 
 > 
 > While this most likely involves reftex/ess interaction, I wondered
 > if someone on these lists is successfully using the combination
 > AUCTeX LaTeX-mode/bib-cite/reftex in xemacs 21.4.8 and ess 5.1.20
 > (on a GNU/Linux Debian unstable system). 

I had a similar same problem.  I couldn't get M-x reftex-toc to work.
One tiny problem may have been that it was looking for file.Rnw.tex
rather than file.Rnw -- so I added the following to the end of my .rnw
file:

%%% Local Variables:
%%% mode: latex
%%% TeX-default-extension: "Rnw"
%%% End:

This seemed to get the reftex-toc to work, but I recall having
problems getting other reftex cite commands to work.

Let us know if you get any further.

Stephen

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list