From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: One more question on bibliographies in Org Date: Tue, 18 Jun 2013 16:29:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uox1R-0007SB-Iz for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UowvK-0005qV-Ce for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:31:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:48019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UowvK-0005q6-3H for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 10:30:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UowvD-0005et-BJ for emacs-orgmode@gnu.org; Tue, 18 Jun 2013 16:30:11 +0200 Received: from 140.77.141.73 ([140.77.141.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jun 2013 16:30:11 +0200 Received: from vbeffara by 140.77.141.73 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jun 2013 16:30:11 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Following the recent trend on the list, although this is not a question about BibTeX as such, nor about the syntax to use for references within the text, but rather about how to integrate references in an Org file to be easily exportable. For now, a central database is not part of the question, copy-and-paste is ok. The target would be mainly HTML and TeX export. Here is a sketch: For HTML: \cite{ABC09} would be mapped to a link to the bibliography, something like [ABC09] (regardless of whether there is such a reference). The bibliography itself would be part of the HTML page, typically like footnotes right at the end, with some structure kept (but styling would be done by ad-hoc CSS so nothing much needed here). For TeX: AMSRefs sounds good because it makes the .tex file self-contained. \cite{ABC09} kept as it is, and the bibliography would be a \begin{bibdiv}/\end{bibdiv} generated from the .org file. The main question is: what would be a convenient way to store the references in the .org file, to allow for easy editing and exporting ? Idea 1: A new block type #+begin_biblio containing the data in whatever form (but amsrefs makes sense, easily parsable for html export and nothing to be done for tex export). While we're at it, maybe also #+begin_bibentry if it helps cross-backend support. Idea 2: #+begin_src amsrefs, and leverage babel for the output. But I'm not sure if babel can act differently according to the export backend being used? Idea 3: A heading with tag :biblio:, which would be treated as a special case at some point in the export, and containing one sub-heading per bib entry, with properties storing the database like in org-bibtex (and possibly unexported contents for notes). This gives access to structure manipulation, refile, column view ... which would be awesome, but I'm not sure how it would fit the export framework. Which one would be best? Which one would be easiest to implement? I'm willing to try a bit of coding, but the first step is the hardest ... Cheers, /vincent -- Vincent Beffara From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Barbay Subject: Re: One more question on bibliographies in Org Date: Wed, 19 Jun 2013 12:21:01 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpHO7-00054q-5M for emacs-orgmode@gnu.org; Wed, 19 Jun 2013 08:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpHO3-0005ty-8o for emacs-orgmode@gnu.org; Wed, 19 Jun 2013 08:21:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:59446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpHO3-0005ts-24 for emacs-orgmode@gnu.org; Wed, 19 Jun 2013 08:21:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UpHO0-000313-VZ for emacs-orgmode@gnu.org; Wed, 19 Jun 2013 14:21:17 +0200 Received: from pc-100-46-47-190.cm.vtr.net ([190.47.46.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jun 2013 14:21:16 +0200 Received: from jbarbay by pc-100-46-47-190.cm.vtr.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Jun 2013 14:21:16 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Vincent Beffara ens-lyon.fr> writes: > The main question is: what would be a convenient way to store the > references in the .org file, to allow for easy editing and exporting ? What I have done so far is to use some bibtex blocks, which tangle to an external bib files. It is sometime useful to have the bibliography divided in separate sections inside the org file. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: Re: One more question on bibliographies in Org Date: Thu, 20 Jun 2013 15:38:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upf4j-0005tX-H0 for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 09:39:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Upf4e-0001uw-OC for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 09:38:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:45121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upf4e-0001uo-Hw for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 09:38:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Upf4R-0004Iw-T5 for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 15:38:39 +0200 Received: from 192.33.214.216 ([192.33.214.216]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jun 2013 15:38:39 +0200 Received: from vbeffara by 192.33.214.216 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jun 2013 15:38:39 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org >> The main question is: what would be a convenient way to store the >> references in the .org file, to allow for easy editing and exporting >> ? > > What I have done so far is to use some bibtex blocks, which tangle to > an external bib files. It is sometime useful to have the bibliography > divided in separate sections inside the org file. That sounds good for purely LaTeX/PDF exports, thanks for the suggestion. Now, how to do it for HTML ? Is it possible to choose the tangle format / destination depending on the current export backend ? -- Vincent Beffara From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: One more question on bibliographies in Org Date: Sat, 22 Jun 2013 18:42:05 -0700 Message-ID: <8738s9k3gy.fsf@berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqZKU-0000OB-Q6 for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 21:42:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqZKT-0002Cf-G9 for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 21:42:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:44432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqZKT-0002C6-9v for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 21:42:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UqZKR-00056y-6d for emacs-orgmode@gnu.org; Sun, 23 Jun 2013 03:42:55 +0200 Received: from c-50-161-39-52.hsd1.ca.comcast.net ([50.161.39.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 03:42:55 +0200 Received: from richard.lawrence by c-50-161-39-52.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 03:42:55 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Vincent Beffara writes: > The main question is: what would be a convenient way to store the > references in the .org file, to allow for easy editing and exporting ? Have you looked at org-bibtex? It stores bibliographic data as properties. I keep a separate Org headline for each reading I do, under which I write notes, etc. I use org-bibtex to store the bibliographic data for each of these entries, and a custom elisp function (which basically just maps org-bibtex-headline over these entries) to generate a .bib file on demand. I imagine it would be easy enough to modify org-bibtex to also provide an export bibliographic data to some HTML-friendly format. -- Best, Richard From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: One more question on bibliographies in Org Date: Sat, 22 Jun 2013 19:11:38 -0700 Message-ID: <87y5a1inj9.fsf@berkeley.edu> References: <8738s9k3gy.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqZmx-0005QO-Ss for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 22:12:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqZmw-0004j7-RY for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 22:12:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:42305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqZmw-0004j3-Kc for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 22:12:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UqZmv-0007MO-UD for emacs-orgmode@gnu.org; Sun, 23 Jun 2013 04:12:21 +0200 Received: from c-50-161-39-52.hsd1.ca.comcast.net ([50.161.39.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 04:12:21 +0200 Received: from richard.lawrence by c-50-161-39-52.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 04:12:21 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Richard Lawrence writes: > I imagine it would be easy enough to modify org-bibtex to also provide > an export bibliographic data to some HTML-friendly format. Actually, it looks like the (relatively new) contrib/lisp/ox-bibtex.el does basically this, by running a .bib file through bibtex2html. Best, Richard