From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien?= Le Maguer Subject: more global keys in ox-bibtex Date: Sun, 22 Jan 2017 20:21:51 +0100 Message-ID: <87fuka294g.fsf@coli.uni-saarland.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNiE-0004SC-4T for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 14:22:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVNiB-0001o3-0C for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 14:22:02 -0500 Received: from triton.rz.uni-saarland.de ([134.96.7.25]:17501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNiA-0001mE-Kk for emacs-orgmode@gnu.org; Sun, 22 Jan 2017 14:21:58 -0500 Received: from mail.coli.uni-saarland.de (supi.coli.uni-saarland.de [134.96.104.8]) by triton.rz.uni-saarland.de (8.14.9/8.14.0) with ESMTP id v0MJLq4L022329 for ; Sun, 22 Jan 2017 20:21:53 +0100 Received: from localhost (p5DD45CCF.dip0.t-ipconnect.de [93.212.92.207]) by mail.coli.uni-saarland.de (Postfix) with ESMTPSA id A4F4F2F04C for ; Sun, 22 Jan 2017 20:21:52 +0100 (CET) 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by triton.rz.uni-saarland.de id v0MJLq4L022329 Dear All, I did a mini-patch to capture completely the key in bibtex export. For ex= ample for the following key, in the bibtex2html produced file: Balestri et al., 1999 only Balestri will be captured instead of Balestri et al., 1999 As it is 3 characters, I just submit the patch here and hope it might hel= p :) Kind regards, S=C3=A9bastien --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ox-bibtex.el.diff diff --git a/contrib/lisp/ox-bibtex.el b/contrib/lisp/ox-bibtex.el index 56dec38..fb34a5e 100644 --- a/contrib/lisp/ox-bibtex.el +++ b/contrib/lisp/ox-bibtex.el @@ -235,7 +235,7 @@ Return new parse tree." ;; Update `org-bibtex-html-entries-alist'. (goto-char (point-min)) (while (re-search-forward - "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\(\\w+\\)" nil t) + "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\([^<]+\\)" nil t) (push (cons (match-string 1) (match-string 2)) org-bibtex-html-entries-alist))) ;; Open produced HTML file, wrap references within a block and --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by triton.rz.uni-saarland.de id v0MJLq4L022329 -- Dr. S=C3=A9bastien Le Maguer Postdoctorate researcher Saarland University Campus C7.4 - room 2.03 D-66123 Saarbr=C3=BCcken Germany phone : +49-681-302-70030 Mail: slemaguer@coli.uni-saarland.de website : http://www.coli.uni-saarland.de/~slemaguer/ --=-=-=--