如何在emacs org-mode中启用并行PDF导出

Leu*_*ady 2 parallel-processing emacs elisp org-mode emacs24

最近我开始用org-mode写一篇很长的文章.我的文章包含大量的图像,表格和代码.因此,当我将我的组织文件导入pdf时,emacs将冻结超过一分钟以生成pdf文件.但是在我看来,我想在出口期间继续撰写或更正我的文章.

所以问题是,emacs可以并行处理多个线程或多个处理器的导出吗?

Dai*_*rod 6

当然可以,这是emacs!

(info "(org) The export dispatcher")

'C-a'切换异步导出.异步导出使用配置有指定初始化文件的外部Emacs进程.

 While exporting asynchronously, the output is not displayed.  It is
 stored in a list called “the export stack”, and can be viewed from
 there.  The stack can be reached by calling the dispatcher with a
 double ‘C-u’ prefix argument, or with ‘&’ key from the dispatcher.

 To make this behavior the default, customize the variable
 ‘org-export-in-background’.
Run Code Online (Sandbox Code Playgroud)

因此,您可以像这样异步导出到PDF : C-eC-alp.

  • @ user3173715,如果你使用类似`(global-set-key [f3] (lambda () (interactive) (org-latex-export-to-pdf t)))` 的东西怎么办?(`t` 是 `ASYNC` 选项)。 (2认同)