New option org-export-html-footnote-format.

This defines the format for the footnote reference.
This string must contain %s which will be replaced by
the footnote reference.
This commit is contained in:
Bastien Guerry 2009-07-27 11:32:52 +08:00
parent da7a640931
commit ed0a91e76f
2 changed files with 17 additions and 5 deletions

View file

@ -1,5 +1,9 @@
2009-07-27 Bastien Guerry <bzg@altern.org>
* org-html.el (org-export-html-footnote-format): New option for
formatting the footnote reference.
(org-export-as-html): Use the new option.
* org.el (org-provide-todo-statistics): Allow a list of TODO
keywords to compute statistics against headlines containing a
keyword from this list.

View file

@ -31,6 +31,11 @@
(declare-function org-id-find-id-file "org-id" (id))
(declare-function htmlize-region "ext:htmlize" (beg end))
(defgroup org-export-html nil
"Options specific for HTML export of Org-mode files."
:tag "Org Export HTML"
:group 'org-export)
(defcustom org-export-html-footnotes-section "<div id=\"footnotes\">
<h2 class=\"footnotes\">%s: </h2>
<div id=\"text-footnotes\">
@ -44,10 +49,11 @@ by the footnotes themselves."
:group 'org-export-html
:type 'string)
(defgroup org-export-html nil
"Options specific for HTML export of Org-mode files."
:tag "Org Export HTML"
:group 'org-export)
(defcustom org-export-html-footnote-format "<sup>%s</sup>"
"The format for the footnote reference.
%s will be replaced by the footnote reference itself."
:group 'org-export-html
:type 'string)
(defcustom org-export-html-coding-system nil
"Coding system for HTML export, defaults to buffer-file-coding-system."
@ -1175,7 +1181,9 @@ lang=\"%s\" xml:lang=\"%s\">
(setq line
(replace-match
(format
"%s<sup><a class=\"footref\" name=\"fnr.%s%s\" href=\"#fn.%s\">%s</a></sup>"
(concat "%s"
(format org-export-html-footnote-format
"<a class=\"footref\" name=\"fnr.%s%s\" href=\"#fn.%s\">%s</a>"))
(match-string 1 line) n extra n n)
t t line))))))