我在两台不同的机器上使用 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,但组织版本相同,我有以下选项...
[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。
无论如何,理论上它们都使用标准的、已安装的基本组织包,该包在两台机器上都保持更新。是什么导致了导出选择上的如此差异?熟悉组织模式导出的人是否认识到不同的菜单样式足以提供一些指导?
最佳答案
对于组织模式版本 8.x
我将以下代码片段添加到了 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))
关于emacs - 组织模式导出选项,例如 ODT、beamer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23272314/