auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Problems with path?


From: Markus Jantti
Subject: Re: [AUCTeX] Problems with path?
Date: Fri, 24 Mar 2006 13:27:50 +0200

Hi -- I did start writing the documentation but unfortunately ran out of
steam. Will attempt to honour my commitment as soon as possible. 

In the meanwhile, I have encountered the same problem (which, again, I
was going to report once I had enough time to do a proper investigation
into its nature).

The problem is that the new version of RefTeX does correctly treat noweb
files (in my case, so-called Sweave files). But for some reason, it does
not honour the AUCTeC variables 

%% Local Variables:
%% mode: latex
%% TeX-master: "thesismain" 
%% End:

My solution (in wait of being able to provide a proper bug report)
has been to explicitly set TeX-master, in this case to 

M-x set-variable TeX-master to "thesismain"

after which things such as file parsing and so on work as they should. 

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

====================

Regards,

Markus
On Fri, 2006-03-24 at 09:01 +0100, Carsten Dominik wrote: 
> >
> 
> This might be a problem with RefTeX.  I have recently worked with 
> Markus Jantti to make RefTeX swallow noweb files and extensions.  In 
> the end we got it to work with some modifications to RefTeX.
> 
> I believe you need to use the latest reftex from my webpage and the 
> following configuration:
> 
> > (setq reftex-file-extensions  '(("tex" . (".Rnw" ".tex" ".ltx"))
> >                                                     ("bib" . (".bib")))
> >
> > (setq reftex-try-all-extensions t)
> 
> Markus wanted to write up some documentation about this, I am sending a 
> CC to him, maybe he wants to comment?
> 
> - Carsten
> 
> On Mar 24, 2006, at 8:36, Fredrik Karlsson wrote:
> 
> > Hi,
> >
> > I use AUCTeX for editing mixed TeX and Noweb (which are converted to
> > TeX-files by an external make file)  files.  Using this, I find that I
> >  have two problems with the Multifile-capability of AUCTeX:
> >
> > 1) Everytime I cross a \ref for the first time, I get prompted for a
> > master file, even though I got
> >
> > %% Local Variables:
> > %% mode: latex
> > %% TeX-master: "thesismain"
> > %% End:
> >
> > at the bottom of the file being edited and
> >
> > %%% Local Variables:
> > %%% mode: latex
> > %%% TeX-master: t
> > %%% End:
> >
> > at the end of thesismain.tex
> >
> > 2) When trying to generate a TOC from reftex, I get a minimal TOC:
> >
> >
> >  File thesismain.tex starts here
> >  File childspeech was not found
> >  File background was not found
> >  File method was not found
> >  Part I Voicing contrast in production
> >  File voicing was not found
> >  File aspforce was not found
> >  File aspvotinteraction was not found
> >  File individualdiff was not found
> >  Part II Acquisition of place and manner of articulation
> >  File place was not found
> >  File manner was not found
> >  File plavemannervoice was not found
> >  File clusterCompl was not found
> >      * \Large Author Index
> >  File thesismain.tex ends here
> >
> > even though the files are in the same direcory. AUCTeX cannot even
> > find the file I generated the TOC from, but LaTeX has no problem
> > finding any of the files. This is the input:
> >
> > %----------------------------------------------
> > \include{childspeech}
> > %Covers the method used and why.
> > \include{background}
> > %Covers the execution of the method
> > \include{method}
> > \part{Voicing contrast in production}
> > \label{PART:voic-contr-prod}
> >
> > \include{voicing}
> > \include{aspforce}
> > \include{aspvotinteraction}
> > \include{individualdiff}
> >
> > \part{Acquisition of place and manner of articulation}
> > \label{PART:acuis-place-mann}
> >
> > \include{place}
> > \include{manner}
> > \include{plavemannervoice}
> > \include{clusterCompl}
> > %----------------------------------------------
> >
> > These two issues may have something to do with an incorrect path being
> > set in AUCTeX/RefTeX that is correct for LaTeX. I have checked the
> > TeX-check-path
> >
> > #--------------------------------------------------------------------
> > `TeX-check-path' is a variable declared in Lisp.
> >   -- loaded from "tex"
> >
> > Value: ("./" "/home/fredrik/.texmf/bibtex/bib/" 
> > "/usr/local/lib/texmf/tex/")
> >
> > Documentation:
> > Directory path to search for dependencies.
> >
> > If nil, just check the current file.
> > Used when checking if any files have changed.
> > #--------------------------------------------------------------------
> >
> >
> > Are there other paths I should check? Any other ideas?
> >
> > I am running XEmacs 21.4 (patch 12), AUCTeX 1.33 and RefTeX 1.28.
> >
> > /Fredrik
> >
> >
> > --
> > My Gentoo + PVR-350 + IVTV + MythTV blog is on
> > http://gentoomythtv.blogspot.com/
> >
> >
> > _______________________________________________
> > auctex mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/auctex
> >
> >
> 
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
> 
> 
-- 
Markus Jantti
Abo Akademi University
address@hidden
http://www.iki.fi/~mjantti





reply via email to

[Prev in Thread] Current Thread [Next in Thread]