diff options
author | Christophe Rhodes <csr21@cantab.net> | 2011-05-19 17:30:24 +0000 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2011-05-24 05:36:05 +0200 |
commit | 3e4477249caeb4ec58dc10b5feac849d5d173b09 (patch) | |
tree | 2d712dc890b881a8f977fd434fa3adbc4980a10c | |
parent | 202d8f7bf2895c402daae4dc6a8cf33aeb05892e (diff) | |
download | org-mode-3e4477249caeb4ec58dc10b5feac849d5d173b09.tar.gz |
Add "References" header in org-exp-bibtex
* contrib/lisp/org-exp-bibtex.el (org-export-bibtex-preprocess): include
hard-coded "<h2>References</h2>" in #+BEGIN_HTML block
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.
Cheers,
Christophe
TINYCHANGE
-rw-r--r-- | 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))) |