Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odt writer does not apply custom styles for characters, blocks and so on #5764

Closed
N0rbert opened this issue Sep 21, 2019 · 4 comments
Closed

Comments

@N0rbert
Copy link

N0rbert commented Sep 21, 2019

I'm using pandoc 2.7.3 to produce some bookdown documents.
I know that custom styles and styles reference works normally in docx (at least for paragraphs).
But it does not work for OpenDocument.

I have the following simple Markdown document named styles.md. It use predefined style names from LibreOffice 6.2 and contains the following:

::: {custom-style="Title"}
This is some text.
:::

::: {custom-style="Caption"}
This is text with an [placeholder]{custom-style="Placeholder"} text style.
And this is text with a [teletype]{custom-style="Teletype"}
text style.
:::

::: {custom-style="Illustration"}
> Here is a styled paragraph that inherits from illustration style.
:::

I expect that the document should look as shown below:

styled-odt-expected

But if I produce OpenDocument from my Markdown document it with pandoc styles.md --to odt+styles -o styles.odt. The styles are not applied:

styles-odt

@jgm
Copy link
Owner

jgm commented Sep 22, 2019

Judging from the manual, custom_styles is only currently implemented for docx and icml.

@mb21
Copy link
Collaborator

mb21 commented Sep 22, 2019

Closing in favour of #2106 (comment)

@mb21 mb21 closed this as completed Sep 22, 2019
@N0rbert
Copy link
Author

N0rbert commented Sep 22, 2019

In anyway it would be very useful to have described functionality inside pandoc itself. This means without plugins and third-party tools. This will make pandoc even better. Having this functionality only for docx is unfairly.

@mb21
Copy link
Collaborator

mb21 commented Sep 22, 2019

@N0rbert agreed, pull requests welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants