Next: Images in ODT export, Previous: Links in ODT export, Up: OpenDocument Text export [Contents][Index]
Export of native Org mode tables (see Tables) and simple table.el tables is supported. However, export of complex table.el tables—tables that have column or row spans—is not supported. Such tables are stripped from the exported document.
By default, a table is exported with top and bottom frames and with rules separating row and column groups (see Column groups). Furthermore, all tables are typeset to occupy the same width. If the table specifies alignment and relative width for its columns (see Column width and alignment) then these are honored on export.153
You can control the width of the table by specifying :rel-width
property using an #+ATTR_ODT
line.
For example, consider the following table which makes use of all the rules mentioned above.
#+ATTR_ODT: :rel-width 50 | Area/Month | Jan | Feb | Mar | Sum | |---------------+-------+-------+-------+-------| | / | < | | | < | | <l13> | <r5> | <r5> | <r5> | <r6> | | North America | 1 | 21 | 926 | 948 | | Middle East | 6 | 75 | 844 | 925 | | Asia Pacific | 9 | 27 | 790 | 826 | |---------------+-------+-------+-------+-------| | Sum | 16 | 123 | 2560 | 2699 |
On export, the table will occupy 50% of text area. The columns will be sized (roughly) in the ratio of 13:5:5:5:6. The first column will be left-aligned and rest of the columns will be right-aligned. There will be vertical rules after separating the header and last columns from other columns. There will be horizontal rules separating the header and last rows from other rows.
If you are not satisfied with the above formatting options, you can create
custom table styles and associate them with a table using the
#+ATTR_ODT
line. See Customizing tables in ODT export.
The column widths are interpreted as weighted ratios with the default weight being 1
Next: Images in ODT export, Previous: Links in ODT export, Up: OpenDocument Text export [Contents][Index]