Skip to main content
1 of 4
user avatar
user avatar

IIUC, the concern expressed here is to sneak in line breaks (on the export side) when using an Org table.

Good news is not only can you sneak in line breaks, you can also multiparagraph content in ODT export, provided you are using the enhanced ODT exporter.

The enhanced ODT backend is not available with standard Emacs or Org mode, and you need to install it separately. See Getting Started with ODT export (OpenDocument Text Exporter for Emacs’ Org Mode for instructions.

The snippet below uses

  1. Transcluded Tables.

    Transcluded Tables are exclusive to the enhanced ODT backend.

    (The transcluded table feature is not enabled by default. So, before exporting, remember to execute the =emacs lisp= source block (C-c C-c) you find at the start of the snippet)

See List of features that are exclusive to The Enhanced OpenDocument Exporter for Org mode for more information.

If you want this,

Multi-paragraph content using Transcluded Table in ODT Export

do this

#+language: ru_RU

#+begin_src emacs-lisp :exports results :results silent
(add-to-list 'org-odt-experimental-features 'transclude-sole-footnote-references-in-a-table)
(add-to-list 'org-odt-experimental-features 'language)
#+end_src

#+ATTR_ODT: :style "GriddedTable"
#+ATTR_ODT: :col-cookies "| cm10 |                cm15 | cm20      | m40        |"
#+ATTR_ODT: :rel-width 70
#+CAPTiON: Заголовок пакета
| *№* | [fn:1] | *Тип*    | *Значение* |
|-----+---------+----------+------------|
|   1 |       1 | unsigned | [fn:2]     |
|   2 |       1 | unsigned | [fn:3]     |
|   3 |       1 | unsigned | [fn:4]     |

* Footnotes

[fn:1]

#+ATTR_ODT: :style "Text_20_body_20_bold"
*Размер\\
(байт)*

[fn:2]
Маркер начала\\
константа 0xAC

Маркер начала\\
константа 0xAC

[fn:3]
Размер данных\\
в байтах, от 1 до 255

[fn:4]
Контрольная сумма\\
oпо алгоритму CRC-8
user31220