From mboxrd@z Thu Jan 1 00:00:00 1970 From: WY H Subject: Bug: Missing footnotes when exporting to org file [9.0.5 (9.0.5-elpa @ ~/.emacs.d/elpa/org-20170210/)] Date: Sun, 12 Mar 2017 08:03:53 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_PS1PR0401MB14665C7583A3BEFB2079B85FCE220PS1PR0401MB1466_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmyTy-0000ku-8w for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 04:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmyTv-0003W3-HQ for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 04:04:02 -0400 Received: from bay004-omc4s8.hotmail.com ([65.54.190.210]:55619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmyTu-0003Ve-Pz for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 04:03:59 -0400 Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" --_000_PS1PR0401MB14665C7583A3BEFB2079B85FCE220PS1PR0401MB1466_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Thanks for the cool job done with Org mode and I'm happily living with it everyday now :) One issue's been annoying me recently though, when exporting org files with footnotes to org format, all the footnotes are missing in the result org file. This may not look like a common use case but when ox-pandoc comes to picture it is one, as ox-pandoc use org as an intermediate format for any conversion. I suspect it's an org mode bug because I got the same result even after I r= emoved ox-pandoc and use the original Org Export Dispatcher. Org mode + ox-pandoc is such a sweet combination that I really would like t= o get help on this issue. Emacs : GNU Emacs 25.2.1 (x86_64-apple-darwin16.1.0, Carbon Version 157 Ap= pKit 1504.6) of 2017-02-14 Package: Org mode version 9.0.5 (9.0.5-elpa @ ~/.emacs.d/elpa/org-20170210/= ) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-id-locations-file "~/.emacs.d/.cache/.org-id-locations" org-footnote-auto-adjust t org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '(("beamer" "\\documentclass{beamer}\n \\usepackage[fnt= ef,nofonts,fancyhdr]{ctex}" org-beamer-sectioning) ("ctexbook" "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]= {ctexbook}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("ctexrep" "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]= {ctexrep}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("ctexart" "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]= {ctexart}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ) org-clock-persist-file "~/.emacs.d/.cache/org-clock-save.el" org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-imenu-depth 8 org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(closure (htmlize-buffer-places org-html-format-table-no-css htmlize-css-name-prefix htmlize-output-= type htmlize-output-type htmlize-css-name-pr= efix t) (_name contents) contents) org-log-done 'time org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-= function org-confirm-shell-link-function 'yes-or-no-p org-image-actual-width nil org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-link-translation-function 'toc-org-unhrefify org-present-mode-hook '(spacemacs//org-present-start) org-agenda-restore-windows-after-quit t org-latex-format-headline-function 'org-latex-format-headline-default-func= tion org-default-notes-file "notes.org" org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(closure (t) (_ contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all appe= nd local] 5 "\n\n(fn)"] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-a= ll append local] 5 "\n\n(fn)"] org-babel-result-hide-spec org-babel-hide-all-hashes fcitx--org-mode-hook spacemacs/load-yasnippet toc-org-enab= le (lambda nil (set (make-local-variable (quote pangu-spacing-real-insert-separtor)) t) ) org-download-enable org-bullets-mode spacemacs//org-babel-do-load-languages spacemacs/add-org-surrounds evil-org-mode org-eldoc-load spacemacs//init-company-org-mode company-mode) org-archive-hook '(org-attach-archive-delete-maybe) org-ascii-format-drawer-function '(closure (t) (_name contents _width) con= tents) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-func= tion org-directory "~/Sync/data/Dropbox/doc/org/" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-timestamp-directory "~/.emacs.d/.cache/.org-timestamps/" org-present-mode-quit-hook '(spacemacs//org-present-end) org-export-async-init-file "~/.emacs.d/layers/+emacs/org/local/org-async-i= nit.el" org-export-initial-scope 'subtree org-download-annotate-function 'org-download-annotate-default org-confirm-elisp-link-function 'yes-or-no-p org-startup-with-inline-images t org-metadown-hook '(org-babel-pop-to-session-maybe) org-odt-format-drawer-function '(closure (hfy-user-sheet-assoc hfy-html-quote-rege= x hfy-html-quote-map hfy-face-to-css hfy-begin-span-handler hfy-end-span-hand= ler archive-zip-extract nxml-auto-insert-xml-declaration-flag t) (_name contents) contents) org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images) org-latex-default-class "ctexart" org-html-format-headline-function 'org-html-format-headline-default-functi= on org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-lin= k) ("irc" :follow org-irc-visit :store org-irc-store-li= nk) ("info" :follow org-info-open :export org-info-expor= t :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-= link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-expor= t :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("orgit-rev" :store orgit-rev-store :follow orgit-re= v-open :export orgit-rev-export) ("orgit-log" :store orgit-log-store :follow orgit-lo= g-open :export orgit-log-export) ("orgit" :store orgit-status-store :follow orgit-status-open :export orgit-status-export) ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path)))) ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "https:" path)))= ) ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path))= )) ("message" :follow (lambda (path) (browse-url (concat "message:" path)= ))) ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link)) org-structure-template-alist '(("n" "#+BEGIN_NOTES\n?\n#+END_NOTES") ("s" "#+BEGIN_SRC ?\n\n#+END_SRC") ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE") ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") ("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM") ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER") ("l" "#+BEGIN_EXPORT latex\n?\n#+END_EXPORT= ") ("L" "#+LaTeX: ") ("h" "#+BEGIN_EXPORT html\n?\n#+END_EXPORT"= ) ("H" "#+HTML: ") ("a" "#+BEGIN_EXPORT ascii\n?\n#+END_EXPORT= ") ("A" "#+ASCII: ") ("i" "#+INDEX: ?") ("I" "#+INCLUDE: %file ?")) org-babel-load-languages '((shell . t) (emacs-lisp . t)) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-fu= nction org-latex-compiler "xelatex" org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) --_000_PS1PR0401MB14665C7583A3BEFB2079B85FCE220PS1PR0401MB1466_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

Thanks for the cool job done with Org mode and I'm happily living with
it everyday now :)

