emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: Julian Burgos <julian@hafro.is>,
	nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: setting default BibTex file
Date: Mon, 02 Apr 2012 11:10:57 -0400	[thread overview]
Message-ID: <24889.1333379457@alphaville> (raw)
In-Reply-To: Message from suvayu ali <fatkasuvayu+linux@gmail.com> of "Mon, 02 Apr 2012 15:53:20 +0200." <CAMXnza2cUcRv5JdqAtTzfX5rwrz2Yq-0RxDP1EhxSHi+hy7cgA@mail.gmail.com>

suvayu ali <fatkasuvayu+linux@gmail.com> wrote:

> Hey Julian,
> 
> On Mon, Apr 2, 2012 at 13:49, Julian Burgos <julian@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

  reply	other threads:[~2012-04-02 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 11:49 setting default BibTex file Julian Burgos
2012-04-02 13:53 ` suvayu ali
2012-04-02 15:10   ` Nick Dokos [this message]
2012-04-25 11:36     ` Eric Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24889.1333379457@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    --cc=julian@hafro.is \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).