go-org-orgwiki/org/testdata/tables.org
Niklas Fasching f28f400d7e Add table pretty printing & alignment
Also dismissed implementing colgroups for now - had it but didn't like the
added complexity for a very questionable benefit - i've actually never used
that feature of org tables...
2018-12-14 15:49:40 +01:00

29 lines
833 B
Org Mode

#+CAPTION: table with separator before and after header
|---+---+---|
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
#+CAPTION: table with separator after header
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
#+CAPTION: table without header (but separator before)
|---+---+---|
| 1 | 2 | 3 |
#+CAPTION: table without header
| 1 | 2 | 3 |
#+CAPTION: table with aligned columns
| left aligned | right aligned | center aligned |
|--------------+---------------+----------------|
| <l> | <r> | <c> |
| 42 | 42 | 42 |
| foobar | foobar | foobar |
#+CAPTION: table with right aligned columns (because numbers)
| long column a | long column b | long column c |
|---------------+---------------+---------------|
| 1 | 2 | 3 |