From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Dynerman Subject: org-ref: customizing bibtex key names generated by doi-utils Date: Thu, 23 Jun 2016 12:49:09 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAcw-0000x1-Hx for emacs-orgmode@gnu.org; Thu, 23 Jun 2016 15:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGAcs-0003ti-Ar for emacs-orgmode@gnu.org; Thu, 23 Jun 2016 15:49:25 -0400 Received: from anti-capital.block-party.net ([94.254.0.205]:38349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAcr-0003sl-TR for emacs-orgmode@gnu.org; Thu, 23 Jun 2016 15:49:22 -0400 Received: from CIVIC-TV.local (c-24-6-208-4.hsd1.ca.comcast.net [24.6.208.4]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: david@block-party.net) by anti-capital.block-party.net (Postfix) with ESMTPSA id 13DDF25C7 for ; Thu, 23 Jun 2016 12:49:16 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Hi all, I'm interested in exporting HTML from an org document that contains references managed by org-ref. I'm running into the following problem. I have a reference that doi-utils added with a very long bibtex key: @article{saldin09_struc_isolat_biomol_obtain_from ... When exporting to html, org-ref uses this bibtex key as the link text in every citation. This quickly becomes unreadable, especially if you cite the above paper several times in a paragraph. Does anyone know how easy it would be to customize the bibtex keys generated by doi-utils, for instance by doi-add-bibtex-entry? For instance, if the above key were just the first author and year, it'd be @article{Saladin2009 which would be much more readable after HTML export. I took a 30 mins look at the relevant doi-utils functions but couldn't piece out a reasonable way to make the change. I guess another solution would be to modify HTML export to change citation link text, but that seems like the wrong place to make this change. Any advice is appreciated! David