[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Renaming the thread: orgmode-bibtex/html-export issues
From: |
Vikas Rawal |
Subject: |
Re: [O] Renaming the thread: orgmode-bibtex/html-export issues |
Date: |
Sat, 10 Nov 2012 07:16:50 +0900 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> I also do not like the fact that it inserts, at the bottom of every
> page, a footer saying "This file was generated by bibtext2html..". Any
> ideas about how to get rid of that?
I have had some success with this.
I patched org-exp-bibtex.el as follows.
Line 101 to 110 look as follows:
#######
(with-temp-buffer
(save-match-data
(insert-file-contents (concat file ".html"))
(goto-char (point-min))
(while (re-search-forward (org-re "a
name=\"\\([-_[:word:]]+\\)\">\\([[:word:]]+\\)") 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))
(concat "\n#+BEGIN_HTML\n<div
id=\"bibliography\">\n<h2>References</h2>\n" (buffer-string)
"\n</div>\n#+END_HTML\n"))))
#######
I inserted four lines as follows:
#######
(with-temp-buffer
(save-match-data
(insert-file-contents (concat file ".html"))
(goto-char (point-min))
(while (re-search-forward (org-re "a
name=\"\\([-_[:word:]]+\\)\">\\([[:word:]]+\\)") 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))
(while (re-search-forward "<em>This file was generated by" nil t)
(replace-match ""))
(while (re-search-forward "<a
href=\"http://www.lri.fr/~filliatr/bibtex2html/\">bibtex2html</a> 1.97.</em>"
nil t)
(replace-match ""))
(concat "\n#+BEGIN_HTML\n<div
id=\"bibliography\">\n<h2>References</h2>\n" (buffer-string)
"\n</div>\n#+END_HTML\n"))))
#######
As you would note, the entire string produced by my version of
bibtex2html (including the version number) is hard coded into the
syntax. Can somebody help improve it to make it more general so that
it would work irrespective of the version.
Vikas
- Re: [O] error: Execution of bibtex2html, (continued)
- Re: [O] error: Execution of bibtex2html, Suvayu Ali, 2012/11/06
- Re: [O] error: Execution of bibtex2html, Myles English, 2012/11/06
- Re: [O] error: Execution of bibtex2html, Vikas Rawal, 2012/11/06
- Re: [O] error: Execution of bibtex2html, Yagnesh Raghava Yakkala, 2012/11/06
- Re: [O] error: Execution of bibtex2html, Nick Dokos, 2012/11/06
- [O] Renaming the thread: orgmode-bibtex/html-export issues, Vikas Rawal, 2012/11/07
- Re: [O] Renaming the thread: orgmode-bibtex/html-export issues, Vikas Rawal, 2012/11/09
- Re: [O] Renaming the thread: orgmode-bibtex/html-export issues,
Vikas Rawal <=
- Re: [O] error: Execution of bibtex2html, Vikas Rawal, 2012/11/06