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: Tue, 14 Jun 2016 21:29:00 -0500
User-agent: mu4e 0.9.17; emacs 24.5.1

On 2016-06-13 at 13:28, Sharon Kimble <address@hidden> wrote:
> Ken Mankoff <address@hidden> writes:
>> On 2016-06-13 at 13:07, Sharon Kimble <address@hidden> wrote:
>>> I'm trying to have all my information for a org-mode document
>>> exported to latex contained within the source document. Specifically
>>> having the bibliography within the source document.
>>>
>>> But how do I do it? I've tried googling but haven't turned up
>>> anything useful. Can you help please?
>>
>> What about putting the BibTeX contents in the Org file. Tangle on
>> export to Bib file.
>>
>
> Yes, that's what I'm trying to do, but how do I tangle it?

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

  -k.



reply via email to

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