tags:

views:

179

answers:

2

Hi, i would like to now how can i get the suggestion when i do a \cite in emacs-auctex. The minibuffer tells me when i do C-c [ that "No valid bibliography in this document, and no default available". So how can i set this default?, i have a separated file with my bibtex references that is call by a master document, and i want the suggestion for any of the other files included.

A: 

The variable reftex-default-bibliography is what defines the default bibliography to use. I don't do much with mult-file documents, do you have reftex-plug-into-AUCTeX turned on?

Ivan Andrus
yes that is the variable that i need it to modify. I wrote an answer with the details of how i do it, because for "size" i couldn't put it here like a comment.
voodoomsr
A: 

yes modifying this variable is a solution (i don't know if it is the "best solution"). I go to the ref menu -> Customize ->Browse Reftex Group -> Reftex Citacion Support -> Reftex Default Bibliography and then i add the path to the bib file (without the .bib extension) and it works!! This options create this in the init file:

(custom-set-variables

'(reftex-default-bibliography (quote ("D:/mybibdirectory/mybibfile")))) (custom-set-faces

)

Well perhaps that it works now that suggestions going to appear in every document that i write. It would be good have a solution only for this document.

Reading the help file of reftex (reftex->finding files)also mention make the next modifications in order to get the suggestions:

(setq reftex-bibpath-environment-variables '("D:/mybibdirectory/"))

voodoomsr