From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Renaming the thread: orgmode-bibtex/html-export issues Date: Sat, 10 Nov 2012 07:16:50 +0900 Message-ID: <20121109221650.GA12344@panahar> References: <20121106164332.GC20216@kuru.dyndns-at-home.com> <20121106210950.GA31782@panahar> <87bofaxw46.fsf@gmail.com> <20121107025721.GA12038@panahar> <87a9uujds2.fsf@yagnesh.org> <5760.1352261416@alphaville> <20121107090243.GA26102@panahar> <20121109213223.GA11463@panahar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWwsk-00052O-Lw for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 17:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWwsj-0007H2-5F for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 17:16:58 -0500 Received: from mail-pb0-f41.google.com ([209.85.160.41]:52660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWwsi-0007Gs-Rw for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 17:16:57 -0500 Received: by mail-pb0-f41.google.com with SMTP id rq2so3292913pbb.0 for ; Fri, 09 Nov 2012 14:16:55 -0800 (PST) Content-Disposition: inline In-Reply-To: <20121109213223.GA11463@panahar> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > 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 "
" nil t) (replace-match "
" t t)) (concat "\n#+BEGIN_HTML\n
\n

References

\n" (buffer-string) "\n
\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 "
" nil t) (replace-match "
" t t)) (while (re-search-forward "This file was generated by" nil t) (replace-match "")) (while (re-search-forward "bibtex2html 1.97." nil t) (replace-match "")) (concat "\n#+BEGIN_HTML\n
\n

References

\n" (buffer-string) "\n
\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