Emacs 如何在组织模式下以ODT导出?

Emacs 如何在组织模式下以ODT导出?,emacs,zip,org-mode,opendocument,Emacs,Zip,Org Mode,Opendocument,当使用组织模式时,我希望能够以ODT格式保存我的组织文件(这里称为pad.org)。以下是我在尝试保存pad.org文件时得到的信息 Auto-saving...done org-babel-exp process python at position 2716... Evaluate this python code block on your system? (y or n) n Evaluation of this python code block is aborted. LaTeX t

当使用组织模式时,我希望能够以ODT格式保存我的组织文件(这里称为pad.org)。以下是我在尝试保存pad.org文件时得到的信息

Auto-saving...done
org-babel-exp process python at position 2716...
Evaluate this python code block on your system? (y or n) n
Evaluation of this python code block is aborted.
LaTeX to MathML converter not available.
Formatting LaTeX using verbatim
Embedding c:/Users/Julien/Documents/ORG/img/IMG_3130.jpg as Images/0001.jpg...
Embedding c:/Users/Julien/Documents/ORG/img/ergoemacs-layout-fr.png as Images/0002.png...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/meta.xml
Using schema c:/Emacs/emacs-26.3-x86_64/share/emacs/26.3/etc/schema/od-schema-v1.2-os.rnc [2 times]
Saving file c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/styles.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/styles.xml
Using vacuous schema
Wrote c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/mimetype
Using vacuous schema
Saving file c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/META-INF/manifest.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/META-INF/manifest.xml
Saving file c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/content.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-ANDdwG/content.xml
Creating ODT file...
Running zip -mX0 pad.odt mimetype
当zip.exe运行时,GUI打开,我收到错误消息

Can't open -mX0 pad.odt
我是Windows10上emacs和组织模式的新用户。在.emacs文件中,我有以下几行:

;; Load ODT backend to allow for exporting to open document format.
(eval-after-load "org" '(require 'ox-odt nil t))

;;set env for odt
(setenv "PATH" (concat (getenv "PATH") ";" "C:\zip"))
    (setq exec-path (append exec-path '("C:\zip")))
在文件夹C:\zip中,我放置了zip可执行文件(实际上Wiz.exe重命名为zip.exe)。使用命令C-xc-eoo,我得到上面提到的错误消息

我也试过使用7z.exe。但在这种情况下,我有一个错误消息:

Embedding c:/Users/Julien/Documents/ORG/img/ergoemacs-layout-fr.png as Images/0002.png...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/meta.xml
Using schema c:/Emacs/emacs-26.3-x86_64/share/emacs/26.3/etc/schema/od-schema-v1.2-os.rnc [2 times]
Saving file c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/styles.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/styles.xml
Using vacuous schema
Wrote c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/mimetype
Using vacuous schema
Saving file c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/META-INF/manifest.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/META-INF/manifest.xml
Saving file c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/content.xml...
Wrote c:/Users/Julien/AppData/Local/Temp/odt-gAEsLl/content.xml
Creating ODT file...
Running zip -mX0 pad.odt mimetype
OpenDocument export failed: Unable to create OpenDocument file.  Zip failed with error (
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
基于,您可以从以下链接使用
zip

  • 根据,您还可以从以下位置获取
    zip
    可执行文件:


    可能未重新列出,但在设置路径时,您似乎缺少了一个
    路径分隔符
    ,例如
    (concat(getenv…)路径分隔符…
    谢谢。我更正了添加“;”(正确吗?)。然而,这个问题仍然没有解决。我更新了我的问题并添加了更多信息。我会使用变量
    路径分隔符
    而不是“;”,但如果只使用windows,则不必使用anks!我现在能够以odt格式导出。我认为问题在于我使用了错误的zip和unzip可执行文件。第一步,我使用GUI。我卸载了openoffice,安装了libreoffice(不知道这样做是否至关重要)。我从下载了zip可执行文件。然后,需要解压.exe。我在那里找到的。在运行unzip.exe进行安装后,我将funzip.exe放在zip文件夹中,并将其重命名为unzip.exe。