【问题标题】:Org mode export options, such as ODT, beamerOrg 模式导出选项,例如 ODT、beamer
【发布时间】:2014-04-24 14:47:27
【问题描述】:

我在两台不同的机器上使用 emacs,尽管具有相同的 init.el 文件和相同的包库,但它们似乎安装了不同的包集,具有很多不同的行为。我最注意到这一点的地方是我的组织模式导出选项。

两台机器都安装了 org 版本 2012422。

例如,在一台(好的、新的)机器上,我可以安全地导出到 ODT。

[t]   insert the export option template
[v]   limit export to visible part of outline tree
[1]   switch buffer/subtree
[SPC] pubish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)

[a/n/u] export as ASCII/Latin-1/UTF-8   [A/N/U] to temporary buffer

[h] export as HTML     [H] to temporary buffer   [R] export region
[b] export as HTML and open in browser

[l] export as LaTeX    [L] to temporary buffer
[p] export as LaTeX and process to PDF           [d] ... and open PDF file

[D] export as DocBook  [V] export as DocBook, process to PDF, and open

[o] export as OpenDocument Text                  [O] ... and open

[j] export as TaskJuggler                        [J] ... and open

[m] export as Freemind mind map
[x] export as XOXO
[g] export using Wes Hardaker's generic exporter

[i] export current file as iCalendar file
[I] export all agenda files as iCalendar files   [c] ...as one combined file

[F] publish current file           [P] publish current projects
[X] publish a project...           [E] publish every projects

(对不起,如果上面有任何错误:顺便说一下,这都是手动输入的。我实际上无法选择当我键入 C-c C-e 时弹出的选项缓冲区;底部缓冲区刚刚开始记录我的切换尝试缓冲区,甚至我的鼠标点击,这令人沮丧。)

在另一台机器上,它安装了较旧的 emacs,但 org 版本相同,我有以下选项...

[C-b] Body only:    Off       [C-v] Visible only:     Off
[C-s] Export scope: Buffer    [C-f] Force publishing: Off
[C-a] Async export: Off

[c] Export to iCalendar
    [f] Current file          [a] All agenda files
    [c] Combine all agenda files

[h] Export to HTML
    [H] As HTML buffer        [h] As HTML file
    [o] As HTML file and open

[l] Export to LaTeX
    [L] As LaTeX buffer       [l] As LaTeX file
    [p] As PDF file           [o] As PDF file and open

[t] Export to Plain Text
    [A] As ASCII buffer       [a] As ASCII file
    [L] As Latin1 buffer      [l] As Latin1 file
    [U} As UTF-8 buffer       [u] As UTF-8 file

[P] Publish
    [f] Current file          [p] Current project
    [x] Choose project        [a] All Projects

[&] Export stack              [#] Insert template
[q] Exit

我更喜欢后者的组织方式,但它缺少第一个具有的导出功能,例如我经常使用的 ODT。

无论如何,理论上它们都使用标准的、已安装的基本 org 包,该包在两台机器上都保持更新。是什么导致了出口选择上的这种差异?熟悉 org 模式导出的人是否认识到不同的菜单样式足以给出一些指示?

【问题讨论】:

  • 你能在第二个例子中手动M-x org-odt-export-to-odt吗?另外,请使用M-x org-version 确认您拥有相同版本的 Org-mode。
  • 当我手动导出时,我得到... OpenDocument export failed: wrong type argument: stringp, nil.
  • 机器 1 有 org...7.9.3f (... /usr/share/emacs/24.3/list/org) 机器 2 有 org...8.2.6 (... /home/mittenchops/.emacs.d/elpa/org-*) 嗯,好吧,这很奇怪。他们在M-x list-packages 中有相同的号码。这也很奇怪,因为机器 1 似乎比机器 2 给了我更多的功能。

标签: emacs org-mode


【解决方案1】:

对于 org-mode 版本 8.x

我将以下 sn-p 添加到我的 init.el 中,现在当我在 org-mode 中执行 C-c C-e 时,我看到了导出为 ODT 格式的选项。

;; Enable org export to odt (OpenDocument Text)
;; It is disabled by default in org 8.x
(eval-after-load "org"
  '(require 'ox-odt nil t))

【讨论】:

    【解决方案2】:

    根据上面 Chris 的建议,我看到答案是在机器 2 上从 here 执行更新/安装步骤。

    所以,我不得不将~/.emacs.d/elpa/org-* 添加到我的加载路径中,唉:

    (add-to-list 'load-path "~/path/to/orgdir/lisp")
    

    现在,我可以导出到 ODF。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多