From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: Citing articles, bibliography and html export Date: Tue, 10 Feb 2009 14:40:14 +0000 Message-ID: References: <20090210134916.GA30130@taruti.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWtmc-0000om-FF for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 09:40:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWtmc-0000oa-60 for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 09:40:18 -0500 Received: from [199.232.76.173] (port=33376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWtmb-0000oX-UJ for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 09:40:17 -0500 Received: from mail-bw0-f160.google.com ([209.85.218.160]:50732) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWtmb-0008E5-B8 for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 09:40:17 -0500 Received: by bwz4 with SMTP id 4so3017926bwz.18 for ; Tue, 10 Feb 2009 06:40:14 -0800 (PST) In-Reply-To: <20090210134916.GA30130@taruti.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Taru Karttunen Cc: Org-mode ml At the moment, rather than using BibTeX, I'm just doing citations manually, using org's footnote mechanism and /italics/ markup. This works, but I think I may have a few bugs to report with org's LaTeX export. All those italics, punctuation, and parentheses in close proximity seem like they may be causing problems. I haven't yet sorted out where the problems are, but I'll report them as soon as I do. If you can imagine forgoing the luxury of BibTeX, this is probably the way to go., alternately you could use BibTeX to assure the quailty of your LaTeX output (print still rules in some quarters), but do manual citations in using #+HTML markup. If you want to use BibTeX for your citations, you'd have to have either: (1) a bibtex engine for HTML (does it exist?) or (2) get org to cleverly insert fragments of TeX output in HTML, both for each citation and the bibliography. This would be ugly even if it were easy, and I suspect it's not. With regard to (1), I suppose you could hack together a very rudimentary substitution engine to replace your \cites with preformatted citations which were already set up in org markup, and would therefore export into HTML. This could be promising if your citation requirements are simple, and if you do enough work using a single style guide to make the setup work worth it. You may find a LaTeX to HTML exporter that can do the trick. And if it did, this might be the best of all worlds. The last option would be working up an org export to 'pandoc', an extension of Markdown which has a very cool citation mechanism in development (using Citation Style Language, the same as the Zotero bibliographic manager, so there are already many citation styles). It's working (and can use BibTeX databases), but I've not put it to the test. If you could sucessfully get your work from org to pandoc, you could then export to either LaTeX or HTML (as well as ODF and OOXML). There are some people on this list working on (or musing over) a generalized org2wiki exporter, and, it might someday be possible to coax that to export to pandoc/Markdown. This is, only a possibility, though, and not free of problems. I only put it down for the record. Scot On Tue, Feb 10, 2009 at 1:49 PM, Taru Karttunen wrote: > Hello > > Is there a good way of writing articles so that citations and > the bibliography works in both latex and html? > > Currently I am using \cite{foobar} in the text and > have: > > #+LATEX: \bibliographystyle{foo} > #+LATEX: \bibliography{bar} > > In the end and a corresponding .bib file. This works nicely with > latex, but I would like a solution that worked also with html. > > How have other people solved this? > > - Taru Karttunen > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >