emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: WY H <jcjuly@outlook.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <PS1PR0401MB14665C7583A3BEFB2079B85FCE220@PS1PR0401MB1466.apcprd04.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 10519 bytes --]

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 removed ox-pandoc
and use the original Org Export Dispatcher.

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

Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin16.1.0, Carbon Version 157 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:
==============
(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[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 htmlize-css-name-prefix 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-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-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 append
                    local]
                   5 "\n\n(fn)"]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-result-all
                    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-enable
                 (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) 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-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-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-face-to-css
                                   hfy-begin-span-handler hfy-end-span-handler
                                   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-function
 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")
                       ("file+emacs")
                       ("orgit-rev" :store orgit-rev-store :follow orgit-rev-open
                        :export orgit-rev-export)
                       ("orgit-log" :store orgit-log-store :follow orgit-log-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-function
 org-latex-compiler "xelatex"
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


[-- Attachment #2: Type: text/html, Size: 19999 bytes --]

             reply	other threads:[~2017-03-12  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12  8:03 WY H [this message]
2017-03-12 10:36 ` Bug: Missing footnotes when exporting to org file [9.0.5 (9.0.5-elpa @ ~/.emacs.d/elpa/org-20170210/)] Nicolas Goaziou
     [not found]   ` <PS1PR0401MB1466038BA2311FC7AB73DF80CE240@PS1PR0401MB1466.apcprd04.prod.outlook.com>
2017-03-15  7:12     ` WY H
2017-03-15 13:32       ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PS1PR0401MB14665C7583A3BEFB2079B85FCE220@PS1PR0401MB1466.apcprd04.prod.outlook.com \
    --to=jcjuly@outlook.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).