[ESS] Sweave, Emacs GNU
istazahn at gmail.com
Tue Jan 19 15:16:11 CET 2010
On Windows I think you need sweave.bat instead of sweave.sh. See
You'll also need to edit
"Sweave" "~/script/Sweave.sh -ld -nc %s"
to point to sweave.bat
On Tue, Jan 19, 2010 at 9:02 AM, E T <2nuzzbot at gmail.com> wrote:
> If anyone can please give advice on adding "Sweave" to the command menu in
> Emacs GNU, it would be greatly appreciated.
> I was working on a mac and had "sweave" in the command drop-down menu of
> Aquamacs ... by using the code below. However I do not know how to apply
> on a windows platform. Please help.
> 1) Typing the following in the terminal:
> sudo chmod +x ~/script/Sweave.sh
> 2) Typing the following in the Aquamacs preference file:
> '(reftex-plug-into-AUCTeX t)
> '(text-mode-hook (quote (text-mode-hook-identify)))
> (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
> (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" t)
> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
> (add-hook 'latex-mode-hook 'turn-on-reftex)
> (add-hook 'Rnw-mode-hook
> (lambda ()
> (add-to-list 'TeX-command-list
> '("Sweave" "~/script/Sweave.sh -ld -nc %s"
> TeX-run-command nil t :help "Run Sweave") t)
> (setq TeX-command-default "Sweave")))
> [[alternative HTML version deleted]]
> ESS-help at stat.math.ethz.ch mailing list
University of Rochester
Department of Clinical and Social Psychology
More information about the ESS-help