From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: bibliography as part of the source document? Date: Tue, 14 Jun 2016 21:29:00 -0500 Message-ID: References: <87lh29ymd8.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0Zl-0003PB-8X for emacs-orgmode@gnu.org; Tue, 14 Jun 2016 22:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD0Zj-0002qh-DC for emacs-orgmode@gnu.org; Tue, 14 Jun 2016 22:29:04 -0400 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:37902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD0Zj-0002qb-8R for emacs-orgmode@gnu.org; Tue, 14 Jun 2016 22:29:03 -0400 Received: by mail-it0-x22a.google.com with SMTP id h190so9827384ith.1 for ; Tue, 14 Jun 2016 19:29:02 -0700 (PDT) In-reply-to: <87lh29ymd8.fsf@skimble.plus.com> 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-13 at 13:28, Sharon Kimble wrote: > Ken Mankoff writes: >> On 2016-06-13 at 13:07, Sharon Kimble 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.