Dear all,
the exporter will use the tabbing environment.
The benefits of using tabbing over tabular:
- Can span multiple pages (also possible with long tables).
- Cell width is fixed and does not depend on the content.
- Cells can overflow.
Use cases of tabbing:
- Generate letter headings with fixed layout
- Generate tables on invoices
- Can replace multi-columns (my personal use case)
Example 1:
#+ATTR_LATEX: :mode tabbing
| A | B |
| | C |
is exported to
\begin{tabbing}
\hspace{0.49\textwidth} \= \hspace{0.49\textwidth} \= \kill
A \> B\\
\> C\\
\end{tabbing}
Example 2:
#+ATTR_LATEX: :mode tabbing
| *Address* | Some street 100, box 101 | | *GSM* | 00 000 00 00 00 |
the exported pdf is attached to this mail.
Example 3:
#+ATTR_LATEX: :mode tabbing :align \hspace{2cm} \= \hspace{2cm} \= \kill
| name: | A very long product name in this cell | |
| options: | option 1 | 1 |
| | option 2 | 1 |
| | option 3 | 0 |
the exported pdf is attached to this mail.
Implementation details:
- The table environment must be set to tabbing
- The cell separators must be set to \>
- The alignment string must be updated.
Kind regards,
Bob Vergauwen