[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-exp-bibtex.el patch for zotero-generated citekeys
From: |
Carsten Dominik |
Subject: |
Re: [O] org-exp-bibtex.el patch for zotero-generated citekeys |
Date: |
Thu, 6 Oct 2011 10:11:32 +0200 |
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 in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] org-exp-bibtex.el patch for zotero-generated citekeys,
Carsten Dominik <=