为emacs配置org-odt-export

时间:2015-11-15 04:35:28

标签: emacs org-mode odt

GNU Emacs 24.3.1(x86_64-pc-linux-gnu,GTK + 3.10.7版) 组织模式版本8.3.2(org-20151005)

org-odt相关配置在我的.emacs中:

;;ox-odt

(require 'ox-odt) ;;/usr/share/emacs/site-list/org-mode/etc (setq org-odt-data-dir "/usr/share/emacs/24.3/etc/org/styles")

样式文件夹包含: 1. od-manifest-schema-v1.2-os.rnc 2. od-schema-v1.2-os.rnc 3. OrgOdtContentTemplate.xml 4. OrgOdtStyles.xml 5. schemas.xml

其他.emacs配置通过M-x自定义变量RET设置 (custom-set-variables '(org-export-backends (quote (ascii html icalendar latex odt taskjuggler))) '(org-odt-convert-process "LibreOffice") '(org-odt-preferred-output-format "odt")) 但是当试图通过C-c C-e o O将cvArun.org文件转换为odt时,迷你缓冲区说 - No such file: /home/deadlytackler/Documents/AKK/cvArun.odt 全局启用错误调试,但它不提供任何“回溯”。 消息有以下消息 - `

    LaTeX to MathML converter not available.
    Formatting LaTeX using verbatim
    Wrote /tmp/odt-2666UgV/meta.xml
    Using vacuous schema [2 times]
    Saving file /tmp/odt-2666UgV/styles.xml...
    Wrote /tmp/odt-2666UgV/styles.xml
    Using vacuous schema
    Wrote /tmp/odt-2666UgV/mimetype
    Using vacuous schema
    Saving file /tmp/odt-2666UgV/META-INF/manifest.xml...
    Wrote /tmp/odt-2666UgV/META-INF/manifest.xml
    Saving file /tmp/odt-2666UgV/content.xml...
    Wrote /tmp/odt-2666UgV/content.xml
    (No changes need to be saved)
    Creating ODT file...
    Running zip -mX0 cvArun.odt mimetype
    Running zip -rmTq cvArun.odt .
    Created /home/deadlytackler/Documents/AKK/cvArun.odt
    Executing soffice --headless --convert-to odt --outdir /home/deadlytackler/Documents/AKK/ /home/deadlytackler/Documents/AKK/cvArun.odt
    Error: source file could not be loaded

    Export to /home/deadlytackler/Documents/AKK/cvArun.odt failed
    user-error: No such file: /home/deadlytackler/Documents/AKK/cvArun.odt

任何正确配置org-odt的帮助都会受到高度赞赏,因为无法找到阻止其加载源文件的内容(错误)。

1 个答案:

答案 0 :(得分:2)

我最近遇到了同样的错误,设置

  

ORG-ODT-优选输出格式

odt doc 导致相同的错误。 docx 似乎工作正常。通过使用-Q运行emacs并加载

来找到它
(require 'ox-odt)

删除我的配置。