emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Xiaolong Zhang (HKUCS)" <xlzhang@cs.hku.hk>
To: emacs-orgmode@gnu.org
Subject: ox-bibtex.el regexp is not correct when finding bibtex keys
Date: Wed, 29 Jun 2016 16:39:21 +0800	[thread overview]
Message-ID: <CAH5eB76EcZuBYMgmcBm6JzSxMBFYmz7UY2viqUXq2KJ_3Cu5NQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2016-06-29  8:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH5eB76EcZuBYMgmcBm6JzSxMBFYmz7UY2viqUXq2KJ_3Cu5NQ@mail.gmail.com \
    --to=xlzhang@cs.hku.hk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).