在org-mode中无法将表导出到latex [英] Cannot export tables to latex in org-mode

查看:84
本文介绍了在org-mode中无法将表导出到latex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行以下操作:


  1. 我有一个 .org 文件与下表:

      | 1 | 2 | 3 | 4 | 5 | 
    | --- + --- + --- + --- + --- |
    | a | b | c | d | e |


  2. 我按下 Cc ed 时出现以下错误,键绑定导出到LaTeX并处理PDF:


    符号的函数定义为void: org-babel-exp -process-buffer



我正在使用组织在Emacs 24.3.1上的模式版本7.9.3f。



导出 .org 没有表格的文件工作顺利。 / p>

以下是链接< a>到我的 .emacs 如果有人需要看看。

p>您正在运行 org-mode 的过期版本。您可以通过执行



Mx package-install RET org RET



请注意,如果您从




在没有 .org 文件访问的会话中,即没有 org 已经加载了内置函数。


如解释这里。为了确保这种情况,请通过 emacs -Q 启动Emacs然后安装 org 如上所述。






考虑到您的当前配置,下一步是移动这个

'(melpa。http://melpa.milkbox.net/packages/)t))

.emacs 文件的底部到顶部,并注释掉所有 org 相关的自定义。通过将呼叫转移到 package-initialize 到您的 .emacs 文件的顶部,您将确保通过在您的自定义配置加载之前加载包管理器。



当您重新启动Emacs(没有 -Q 选项),然后执行 Mx org-version RET ,现在应该给你一些类似 8.2 .6 ,导出表格应该可以正常运行。






作为最后一步,通过取消注释它们并通过 Cx Ce 对它们进行评估,从而使您的 org 相关的自定义项逐个启用。如果您收到任何错误,这意味着新的 org 版本引入了一些与您的代码尝试执行的更改不相容的更改。在这种情况下,您可能想要单独提出问题。


I am trying to do the following:

  1. I have an .org file with the following table:

    | 1 | 2 | 3 | 4 | 5 |  
    |---+---+---+---+---|
    | a | b | c | d | e |
    

  2. I get the following error on pressing C-c e d, the key binding to export to LaTeX and process the PDF:

    Symbol's function definition is void: org-babel-exp-process-buffer

I am using Org-mode version 7.9.3f on Emacs 24.3.1.

Exporting .org files without tables works smoothly.

Here is a link to my .emacs if anyone needs to have a look.

解决方案

You are running an outdated version of org-mode. You can upgrade to a newer version by doing

M-x package-install RET org RET

Note that if you are upgrading from the built-in version of org-mode, you need to do the installation

in a session where no .org file has been visited, i.e. where no org built-in functions have been loaded.

as explained here. To ensure that this is the case, start Emacs via emacs -Q and then install org as described above.


Taking into account your current configuration, the next step is to move this

(when (>= emacs-major-version 24)
  (require 'package)
  (package-initialize)
  (add-to-list 'package-archives
               '("melpa" . "http://melpa.milkbox.net/packages/") t))

from the bottom to the very top of your .emacs file, and comment out all org-related customizations for now. By moving the call to package-initialize to the top of your .emacs file you are making sure all packages installed via the package manager are loaded before your custom configuration is loaded.

When you restart Emacs (without the -Q option) and do M-x org-version RET, it should now give you something like 8.2.6, and exporting tables should work fine.


As a last step, re-enable your org-related customizations one by one by uncommenting them and evaluating them via C-x C-e. If you get any errors, this means the new org version introduced some changes that are incompatible with what your code is trying to do. In that case you might want to ask a separate question.

这篇关于在org-mode中无法将表导出到latex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