From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: setting default BibTex file Date: Mon, 2 Apr 2012 15:53:20 +0200 Message-ID: References: <4F79924C.9000202@hafro.is> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhtP-0006QS-6i for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 10:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEhhY-00088q-Qd for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 09:54:48 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:46172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhhY-00087y-J2 for emacs-orgmode@gnu.org; Mon, 02 Apr 2012 09:53:44 -0400 Received: by yenm8 with SMTP id m8so1363603yen.0 for ; Mon, 02 Apr 2012 06:53:42 -0700 (PDT) In-Reply-To: <4F79924C.9000202@hafro.is> 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: Julian Burgos Cc: emacs-orgmode@gnu.org 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. Hope this helps. -- Suvayu Open source is the future. It sets us free.