Hi,

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
this
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]]

