emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: Fabrice Popineau <fabrice.popineau@supelec.fr>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-ref in action
Date: Fri, 27 Jun 2014 09:26:43 -0500	[thread overview]
Message-ID: <87pphufmxo.fsf@fastmail.fm> (raw)
In-Reply-To: <m2pphu3l84.fsf@top-wifi.irisa.fr> (Alan Schmitt's message of "Fri, 27 Jun 2014 08:44:27 +0200")

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> On 2014-06-26 20:44, Matt Lundin <mdl@imapmail.org> writes:
>>
>> I don't think this is possible without some major
>> hacking/conversion/filtering. Biblatex has many more entry types and
>> fields than bibtex. I've found that most of the older bibtex utils
>> (bibtools, bibtex2html) choke on my biblatex files.
>
> Is there a list of these new entry types? 

It depends on the style. I use the biblatex-chicago style. I grepped the
sample bib file supplied with the package to get a list of entry
types[fn:1] and fields.[fn:2] And this represents only a subset of the
possible fields! See also the variable bibtex-biblatex-entry-alist in
bibtex.el (shipped with emacs).

> Looking at the code for bibtex2html (for instance
> https://github.com/backtracking/bibtex2html/blob/master/bibtex.mli) I
> see that entry types are strings, so if there are issues, I guess they
> would happen in the generation part but not in the parsing part.

You are right. I see that one can specify a style file for parsing bib
files and biblatex does supply a biblatex.bst, e.g.,

  bibtex2html -s biblatex

However, this still produces errors (and a blank html file) when I run
it on a larger bib file that pdflatex/biber parses fine. I was able to
get it to run without errors on a small carefully culled subset (a book
and an article).

>> Even if biblatex2html did read biblatex data, its output, I believe,
>> is limited to bibtex styles, which cannot handle more complex
>> formats.

> I'm very ignorant here: from my understanding, bibtex2html does not
> care about bibtex style, it just takes bibtex data as input and
> produces html. 

> Is the problem that some entries are ignored, 

Yes, as well as many fields.

> or is there something deeper that I'm missing?

For my particular use-case, the problem is that it formats the
bibliographical data incorrectly. This is because biblatex relies on
LaTeX macros (rather than bibtex) to format the bibliography. Thus, any
utility that relies on bibtex to format bibliographies not work with
biblatex styles.

This, by the way, is why biblatex was is such a boon for those of use
working in the humanities: bibtex was *never* sufficient for humanities
citations. 

E.g., the biblatex-chicago style outputs a bibliographical item for a
book like this (with org markup added to show emphasis):

Wolloch, Isser. /The New Regime: Transformations of the French Civic
Order, 1789--1820s/. New York and London: W. W. Norton, 1994.

bibtex2html produces this:

Isser Wolloch. /The New Regime./ W. W. Norton, 1994.

Best, 
Matt (who also would also be happy to take this off list)

Footnotes:

[fn:1] Article, Artwork, Audio, Book, Booklet, Collection, CustomC, Image,
InBook, InCollection, inproceedings, InReference, Letter, Manual,
MastersThesis, Misc, Music, MVCollection, Online, Patent, Periodical,
PhdThesis, Reference, Review, SuppBook, TechReport, Unpublished, Video

[fn:2] addendum, address, afterword, annote, author, authortype,
bookauthor, booksubtitle, booktitle, booktitleaddon, chapter, crossref,
date, doi, edition, editor, editora, editoratype, editortype,
entrysubtype, eventdate, howpublished, institution, isbn, issue,
issuetitle, journaltitle, keywords, language, lista, location,
longcrossref, mainsubtitle, maintitle, month, namea, nameaddon, nameb,
namec, note, number, options, organization, origdate, origlanguage,
origlocation, origpublisher, pages, part, publisher, pubstate, school,
series, shortauthor, shorthand, shorttitle, sortkey, sorttitle,
subtitle, title, titleaddon, translator, type, url, urldate, useauthor,
usecompiler, useeditor, usera, userc, userd, usere, userf, volume,
volumes, xref, year

  reply	other threads:[~2014-06-27 14:26 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24 18:45 org-ref in action John Kitchin
2014-06-24 19:26 ` Thomas S. Dye
2014-06-24 20:53 ` Ista Zahn
2014-06-25  2:13 ` Matt Lundin
2014-06-25  8:28 ` Bastien
2014-06-25 16:26 ` Vikas Rawal
2014-06-25 20:25 ` Eric Schulte
2014-06-26  1:09   ` Grant Rettke
2014-06-26  1:10   ` Matt Lundin
2014-06-26 12:21     ` Fabrice Popineau
2014-06-26 12:48       ` John Kitchin
2014-06-26 14:08         ` Matt Lundin
2014-06-26 14:09           ` Matt Lundin
2014-06-26 14:11           ` Grant Rettke
2014-06-26 14:13             ` Ken Mankoff
2014-06-26 14:33             ` Jorge A. Alfaro-Murillo
2014-06-26 14:39             ` Matt Lundin
2014-06-26 17:19               ` Alan Schmitt
2014-06-26 18:44                 ` Matt Lundin
2014-06-27  4:27                   ` Xebar Saram
2014-06-27  7:37                     ` Thomas S. Dye
2014-06-27  7:38                     ` Vikas Rawal
2014-06-27  7:52                       ` Melleus
2014-06-27 13:39                     ` Ista Zahn
2014-06-27 23:56                     ` John Kitchin
2014-06-27  6:44                   ` Alan Schmitt
2014-06-27 14:26                     ` Matt Lundin [this message]
2014-06-27 17:19                       ` Matt Lundin
2014-06-27 15:49               ` Grant Rettke
2014-06-26 16:14         ` Eric Schulte
2014-06-27  6:55         ` Joseph Vidal-Rosset
2014-06-29 10:18 ` Joseph Vidal-Rosset
2014-06-29 12:09   ` John Kitchin
2014-06-29 18:19   ` Eric Schulte
2014-06-29 18:23     ` Joseph Vidal-Rosset
2014-06-30  9:29     ` Joseph Vidal-Rosset
2014-06-30  9:52       ` Eric Schulte
2014-06-30 10:06         ` Joseph Vidal-Rosset
2014-06-30 10:22           ` Eric Schulte
2014-06-30 11:27             ` Joseph Vidal-Rosset
2014-08-05 18:28               ` Xebar Saram
2014-08-05 21:08                 ` John Kitchin
2014-08-06 10:54                   ` Xebar Saram
2014-08-06 12:51                     ` John Kitchin
  -- strict thread matches above, loose matches on Subject: below --
2014-06-25  5:57 Leu Zhe
2014-06-26 22:33 Doyley, Marvin M.

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87pphufmxo.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@supelec.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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