From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: bibliography as part of the source document? Date: Wed, 15 Jun 2016 07:25:49 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD9tK-0005Zd-37 for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 08:25:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD9tJ-0004xF-4V for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 08:25:53 -0400 Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:34677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD9tI-0004x9-Vl for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 08:25:53 -0400 Received: by mail-io0-x22d.google.com with SMTP id 5so20979278ioy.1 for ; Wed, 15 Jun 2016 05:25:52 -0700 (PDT) In-reply-to: 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" To: Sharon Kimble Cc: org-mode-email On 2016-06-14 at 21:29, Ken Mankoff wrote: > I don't know how to tell Org to tangle-on-export with an argument or a > setting, but it can evaluate code blocks on export, and one of those > can do the tangling for you. The following might work? > > #+begin_src emacs-lisp :exports none > (org-babel-goto-named-src-block "bibtex") > (org-babel-tangle) > #+end_src > > #+begin_src bibtex :tangle file.bib > bib contents go here > #+end_src Oops. Consider the above pseudo-code. The bibtex block must be named, so that (org-babel-goto-NAMED...) can find it. And I'm not sure what "#+begin_src bibtex" actually means to Org. It might have to be a #+BEGIN_EXAMPLE or a "#+BEGIN_SRC ", but tangled to a .Bib file. If running latest Git head, it might also need ":eval no-export" on the bibtex block. Hopefully this is enough to help you solve it. Feel free to post an MWE if you get it working. -k.