[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reftex, auctex, and multiple files
From: |
Jason Earl |
Subject: |
Re: reftex, auctex, and multiple files |
Date: |
Wed, 08 Dec 2010 15:33:21 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
On Sun, Oct 24 2010, knubee wrote:
> i am trying to use reftex in a multi-file document. whenever i try "C-
> C[" i get the error "No valid bibliography in this document, and no
> default available."
Do you have a file test-bib.bib?
> the documentation here:
> http://www.gnu.org/software/auctex/manual/reftex/Multifile-Documents.html
> says to add file variables. however, this has not solved the problem
> for me. (i am running the latest version of emacs from bzr on ubuntu
> 10.04 with auctex 11.86 if that makes any difference).
I am running that exact same setup, and when I added a test-bib.bib then
things started to work. In the limited testing that I did even adding
an empty file test-bib.bib made the error message go away.
> below is example from two test files. any suggestions?
>
> test-main.tex:
>
> \documentclass{article}
> \begin{document}
> \input{test-chapter}
> \bibliographystyle{abbrv}
> \bibliography{test-bib}
> \end{document}
>
> test-chapter.tex :
>
> %%% Local Variables:
> %%% mode: LaTex
> %%% TeX-master: "test-main.tex"
> %%% End:
One other thing. Reftex apparently does not reparse the files unless
you ask it to. If you add a test-bib.bib file and still get the error
message you need to go to the Ref menu, choose "Parse Document"->"Entire
Document". Or you could just restart Emacs.
Good luck, and thanks for the question. I had not played with this
stuff for a while, and it was interesting to experiment with a almost
working example.
Jason