我在两台不同的机器上使用emacs,尽管有相同的init.el文件和相同的软件包库,但它们似乎安装了不同的软件包集,并且有很多不同的行为。我最常注意到的地方是我的组织模式导出选项。
两台机器都安装了组织版本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
(很抱歉,如果上面有任何错误:顺便说一句,这都是手工输入的。我实际上无法选择当我输入Cc Ce时弹出的选项缓冲区;底部缓冲区刚开始记录我尝试切换缓冲甚至我的鼠标点击,这是令人沮丧的。)
在另一台安装了较旧emacs但机器版本相同的机器上,我有以下选项......
[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。
无论如何,它们在理论上都使用标准的,已安装的基础组织包,并在两台机器上保持更新。什么可能导致出口选择的这种差异?熟悉组织模式导出的人是否认识到不同的菜单样式足以提供一些指示?
答案 0 :(得分:3)
我将以下代码段添加到init.el
,现在我在C-c C-e
org-mode
;; 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))
时看到导出为ODT格式的选项。
{{1}}
答案 1 :(得分:0)
根据Chris上面的建议,我看到答案是在here的机器2上执行更新/安装步骤。
所以,我必须将~/.emacs.d/elpa/org-*
添加到我的加载路径,la:
(add-to-list 'load-path "~/path/to/orgdir/lisp")
现在,我可以导出到ODF。