emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-bibtex.el regexp is not correct when finding bibtex keys
@ 2016-06-29  8:39 Xiaolong Zhang (HKUCS)
  0 siblings, 0 replies; only message in thread
From: Xiaolong Zhang (HKUCS) @ 2016-06-29  8:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi list,

On line 237-241 of ox-bibtex.el of function org-bibtex-process-bib-files:

;; Update `org-bibtex-html-entries-alist'.
(goto-char (point-min))
(while (re-search-forward
      "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\(\\w+\\)" nil t)
       (push (cons (match-string 1) (match-string 2))

The regexp does not allow the forward slash character, which is
actually allowed for bibtex keys and is the format for DBLP. For
example, "DBLP:journals/corr/VeitWVBDAACCCDD15"
(http://dblp.uni-trier.de/rec/bibtex/journals/corr/VeitWVBDAACCCDD15)

I hope it could be fixed as the current exporting to HTML using
ox-bibtex.el does not process citation keys from DBLP. Thank you.

Regards,
Xiaolong

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-29  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29  8:39 ox-bibtex.el regexp is not correct when finding bibtex keys Xiaolong Zhang (HKUCS)

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