Reputation: 23
I have an org-mode document with a table and several formulas. For better readability I'd like to have one line per formula. According to org-mode documentation this should be possible. However, the example "using multiple #+TBLFM" lines from this site http://orgmode.org/manual/Editing-and-debugging-formulas.html doesn't work for me. When I C-c C-c on the second formula line of the example table (see below) nothing happens.
| x | y |
|---+---|
| 1 | 1 |
| 2 | 2 |
#+TBLFM: $2=$1*1
#+TBLFM: $2=$1*2
Can anybody point me to a solution (other than having the formulas in one line separated by double colons)? I'm using Emacs 24.3.1 on Ubuntu 12.04 LTS.
Upvotes: 2
Views: 3612
Reputation:
I have the following in my init file to install the latest org-mode
. I keep it earlier in my init file so that it is executed before the org-mode shipped with emacs is loaded
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(unless (package-installed-p 'org-plus-contrib)
(package-refresh-contents)
(package-install 'org-plus-contrib))
The package org-plus-contrib
installs the latest org-mode
plus some additional addons for org-mode
. I guess the statement
contains the same set of files that are included in GNU Emacs
Refers to the fact that org
package does not include the contrib
packages.
Upvotes: 0
Reputation: 137116
The documentation that you linked to is for the latest release of org-mode
, which is currently version 8.2.5.
Documentation for table formulas in version 7.9.3f, which is shipped with Emacs, does not mention support for multiple #+TBLFM
lines.
It is possible to upgrade org-mode
to a version that supports multiple #+TBLFM
lines. I recommend using the official org-mode
ELPA repository, which you'll have to add to your package-archives
list (see the link for details).
Upvotes: 2