Hi,
Nice! Tested only your snippet.
* HTML: works!
One question: As is, adjoining footnotes `2' and `3' read as `23'.
Could/should the footnote export know to put a comma between them:`2,3'?
For HTML purposes, I think not necessarily, the separator could be
flexibly added with CSS like:
: #+style: <style>sup + sup .footref:before {content: ", "}</style>
* Latex: backtrace:
Debugger entered--Lisp error: (void-variable footnote-section-tag-regexp)
org-export-latex-preprocess((:for-backend latex :emph-multiline t
:add-text nil :comments nil :skip-before-1st-heading nil
:LaTeX-fragments nil :timestamps t :footnotes t))
org-export-preprocess-string(#("#+title: Footnotes test\n\nSome
text before first headline[fn:1].\n\n" 0 8 (fontified nil
font-lock-fontified t) 8 9 (fontified nil) 9 23 (fontified nil
font-lock-fontified t) 23 56 (fontified nil) 56 57 (fontified nil) 57
61 (fontified nil help-echo "Footnote reference") 61 62 (fontified
nil) 62 65 (fontified nil)) :for-backend latex :emph-multiline t
:add-text nil :comments nil :skip-before-1st-heading nil
:LaTeX-fragments nil :timestamps t :footnotes t)
org-export-latex-first-lines((:latex-image-options "width=10em"
:exclude-tags ("noexport") :select-tags ("export")
:publishing-directory nil :timestamp nil :expand-quoted-html t
:html-table-tag "<table border=\"2\" cellspacing=\"0\"
cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" :xml-declaration
(("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") ("php" . "<?php
echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))
:html-postamble auto :html-preamble t :html-extension "html"
:inline-images maybe :convert-org-links t :agenda-style ""
:style-extra "" :style "" :style-include-scripts t
:style-include-default t :table-auto-headline t :tables t
:time-stamp-file t :creator-info t :email-info nil :author-info t
:email "CM@Celebrian-2.local" ...) nil nil)
org-export-as-latex(nil)
call-interactively(org-export-as-latex)
org-export(nil)
call-interactively(org-export nil nil)
Yours,
Christian
On 5/11/11 9:02 PM, Nicolas Goaziou wrote:
Hello,
I'd like to submit a branch for testing:
git://github.com/ngz/org-mode-lists.git footnote-fix
Here are the changes so far:
- recognize and export inlined footnotes holding links in their definition,
- recognize and export two or more footnotes in a row,
- don't chock at footnotes or partial footnotes inside comments in Org buffer,
- export calls to already defined footnotes in LaTeX,
- export footnotes before first heading (LaTeX),
- export footnotes when selecting a subtree not holding their
definition (LaTeX),
- fontify more consistently footnotes in the org buffer (only labels
are "fontified" or fn in the case of an anonymous footnote).
The following snippet demonstrates most of these changes:
----------------------------------------------------------------------
#+title: Footnotes test
Some text before first headline[fn:1].
* First headline
# [fn::fake footnote
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna
aliqua[fn::inline1][1].
* Second headline
Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur[fn:inlabel:an inline
footnote][fn:inlabel2:[[http://www.google.com][google]] this].
Call an already defined inline footnote[fn:inlabel].
* Footnotes
[fn:1] first footnote.
[1] End of first section.
------------------------------------------------------------------------
There are probably mischievous bugs. So, thanks in advance for any
feedback.
Regards,