emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Taru Karttunen <taruti@taruti.net>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Citing articles, bibliography and html export
Date: Tue, 10 Feb 2009 14:40:14 +0000	[thread overview]
Message-ID: <e0e1fe620902100640o8ef433boc9e41019fe1fbed2@mail.gmail.com> (raw)
In-Reply-To: <20090210134916.GA30130@taruti.net>

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
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.


On Tue, Feb 10, 2009 at 1:49 PM, Taru Karttunen <taruti@taruti.net> 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

  reply	other threads:[~2009-02-10 14:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 13:49 Citing articles, bibliography and html export Taru Karttunen
2009-02-10 14:40 ` Scot Becker [this message]
2009-02-10 17:33   ` Manuel Hermenegildo
2009-02-10 18:02     ` David Bremner
2009-02-10 19:35       ` Carsten Dominik
2009-02-10 15:37 ` Matthew Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0e1fe620902100640o8ef433boc9e41019fe1fbed2@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=taruti@taruti.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).