From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: setting default BibTex file Date: Mon, 02 Apr 2012 11:10:57 -0400 Message-ID: <24889.1333379457@alphaville> References: <4F79924C.9000202@hafro.is> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEiuQ-0008M1-93 for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 11:11:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEiuN-0004Oh-Nr for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 11:11:05 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:12265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEiuN-0004OR-HD for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 11:11:03 -0400 In-Reply-To: Message from suvayu ali of "Mon, 02 Apr 2012 15:53:20 +0200." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: Julian Burgos , nicholas.dokos@hp.com, emacs-orgmode@gnu.org suvayu ali wrote: > Hey Julian, > > On Mon, Apr 2, 2012 at 13:49, Julian Burgos 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