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 tempalte doesn't show styles #10327

Open
raffaem opened this issue Oct 23, 2024 · 4 comments
Open

ODT tempalte doesn't show styles #10327

raffaem opened this issue Oct 23, 2024 · 4 comments

Comments

@raffaem
Copy link

raffaem commented Oct 23, 2024

Following the documentation for --reference-doc= option available here, if I generate a docx template with:

pandoc -o custom-reference-doc.docx --print-default-data-file reference.docx

The resulting file will show the styles:

image

But if I create a ODT template with:

pandoc -o custom-reference-doc.odt --print-default-data-file reference.odt

the resulting file only contains "Hello world":

image

Would it be useful to show the styles also in the ODT template?

Having said that, my understanding is that the contents get ignored in both cases and only the styles are applied.

@jgm
Copy link
Owner

jgm commented Oct 24, 2024

Would it be useful to show the styles also in the ODT template?

Yes, I'd say it would be! It helps you see the effects of your style adjustments.

@raffaem
Copy link
Author

raffaem commented Oct 24, 2024

Where are those reference.docx and reference.odt files?

I can't find them in the source tree :(

@tarleb
Copy link
Collaborator

tarleb commented Oct 24, 2024

Those files are generated from the contents of the data/docx and dat/odt directories, respectively:

E.g.

cd data/docx && zip -r ../reference.docx *

should give you a reference file in data/reference.docx.

@raffaem
Copy link
Author

raffaem commented Oct 24, 2024

I think I'll leave the task to someone more attuned to which styles are used where

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