[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Preview and noweb
From: |
Markus Jantti |
Subject: |
Re: [AUCTeX] Preview and noweb |
Date: |
Thu, 06 Apr 2006 12:23:28 +0300 |
preview works with my setup using the setup reported below
from my message to the list of
Re: [AUCTeX] Problems with path?
Markus Jantti
Mon, 27 Mar 2006 13:52:53 -0800
I do regularly set TeX-master manually, as the file variables do not get
it to work as it should -- if the generated file foo.tex exists.
But with that set, it works like a charm on my .Rnw files.
Regards,
Markus
___________________________________
Am running:
GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2005-10-03 on trouble, modified by Debian
My AUCTeX and reftex related variables from .emacs are
;; auctex
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook #'LaTeX-install-toolbar)
;; reftex
;
(autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
(autoload 'reftex-citation "reftex" "Do citation with RefTeX" t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
(setq reftex-enable-partial-scans t)
(setq reftex-save-parse-info t)
(setq reftex-use-multiple-selection-buffers t)
(setq reftex-plug-into-AUCTeX t)
; check documentation on bibtex and reftex
(autoload 'turn-on-bib-cite "bib-cite")
(add-hook 'LaTeX-mode-hook 'turn-on-bib-cite)
;; (setq bib-novice nil)
;; ---
;; If you wish bib-cite to use reftex's reftex-view-crossref command to
;; display and find \label's and \cite bibliography entries, set the
variable
;; bib-cite-use-reftex-view-crossref to t:
;;
(setq bib-cite-use-reftex-view-crossref t)
;; for noweb and latex
(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))
;; new try for reftex alpha experiments, see e-mail from Carsten Dominik
;; 2006-02-13
(setq reftex-file-extensions '(("tex" . (".Rnw" ".tex" ".ltx"))
("bib" . (".bib"))))
(setq reftex-try-all-extensions t)
;; end
(setq TeX-file-extensions
'("Rnw" "tex" "ltx" "sty" "cls" "ltx" "texi" "texinfo"))
;; this should be unnecessary
(setq reftex-label-alist '(AMSTeX))
--
Markus Jantti
Abo Akademi University
address@hidden
http://www.iki.fi/~mjantti
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/