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

Pandoc ignores reference-doc styles #5974

Closed
arkadyb opened this issue Dec 9, 2019 · 3 comments
Closed

Pandoc ignores reference-doc styles #5974

arkadyb opened this issue Dec 9, 2019 · 3 comments

Comments

@arkadyb
Copy link

arkadyb commented Dec 9, 2019

Pandoc completely ignores the styles customized and passed in with reference-doc argument.
According to README, I have generated the custom-reference.docx:

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

I then opened the docx (using OO) and changed every single text color.
Next i created a very simple md file:

Document Title

Subtitle

Normal text

Subsubtitle

Normal text

Then used custom-reference.docx in reference-doc argument:

pandoc -o test.docx --reference-doc=custom-reference.docx demo.md

In the output all the headings writtem in blue (default) color.

pandoc 2.8.1 (installed via brew)

@jgm
Copy link
Owner

jgm commented Dec 9, 2019

As the manual says, only certain styles in the reference doc will make a difference. The manual gives a complete list of these styles.

Are you changing the styles themselves, or just changing the color of the (sample) text?

Which styles are you changing?

@arkadyb
Copy link
Author

arkadyb commented Dec 9, 2019

As the manual says, only certain styles in the reference doc will make a difference. The manual gives a complete list of these styles.

Are you changing the styles themselves, or just changing the color of the (sample) text?

Which styles are you changing?

Yes you were right. I was updating the text color, not the style. Works ok with styles.

@jgm jgm closed this as completed Dec 9, 2019
@quintonn
Copy link

quintonn commented Sep 3, 2021

This helped me too.
It makes sense now that I think about it, but it's not the most obvious thing to edit the style rather than the document directly.

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

No branches or pull requests

3 participants