metanohi/site/projects/mege/tests/tables.org

81 lines
1.7 KiB
Org Mode
Raw Normal View History

2011-07-26 03:04:17 +02:00
#+title: Test of mege tables
#&summary
Tables in mege
#&
#+license: bysa
* Test of mege tables
2011-08-01 22:39:41 +02:00
While the <@eval macros.titlelink('basics')@> does include
2011-07-26 03:04:17 +02:00
tables, this test contains more. And they're all different.
2011-08-01 22:39:41 +02:00
** Basic table
2011-07-26 03:04:17 +02:00
2011-08-01 22:39:41 +02:00
| Name | Age |
| Xryurg | 300 |
| Bkrau | 2 |
2011-07-26 03:04:17 +02:00
2011-08-01 22:39:41 +02:00
** With header
| Name | Age |
|--------+-----|
| Xryurg | 300 |
| Bkrau | 2 |
** With header and footer
| Name | Age |
|--------+-----|
| Xryurg | 300 |
| Bkrau | 2 |
|--------+-----|
| Name | Age |
2011-08-10 23:35:57 +02:00
** With caption
#+caption: Persons
| Name | Age |
|--------+-----|
| Xryurg | 300 |
| Bkrau | 2 |
2011-08-01 22:39:41 +02:00
** Inline formatting in table
| URL | Exists |
|-----------------+--------|
| [[example.com]] | *Yes* |
| [[abc.example.com]] | /No/ |
** Complex table
| Number | Target | Measured | Deviation |
|--------+--------+----------+---------------|
| 0 | 697 | 694 | 0.43 `percent |
| 1 | 697 | 694 | 0.43 `percent |
| 2 | 697 | 692 | 0.72 `percent |
| 3 | 770 | 764 | 0.78 `percent |
| 4 | 770 | 762 | 1.04 `percent |
| 5 | 770 | 762 | 1.04 `percent |
| 6 | 852 | 844 | 0.94 `percent |
| 7 | 852 | 844 | 0.94 `percent |
| 8 | 852 | 844 | 0.94 `percent |
| 9 | 941 | 930 | 1.17 `percent |
| A | 941 | 929 | 1.28 `percent |
| B | 941 | 929 | 1.28 `percent |
| C | 697 | 704 | 1.00 `percent |
| D | 770 | 776 | 0.78 `percent |
| E | 852 | 844 | 0.94 `percent |
| F | 941 | 946 | 0.53 `percent |
#+TBLFM: $4=abs($3-$2)/$2 %;%.2f `percent
** Escaped table
\| A | B |
| B | C |
** Over-escaped tables
\\| O |
\\\| P |