From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bibliographic references Date: Fri, 16 Dec 2011 12:28:36 -1000 Message-ID: References: <1324071794.3325.1@windy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbgGm-0003WK-5H for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 17:28:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbgGk-0004vk-Nv for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 17:28:48 -0500 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:57864) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RbgGk-0004vd-C6 for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 17:28:46 -0500 In-Reply-To: <1324071794.3325.1@windy> (Alan L. Tyree's message of "Sat, 17 Dec 2011 08:43:14 +1100") 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: Alan L Tyree Cc: emacs-orgmode@gnu.org Alan L Tyree writes: > I feel like this should be googleable, but I'm not having much luck. > > As Eric mentioned in a recent post, one of the nice things about > writing in org is that there is no need to worry about output format. > > Except in one thing: How do I deal with bibliographic citations so that > the output is sensible in the different formats? How do I get \cite > {key} to export properly in XHTML and odt as well as in LaTeX? > > Sorry if this is obvious to everybody else -- I'm stymied. > > Cheers, > Alan Aloha Alan, IIUC, your immediate question has to do with making an in-text citation look right in different output formats. This can be accomplished with the extended link syntax. A basic setup that only includes LaTeX export can be found here: http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17-2 For the other export formats you'll need to add (eq format 'html) ..., etc. Of course, this just handles the in-text part for formats other than LaTeX. LaTeX uses bibtex or biblatex to compile the list of references. I don't know how to accomplish this in ODT. For html, I export from Org-mode to LaTeX, then use tex4ht to convert to html. This leverages the bibtex capabilities and yields nicely formatted bibliographies in html. hth, Tom -- Thomas S. Dye http://www.tsdye.com