suvayu ali <fatkasuvayu+li...@gmail.com> wrote: > Hey Julian, > > On Mon, Apr 2, 2012 at 13:49, Julian Burgos <jul...@hafro.is> wrote: > > But if I add this to my .emacs file > > > > (setq reftex-default-bibliography > > (quote("home/julian/Documents/Refs/BibTex/References"))) > > > > and this to the end of my org file > > > > \bibliographystyle{plain} > > \bibliography{} > > > > When I do the LaTex export I get an "undefined citations" error. > > Any ideas? > > Org-mode doesn't use reftex for its export. Unless that setting > actually includes the \bibliography{..} in the exported tex file, I > don't think that will have any effect. Actually in the docstring for > the variable I see it says: > > *List of BibTeX database files which should be used if none are > specified. When `reftex-citation' is called from a document which has > neither a `\bibliography{..}' statement nor a `thebibliography' > environment, RefTeX will scan these files instead. Intended for using > `reftex-citation' in non-LaTeX files. The files will be searched along > the BIBINPUTS or TEXBIB path. > > I think this *only* helps you insert the citations with reftex, you > still have to have that line in the tex file. >
... but you can shorten it by setting BIBINPUTS in your .profile/.login/whatever and then using \bibliography{References} in your .org/.tex files. Nick