Allow dashes and underscores in bibtex citation keys

* contrib/lisp/org-exp-bibtex.el (org-export-bibtex-preprocess): Allow
dashes and underscores in bibtex citation keys.

TINYCHANGE

Patch by Nik Putnam
This commit is contained in:
Carsten Dominik 2011-10-06 10:10:47 +02:00
parent 2978501ad0
commit c18896841e
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@
(save-match-data
(insert-file-contents (concat file ".html"))
(goto-char (point-min))
(while (re-search-forward "a name=\"\\(\\w+\\)\">\\(\\w+\\)" nil t)
(while (re-search-forward (org-re "a name=\"\\([-_[:word:]]+\\)\">\\([[:word:]]+\\)") nil t)
(setq oebp-cite-plist (cons (cons (match-string 1) (match-string 2)) oebp-cite-plist)))
(goto-char (point-min))
(while (re-search-forward "<hr>" nil t)