Martin I am attaching a patch that should fix this issue. I will let Nicolas review/apply it.
ps: If you are not comfortable applying patches, the best way to get things working again, is to force a blank line before the first non-commented line in your Org file i.e., replace --8<---------------cut here---------------start------------->8--- [snip] #+XSLT: * Protocol --8<---------------cut here---------------end--------------->8--- with --8<---------------cut here---------------start------------->8--- [snip] #+XSLT: * Protocol --8<---------------cut here---------------end--------------->8--- in the test file that you circulated.
#+TITLE: test.org #+AUTHOR: Martin Gürtler #+EMAIL: none@none #+DATE: 2012-02-29 Wed #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: de #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:nil #+OPTIONS: TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * Protocol ** System description The software system provides the following numbers:[fn:1] - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 It also provides letters[fn:2]: - q - w - e - r - t - z - u - i ** Another subsection Just to have some more words... * Footnotes [fn:1] footnote [fn:2] testing
>From d09cc7bb3bdb1b32b32fae14b722f4d4c8b0ef79 Mon Sep 17 00:00:00 2001 From: Jambunathan K <kjambunat...@gmail.com> Date: Wed, 29 Feb 2012 20:09:44 +0530 Subject: [PATCH] org-footnote: Workaround a limitation in the ODT exporter * lisp/org-footnote.el (org-footnote-normalize): Force a paragraph break after the last footnote definition. This is an an implicit assumption made by the org-lparse.el library. With this change, footnote definitions can reliably be exported with ODT backend. See http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg01013.html. --- lisp/org-footnote.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index c848bae..f4ea7ff 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -810,7 +810,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor': (lambda (x) (format "\n[%s] %s" (nth (if sort-only 0 1) x) (nth 2 x))) ref-table "\n")) - (unless (eobp) (insert "\n")) + (unless (eobp) (insert "\n\n")) ;; When exporting, add newly inserted markers along with their ;; associated definition to `org-export-footnotes-seen'. (when export-props (setq org-export-footnotes-seen ref-table))) -- 1.7.5.1
Martin Gürtler <martin.guert...@gmx.de> writes: > Hi, > > thanks for quick response. > > Am Mittwoch, den 29.02.2012, 14:51 +0530 schrieb Jambunathan K: >> Martin Gürtler <martin.guert...@gmx.de> writes: >> >> I am not sure what version of Orgmode this corresponds to...What does >> M-x org-version RET say. > 7.8.03, I use elpa. > >> > There, the export of documents with footnotes seems to be broken. >> >> Footnote export in ODT was known to be broken[1] with the following is >> true: >> >> ,---- >> | (setq org-footnote-section nil) >> `---- >> >> May I know what value do you use one your end? > C-h v says org-footnote-section's value is "Footnotes" which seems to > be default and not the case you mention. >> Providing a complete Org file (with footnotes) is necessary so that >> there is no confusion on what we are looking at. >> >> With a footnotes added, I was able to export just fine with the version >> of Org in the git repo. > In my case, section 1.1 is missing. I attach the org file with footnote > and the resulting odt. > > Cheers, > > Martin