emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bibliography as part of the source document?


From: Ken Mankoff
Subject: Re: [O] bibliography as part of the source document?
Date: Wed, 15 Jun 2016 07:25:49 -0500
User-agent: mu4e 0.9.17; emacs 24.5.1

On 2016-06-14 at 21:29, Ken Mankoff <address@hidden> 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 <some_known_language>", 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]