One issue's been annoying me recently though, when exporting org files
with footnotes to org format, all the footnotes are missing in the result org file. This may not look like a common use case but when ox-pandoc
comes to picture it is one, as ox-pandoc use org as an intermediate
format for any conversion.

I suspect it's an org mode bug because I got the same result even after I r= emoved ox-pandoc
and use the original Org Export Dispatcher.

Org mode + ox-pandoc is such a sweet combination that I really would li= ke to
get help on this issue. 

Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin16.1.0, Carbon Version 1= 57 AppKit 1504.6)
 of 2017-02-14
Package: Org mode version 9.0.5 (9.0.5-elpa @ ~/.emacs.d/elpa/org-20170210/= )

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 org-id-locations-file "~/.emacs.d/.cache/.org-id-locations"=
 org-footnote-auto-adjust t
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                     = ; org-babel-header-arg-expand)
 org-latex-classes '(("beamer"
                     = ; "\\documentclass{beamer}\n           \\usep= ackage[fntef,nofonts,fancyhdr]{ctex}" org-beamer-sectioning)
                     = ;("ctexbook"
                     = ; "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]{ctexbook}"= ;
                     = ; ("\\part{%s}" . "\\part*{%s}")
                     = ; ("\\chapter{%s}" . "\\chapter*{%s}")
                     = ; ("\\section{%s}" . "\\section*{%s}")
                     = ; ("\\subsection{%s}" . "\\subsection*{%s}")
                     = ; ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     = ;("ctexrep"
                     = ; "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]{ctexrep}"=
                     = ; ("\\part{%s}" . "\\part*{%s}")
                     = ; ("\\chapter{%s}" . "\\chapter*{%s}")
                     = ; ("\\section{%s}" . "\\section*{%s}")
                     = ; ("\\subsection{%s}" . "\\subsection*{%s}")
                     = ; ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     = ;("ctexart"
                     = ; "\\documentclass[fancyhdr,fntef,UTF8,a4paper,cs4size]{ctexart}"=
                     = ; ("\\section{%s}" . "\\section*{%s}")
                     = ; ("\\subsection{%s}" . "\\subsection*{%s}")
                     = ; ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                     = ; ("\\paragraph{%s}" . "\\paragraph*{%s}")
                     = ; ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     = ;)
 org-clock-persist-file "~/.emacs.d/.cache/org-clock-save.el"= ;
 org-speed-command-hook '(org-speed-command-default-hook
                     = ;     org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-imenu-depth 8
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(closure
                     = ;              (htmlize-buffer-places                      = ;               org-html-format-table-no= -css
                     = ;               htmlize-css-name-prefix = htmlize-output-type
                     = ;               htmlize-output-type html= ize-css-name-prefix t)
                     = ;              (_name contents) contents= )
 org-log-done 'time
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-def= ault-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-image-actual-width nil
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-def= ault
 org-link-translation-function 'toc-org-unhrefify
 org-present-mode-hook '(spacemacs//org-present-start)
 org-agenda-restore-windows-after-quit t
 org-latex-format-headline-function 'org-latex-format-headline-default= -function
 org-default-notes-file "notes.org"
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(closure (t) (_ contents) contents)=
 org-odt-format-headline-function 'org-odt-format-headline-default-fun= ction
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     = ;org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
                   [add-h= ook change-major-mode-hook org-show-block-all append
                    local= ]
                   5 &quo= t;\n\n(fn)"]
                 #[0 "\30= 0\301\302\303\304$\207"
                   [add-h= ook change-major-mode-hook org-babel-show-result-all
                    appen= d local]
                   5 &quo= t;\n\n(fn)"]
                 org-babel-res= ult-hide-spec org-babel-hide-all-hashes
                 fcitx--org-mo= de-hook spacemacs/load-yasnippet toc-org-enable
                 (lambda nil                   (set
                   (make-= local-variable
                    (quot= e pangu-spacing-real-insert-separtor))
                   t)
                  )
                 org-download-= enable org-bullets-mode
                 spacemacs//or= g-babel-do-load-languages
                 spacemacs/add= -org-surrounds evil-org-mode org-eldoc-load
                 spacemacs//in= it-company-org-mode company-mode)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(closure (t) (_name contents _width= ) contents)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default= -function
 org-directory "~/Sync/data/Dropbox/doc/org/"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-draw= ers
                  org-cycle-sh= ow-empty-lines
                  org-optimize= -window-after-visibility-change)
 org-publish-timestamp-directory "~/.emacs.d/.cache/.org-timestam= ps/"
 org-present-mode-quit-hook '(spacemacs//org-present-end)
 org-export-async-init-file "~/.emacs.d/layers/+emacs/org/loc= al/org-async-init.el"
 org-export-initial-scope 'subtree
 org-download-annotate-function 'org-download-annotate-default
 org-confirm-elisp-link-function 'yes-or-no-p
 org-startup-with-inline-images t
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-odt-format-drawer-function '(closure
                     = ;             (hfy-user-sheet-assoc hfy-html-= quote-regex
                     = ;              hfy-html-quote-map hfy-fa= ce-to-css
                     = ;              hfy-begin-span-handler hf= y-end-span-handler
                     = ;              archive-zip-extract
                     = ;              nxml-auto-insert-xml-decl= aration-flag t)
                     = ;             (_name contents) contents)
 org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
 org-latex-default-class "ctexart"
 org-html-format-headline-function 'org-html-format-headline-default-f= unction
 org-link-parameters '(("id" :follow org-id-open)
                     = ;  ("rmail" :follow org-rmail-open :store
                     = ;   org-rmail-store-link)
                     = ;  ("mhe" :follow org-mhe-open :store org-mhe-store-link)                      = ;  ("irc" :follow org-irc-visit :store org-irc-store-link)                      = ;  ("info" :follow org-info-open :export org-info-export
                     = ;   :store org-info-store-link)
                     = ;  ("gnus" :follow org-gnus-open :store org-gnus-store-link)=
                     = ;  ("docview" :follow org-docview-open :export
                     = ;   org-docview-export :store org-docview-store-link)
                     = ;  ("bibtex" :follow org-bibtex-open :store
                     = ;   org-bibtex-store-link)
                     = ;  ("bbdb" :follow org-bbdb-open :export org-bbdb-export
                     = ;   :complete org-bbdb-complete-link :store
                     = ;   org-bbdb-store-link)
                     = ;  ("w3m" :store org-w3m-store-link) ("file+sys&quo= t;)
                     = ;  ("file+emacs")
                     = ;  ("orgit-rev" :store orgit-rev-store :follow orgit-rev-ope= n
                     = ;   :export orgit-rev-export)
                     = ;  ("orgit-log" :store orgit-log-store :follow orgit-log-ope= n
                     = ;   :export orgit-log-export)
                     = ;  ("orgit" :store orgit-status-store :follow
                     = ;   orgit-status-open :export orgit-status-export)
                     = ;  ("doi" :follow org--open-doi-link)
                     = ;  ("elisp" :follow org--open-elisp-link)
                     = ;  ("file" :complete org-file-complete-link)
                     = ;  ("ftp" :follow
                     = ;   (lambda (path) (browse-url (concat "ftp:" path))))
                     = ;  ("help" :follow org--open-help-link)
                     = ;  ("http" :follow
                     = ;   (lambda (path) (browse-url (concat "http:" path))))
                     = ;  ("https" :follow
                     = ;   (lambda (path) (browse-url (concat "https:" path))))
                     = ;  ("mailto" :follow
                     = ;   (lambda (path) (browse-url (concat "mailto:" path))))                      = ;  ("message" :follow
                     = ;   (lambda (path) (browse-url (concat "message:" path))))                      = ;  ("news" :follow
                     = ;   (lambda (path) (browse-url (concat "news:" path))))
                     = ;  ("shell" :follow org--open-shell-link))
 org-structure-template-alist '(("n" "#+BEGIN_NOTES= \n?\n#+END_NOTES")
                     = ;           ("s" "#+BEGIN_SRC ?= \n\n#+END_SRC")
                     = ;           ("e" "#+BEGIN_EXAMP= LE\n?\n#+END_EXAMPLE")
                     = ;           ("q" "#+BEGIN_QUOTE= \n?\n#+END_QUOTE")
                     = ;           ("v" "#+BEGIN_VERSE= \n?\n#+END_VERSE")
                     = ;           ("V" "#+BEGIN_VERBA= TIM\n?\n#+END_VERBATIM")
                     = ;           ("c" "#+BEGIN_CENTE= R\n?\n#+END_CENTER")
                     = ;           ("l" "#+BEGIN_EXPOR= T latex\n?\n#+END_EXPORT")
                     = ;           ("L" "#+LaTeX: &quo= t;)
                     = ;           ("h" "#+BEGIN_EXPOR= T html\n?\n#+END_EXPORT")
                     = ;           ("H" "#+HTML: "= ;)
                     = ;           ("a" "#+BEGIN_EXPOR= T ascii\n?\n#+END_EXPORT")
                     = ;           ("A" "#+ASCII: &quo= t;) ("i" "#+INDEX: ?")
                     = ;           ("I" "#+INCLUDE: %f= ile ?"))
 org-babel-load-languages '((shell . t) (emacs-lisp . t))
 org-html-format-inlinetask-function 'org-html-format-inlinetask-defau= lt-function
 org-latex-compiler "xelatex"
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

--_000_PS1PR0401MB14665C7583A3BEFB2079B85FCE220PS1PR0401MB1466_--