[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ox-latex table tabbing support.
From: |
emacs |
Subject: |
ox-latex table tabbing support. |
Date: |
Mon, 28 Mar 2022 16:38:16 +0200 (CEST) |
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
0001-ox-latex.el-Added-padding-support.patch
Description: Binary data
0002-org-manual.org-Added-padding-feature-to-the-manual.patch
Description: Binary data
0003-ORG-NEWS-Added-padding-feature-to-version-9.6.patch
Description: Binary data
padding-example.pdf
Description: Adobe PDF document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ox-latex table tabbing support.,
emacs <=