reftex and noweb -- solution

Markus Jäntti markus.jantti at iki.fi
Mon Jul 22 13:35:55 CEST 2002


To those who, like me, wand to edit files for Sweave mode
using ess, noweb, AUCTeX, bibcite and reftex:

The author of reftex, Carsten Dominick, suggested (see forwarded
message below) that the variable reftex-file-extensions be set in
.xemacs/init.el as follows (along with a modification for auctex):

(setq reftex-file-extensions '(("Rnw" "nw" "tex" ".tex" ".ltx") ("bib"
".bib")))
(setq TeX-file-extensions '( "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi"
"texinfo"))

this works for me using the noweb-mode that is distributed with
ess.

( in the sense that reftex parses the file correctly
and all commands i have tried so far generate expected results...)

hope someone may find this helpful. 

markus

-----Forwarded Message-----

From: Carsten Dominik <dominik at astro.uva.nl>
To: Markus Jäntti <markus.jantti at iki.fi>
Subject: Re: reftex and noweb (file extension?)
Date: 22 Jul 2002 12:20:29 +0200

>>>>> "n" == ntti  <Markus> writes:

n> On Fri, 2002-07-19 at 15:53, Carsten Dominik wrote:
>> 
>> 
>> Hi,
>> 
>> RefTeX currently does not work with noweb files.  I don't know why -
>> it is on my list.

n> Hi -- thanks for the swift reply. It would be nice to be able
n> to use reftex with noweb, but in the absence of any actual
n> coding help, the options include waiting.


I just looked at it again, and for me the following seems to work:


(setq reftex-file-extensions '(("nw" "tex" ".tex" ".ltx") ("bib"
".bib")))

If you are running AUCTeX, you need to add also the nw extension to
AUCTeX's loist of file extensions.

(setq TeX-file-extensions '( "nw" "tex" "sty" "cls" "ltx" "texi"
"texinfo"))


Let me know if this does the trick for you - I have not extensively
tested it.

- Carsten

--
Carsten Dominik <dominik at astro.uva.nl>          \ _ /
Sterrenkundig Instituut "Anton Pannekoek"        |X|               _
Kruislaan 403; NL-1098 SJ Amsterdam             /| |\   _  _     _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___
-- 
Markus Jantti
Statistics Finland and University of Tampere
markus.jantti at iki.fi
http://www.iki.fi/~mjantti

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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