emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to find out in Elisp which .bib file is used for the current org buffer?
@ 2016-11-18 15:49 Joost Kremers
  2016-11-18 19:43 ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Joost Kremers @ 2016-11-18 15:49 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi all,

If you're writing a scientific document in Org, you'll normally 
have a .bib file that you use for your references. What I'd like 
to know is: is there a (robust) way to find out if a specific Org 
buffer has a .bib file associated with it?

In a LaTeX file, you can usually find this out by looking for a 
\bibliography command or, if you use biblatex, for 
\addbibresource. I'm wondering what the canonical way is to 
specify this for an Org file.

TIA

Joost
 


-- 
Joost Kremers
Life has its moments

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find out in Elisp which .bib file is used for the current org buffer?
  2016-11-18 15:49 How to find out in Elisp which .bib file is used for the current org buffer? Joost Kremers
@ 2016-11-18 19:43 ` John Kitchin
  2016-11-25 11:47   ` Joost Kremers
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2016-11-18 19:43 UTC (permalink / raw)
  To: Joost Kremers; +Cc: emacs-orgmode@gnu.org

It depends on how you put citations in I guess. If you use org-ref, then
there is a bibliography link or a latex_header with addbibresource.
Otherwise, it is one of the files defined in
org-ref-default-bibliography.

I am not sure about the ox-bibtex setup.

Joost Kremers writes:

> Hi all,
>
> If you're writing a scientific document in Org, you'll normally 
> have a .bib file that you use for your references. What I'd like 
> to know is: is there a (robust) way to find out if a specific Org 
> buffer has a .bib file associated with it?
>
> In a LaTeX file, you can usually find this out by looking for a 
> \bibliography command or, if you use biblatex, for 
> \addbibresource. I'm wondering what the canonical way is to 
> specify this for an Org file.
>
> TIA
>
> Joost


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to find out in Elisp which .bib file is used for the current org buffer?
  2016-11-18 19:43 ` John Kitchin
@ 2016-11-25 11:47   ` Joost Kremers
  0 siblings, 0 replies; 3+ messages in thread
From: Joost Kremers @ 2016-11-25 11:47 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org

Hi,

[Sorry for the late reply, I've been rather busy...]

On Fri, Nov 18 2016, John Kitchin wrote:
> It depends on how you put citations in I guess. If you use 
> org-ref, then
> there is a bibliography link or a latex_header with 
> addbibresource.
> Otherwise, it is one of the files defined in
> org-ref-default-bibliography.
>
> I am not sure about the ox-bibtex setup.

Ok, so there's no single method that will always work. Thanks for 
the info. It doesn't solve my problem but at least I know where to 
start looking. :-)

-- 
Joost Kremers
Life has its moments

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-25 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 15:49 How to find out in Elisp which .bib file is used for the current org buffer? Joost Kremers
2016-11-18 19:43 ` John Kitchin
2016-11-25 11:47   ` Joost Kremers

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).