[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Fwd: Noweb mode
From: |
Zozette Milane |
Subject: |
[AUCTeX] Fwd: Noweb mode |
Date: |
Mon, 26 Sep 2011 08:54:38 +0200 |
Hi,
I have found a solution for my problem.
In my preferences.el, I have added :
*************
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . latex-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . latex-mode))
(setq reftex-file-extensions
'(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
(setq TeX-file-extensions
'("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
***************
My foo.Rnw opens in Auctex without Noweb-mode and Noweb-menu.
For the compilation of my foo.Rnw I have customized Auctex (TeX-command--->
Tex-command-list :
I have added a command with name "Sweave"
command : /usr/local/bin/Sweave.sh -nc -ld %t
Value menu : TeX-run-command
Previously, you need to find on the web the Sweave.sh script, put it in
/usr/local/bin and make it executable.
Next, in my Preferences.el I have added
***************
(defun mysweave ()
"Fonction qui appelle directement sweave pour une compilation."
(interactive)
(TeX-command "Sweave" 'TeX-master-file
))
***************
and bound it to (control-c) (s)
Milane
Le 25 sept. 2011 à 21:26, Jonas Stein a écrit :
>> Dear all,
>> I'am currently working on foo.Rnw files on Aquamacs.
>> When I open such a file, Auctex turns on a Noweb-mode which seems to be in
>> conflict with my favorite cdlatex mode.
>> For me Noweb-mode is useless.
>> Is it possible to make AucTeX understand that my foo.Rnw files are pure
>> LaTeX files (despite the Rnw extension) and prevent it from loading noweb
>> mode?
>>
>> Another way is to solve the conflict between Noweb and cdlatex ;-)
>>
>> Nota : my foo needs to keep the Rnw extension for compilation with Sweave.
>>
>> Milane ...
>> Keep in mind that I'am just a user who does not understand the bowels of
>> Emacs:-(
>
> i would be interested in a solution too.
> It would be perfect, if emacs could switch between TeX and
> Gnu-R Modes in noweb-Files.
>
> --
> Jonas Stein <address@hidden>
>
>
> _______________________________________________
> auctex mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/auctex
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX] Fwd: Noweb mode,
Zozette Milane <=