Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Giving a table a name in org-mode

I'm taking my first steps in org mode. In the spreadsheet section, they give an example:

$3 = remote(FOO, @@#$2)

Where FOO is another table. However, they don't explain how can I give a name to a table. Does any of you know how to do this?

like image 585
Yotam Avatar asked Dec 16 '11 20:12

Yotam


People also ask

How do you make a table in Org mode?

The easiest way to create a table is to directly type the "|" character at the beginning of a line, or after any amount of white space. This will put you in the first field of an atomic table. Once you've finished editing this cell, you can jump to the next one by pressing TAB .

What can you do with Org mode?

Org Mode offers the ability to insert source code in the document being edited, which is automatically exported and/or executed when exporting the document; the result(s) produced by this code can be automatically fetched back in the resulting output.

How do you sum a column in an Org mode table?

Adding formulas When you have a table, many times you want to calculate the sum of columns, or specific fields. Org-mode uses the calc module that is usually part of Emacs. The simplest calculation you want to do is to summarise the current column, you do this with 'C-c +'. The result will show up in the mini-buffer.

How do I create a table in Emacs?

To create a text-based table from scratch, type M-x table-insert . This command prompts for the number of table columns, the number of table rows, cell width and cell height.


1 Answers

Put the line

#+NAME: FOO

immediately before the table.

This applies for all current versions of org, i.e. 8.x and later. For earlier versions of org, use

#+TBLNAME: FOO
like image 137
ataylor Avatar answered Oct 12 '22 13:10

ataylor