From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Rhodes Subject: [PATCH] References header in org-exp-bibtex Date: Thu, 19 May 2011 13:30:24 +0100 Message-ID: <87vcx6yisf.fsf@cantab.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN2N3-0001jJ-0P for emacs-orgmode@gnu.org; Thu, 19 May 2011 08:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN2N2-0003Xe-4t for emacs-orgmode@gnu.org; Thu, 19 May 2011 08:30:28 -0400 Received: from relay.ptn-ipout01.plus.net ([212.159.7.35]:13773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN2N1-0003XI-Vk for emacs-orgmode@gnu.org; Thu, 19 May 2011 08:30:28 -0400 Received: from [81.174.155.115] (helo=lambda) by outmx02.plus.net with esmtp (Exim) id 1QN2Mz-0006Kx-GA for emacs-orgmode@gnu.org; Thu, 19 May 2011 13:30:25 +0100 Received: from csr21 by lambda with local (Exim 4.72) (envelope-from ) id 1QN2My-0004lS-88 for emacs-orgmode@gnu.org; Thu, 19 May 2011 13:30:24 +0100 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 --=-=-= Hi, I might be missing something, but while in LaTeX export org-exp-bibtex produces a References header, in HTML export there's nothing -- which looks a bit odd, particularly in documents with footnotes. Attached is a patch which simply includes an appropriate header. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-provide-References-header-in-html-export-using-org-e.patch Content-Description: references header >From 804e8f45357a3e877e10af8680023f64ab4690b2 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Thu, 19 May 2011 13:17:15 +0100 Subject: [PATCH 1/2] provide "References" header in html export using org-exp-bibtex * contrib/lisp/org-exp-bibtex.el (org-export-bibtex-preprocess): include hard-coded "

References

" in #+BEGIN_HTML block --- contrib/lisp/org-exp-bibtex.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/lisp/org-exp-bibtex.el b/contrib/lisp/org-exp-bibtex.el index 63f71ef..d48f0ee 100644 --- a/contrib/lisp/org-exp-bibtex.el +++ b/contrib/lisp/org-exp-bibtex.el @@ -107,7 +107,7 @@ (goto-char (point-min)) (while (re-search-forward "
" nil t) (replace-match "
" t t)) - (concat "\n#+BEGIN_HTML\n
\n" (buffer-string) "\n
\n#+END_HTML\n")))) + (concat "\n#+BEGIN_HTML\n
\n

References

\n" (buffer-string) "\n
\n#+END_HTML\n")))) ((eq org-export-current-backend 'latex) ;; Latex export (concat "\n#+LATEX: \\bibliographystyle{" style "}" "\n#+LATEX: \\bibliography{" file "}\n"))) t t))) -- 1.7.2.5 --=-=-= Cheers, Christophe --=-=-=--