emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tables with column and row numbers
@ 2016-09-23 12:18 Uwe Brauer
  0 siblings, 0 replies; only message in thread
From: Uwe Brauer @ 2016-09-23 12:18 UTC (permalink / raw)
  To: emacs-orgmode


Hi I found parts of the solution on that list but the following example
generates a table with column and row numbers.

  | 1 | 2         | 3         | 4 | 5 |
  |---+-----------+-----------+---+---|
  | 1 | x1        |           |   |   |
  | 2 | some data | more data |   |   |
  |---+-----------+-----------+---+---|
  | 3 | more      | data      |   |   |
  | 4 |           |           |   |   |
  | 5 |           |           |   |   |
#+TBLFM: @1=vlen(@I$1..0);EN::$1=@#-1

I am not sure whether this is the most elegant or robust solution but
maybe some words in the manual wouldn't harm.

Uwe Brauer 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-23 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 12:18 tables with column and row numbers Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).