emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Le Maguer" <slemaguer@coli.uni-saarland.de>
To: emacs-orgmode@gnu.org
Subject: more global keys in ox-bibtex
Date: Sun, 22 Jan 2017 20:21:51 +0100	[thread overview]
Message-ID: <87fuka294g.fsf@coli.uni-saarland.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Dear All,

I did a mini-patch to capture completely the key in bibtex export. For example for the following key, in the bibtex2html produced file:

<a name="Balestri1999">Balestri et&nbsp;al., 1999</a>

only Balestri will be captured instead of Balestri et&nbsp;al., 1999

As it is 3 characters, I just submit the patch here and hope it might help :)

Kind regards,
Sébastien

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ox-bibtex.el.diff --]
[-- Type: text/x-diff, Size: 608 bytes --]

diff --git a/contrib/lisp/ox-bibtex.el b/contrib/lisp/ox-bibtex.el
index 56dec38..fb34a5e 100644
--- a/contrib/lisp/ox-bibtex.el
+++ b/contrib/lisp/ox-bibtex.el
@@ -235,7 +235,7 @@ Return new parse tree."
 	      ;; Update `org-bibtex-html-entries-alist'.
 	      (goto-char (point-min))
 	      (while (re-search-forward
-		      "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\(\\w+\\)" nil t)
+		      "a name=\"\\([-_a-zA-Z0-9:]+\\)\">\\([^<]+\\)" nil t)
 		(push (cons (match-string 1) (match-string 2))
 		      org-bibtex-html-entries-alist)))
 	    ;; Open produced HTML file, wrap references within a block and

[-- Attachment #3: Type: text/plain, Size: 260 bytes --]


--
Dr. Sébastien Le Maguer
Postdoctorate researcher

Saarland University
Campus C7.4 - room 2.03
D-66123 Saarbrücken
Germany

phone : +49-681-302-70030
Mail: slemaguer@coli.uni-saarland.de
website :  http://www.coli.uni-saarland.de/~slemaguer/

             reply	other threads:[~2017-01-22 19:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22 19:21 Sébastien Le Maguer [this message]
2017-02-03 21:21 ` more global keys in ox-bibtex Nicolas Goaziou
2017-02-05  7:11   ` [PATCH] ox-bibtex.el: take key with spaces or non-alphabetic characters into account Sebastien Le Maguer
2017-02-05  8:23     ` Nicolas Goaziou

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=87fuka294g.fsf@coli.uni-saarland.de \
    --to=slemaguer@coli.uni-saarland.de \
    --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).