forked from mirrors/org-mode
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:
parent
da7a640931
commit
ed0a91e76f
|
@ -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.
|
||||
|
|
|
@ -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))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue