[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] more global keys in ox-bibtex
From: |
Sébastien Le Maguer |
Subject: |
[O] more global keys in ox-bibtex |
Date: |
Sun, 22 Jan 2017 20:21:51 +0100 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50.1 |
Dear All,
I did a mini-patch to capture completely the key in bibtex export. For example
for the following key, in the bibtex2html produced file:
<a name="Balestri1999">Balestri et al., 1999</a>
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 help :)
Kind regards,
Sébastien
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
--
Dr. Sébastien Le Maguer
Postdoctorate researcher
Saarland University
Campus C7.4 - room 2.03
D-66123 Saarbrücken
Germany
phone : +49-681-302-70030
Mail: address@hidden
website : http://www.coli.uni-saarland.de/~slemaguer/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] more global keys in ox-bibtex,
Sébastien Le Maguer <=