浏览代码

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
Christophe Rhodes 14 年之前
父节点
当前提交
3e4477249c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lisp/org-exp-bibtex.el

+ 1 - 1
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)))