* [PATCH] References header in org-exp-bibtex
@ 2011-05-19 12:30 Christophe Rhodes
0 siblings, 0 replies; only message in thread
From: Christophe Rhodes @ 2011-05-19 12:30 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: references header --]
[-- Type: text/x-diff, Size: 1194 bytes --]
From 804e8f45357a3e877e10af8680023f64ab4690b2 Mon Sep 17 00:00:00 2001
From: Christophe Rhodes <csr21@cantab.net>
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 "<h2>References</h2>" 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 "<hr>" nil t)
(replace-match "<hr/>" t t))
- (concat "\n#+BEGIN_HTML\n<div id=\"bibliography\">\n" (buffer-string) "\n</div>\n#+END_HTML\n"))))
+ (concat "\n#+BEGIN_HTML\n<div id=\"bibliography\">\n<h2>References</h2>\n" (buffer-string) "\n</div>\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
[-- Attachment #3: Type: text/plain, Size: 21 bytes --]
Cheers,
Christophe
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-19 12:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-19 12:30 [PATCH] References header in org-exp-bibtex Christophe Rhodes
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.