From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nik Putnam <nik@mcmxi.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-exp-bibtex.el patch for zotero-generated citekeys
Date: Thu, 6 Oct 2011 10:11:32 +0200 [thread overview]
Message-ID: <05536ED6-CAC9-458D-9280-CA69B764C817@gmail.com> (raw)
In-Reply-To: <CALMLZJMtU1UNJRTXZ-pEFpyVt1sBsJxiONCQ6+gzcD+wK9S-xA@mail.gmail.com>
This patch has now been accepted.
- Carsten
On Sep 12, 2011, at 10:26 PM, Nik Putnam wrote:
> Dear Taru and orgmode community,
>
> Org-mode export to HTML is a really useful thing, and I love the
> bibtex integration.
>
> I had a problem exporting from org-mode to HTML, with bibtex. I was
> able to fix it with a change to a regular expression
> org-exp-bibtex.el. The diff is shown below.
>
> (My bibtex citekeys were auto-created by zotero, and use underscores.
> Some even have dashes.)
>
> I thought this might be useful to others as well.
>
> Thanks,
>
> Nik
>
> --- a/contrib/lisp/org-exp-bibtex.el
> +++ b/contrib/lisp/org-exp-bibtex.el
> @@ -102,8 +102,9 @@
> (save-match-data
> (insert-file-contents (concat file ".html"))
> (goto-char (point-min))
> - (while (re-search-forward "a
> name=\"\\(\\w+\\)\">\\(\\w+\\)" nil t)
> - (setq oebp-cite-plist (cons (cons (match-string 1)
> (match-string 2)) oebp-cite-plist)))
> + (while (re-search-forward "a
> name=\"\\([a-z0-9A-Z_\\-]+\\)\">\\(\\w+\\)" 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)
> (replace-match "<hr/>" t t))
>
- Carsten
prev parent reply other threads:[~2011-10-06 8:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 20:26 org-exp-bibtex.el patch for zotero-generated citekeys Nik Putnam
2011-10-06 8:11 ` Carsten Dominik [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=05536ED6-CAC9-458D-9280-CA69B764C817@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nik@mcmxi.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.