Next: , Previous: Labels and captions in ODT export, Up: OpenDocument Text export

12.8.10 Literal examples in ODT export

Export of literal examples (see Literal examples) with full fontification is supported. Internally, the exporter relies on htmlfontify.el to generate all style definitions needed for a fancy listing.1 The auto-generated styles have ‘OrgSrc’ as prefix and inherit their color from the faces used by Emacs font-lock library for the source language.

If you prefer to use your own custom styles for fontification, you can do so by customizing the variable org-export-odt-create-custom-styles-for-srcblocks.

You can turn off fontification of literal examples by customizing the variable org-export-odt-fontify-srcblocks.


[1] Your htmlfontify.el library must at least be at Emacs 24.1 levels for fontification to be turned on.