On 2016-06-13 at 13:28, Sharon Kimble <boudic...@skimble.plus.com> wrote: > Ken Mankoff <mank...@gmail.com> writes: >> On 2016-06-13 at 13:07, Sharon Kimble <boudic...@skimble.plus.com> 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.