Custom-style on odt export seems not to work #10307
Unanswered
sylvaticus
asked this question in
Q&A
Replies: 1 comment 6 replies
-
This definitely was working recently (my testing before showed divs worked but spans didn't, @jgm fixed it April 15th), see these posts: At least out to opendocument (the text version of ODT), shows both inline and div styles working for me: ε ➪ pandoc -v
pandoc 3.5
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/ian/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
Seneca in ~
ε ➪ pandoc -t opendocument
[Get out]{custom-style="Strikeout"} he said.
::: {custom-style="Comment"}
This is [text with a character style]{custom-style="Teletype"}. And this is also [text with a character style]{custom-style="Highlighted"} text style.
:::
<text:p text:style-name="Text_20_body"><text:span text:style-name="Strikeout">Get
out</text:span> he said.</text:p>
<text:p text:style-name="Comment">This is
<text:span text:style-name="Teletype">text with a character
style</text:span>. And this is also
<text:span text:style-name="Highlighted">text with a character
style</text:span> text style.</text:p> To ODT and it also works: Note: you need to ensure the ODT template has the styles you specify, so for your styles they must be passed in using a custom ODT template. My example uses styles already present in the standard ODT template... |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need custom-styles in odt output but they seems not to work (they work in docx output).
MD source document:
Pandoc Command:
pandoc test_input.md -o test_output.odt
Versions:
pandoc 2.9.2.1 --> updated to 3.5.1, didn't change anytthing
ubuntu 22.04
Beta Was this translation helpful? Give feedback.
All reactions