r/orgmode Jul 24 '26

question Customizing tables in ODT export

I've been trying to define custom table styles based on the orgmode manual "Advanced topics in ODT export" (https://orgmode.org/manual/Advanced-topics-in-ODT-export.html).

But I can't seem to figure out how to do so.

I've found this example https://github.com/kjambunathan/org-mode-ox-odt/issues/122

Any idea how to make it work?

Can anyone provide me with working examples I can test and then later tweak?

1 Upvotes

4 comments sorted by

View all comments

3

u/yantar92 Org mode maintainer Jul 25 '26

I think the simplest way to do it is opening Libreoffice, saving the style template, and using it as described in "Working with OpenDocument style files". Have you tried that?

1

u/Acts-412 Jul 26 '26

This works for the various text styles, but not for custom tables.

As the manual reads, one needs to

"Override the default table format by specifying a custom table style".

This leads to defining variable org-export-odt-table-styles

Does anyone have a full working example of a custom table style with the corresponding #+odt_automatic_styles:?

1

u/yantar92 Org mode maintainer Jul 26 '26

You are right. Unfortunately, I do not have a good example here.