简体   繁体   中英

Cannot export tables to latex in org-mode

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 Cc ed , 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

Mx 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, ie 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 Mx 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 Cx Ce . 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM