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

rmd via padoc > 2.10.1 converted into docx - default list-style of a referenced DOCX-template not recognized #8250

Open
Pindar777 opened this issue Aug 27, 2022 · 7 comments
Labels

Comments

@Pindar777
Copy link

Observation

Since pandoc > 2.10.1 and pandoc-citeproc.exe is no longer being used there is a bug in terms of changing the layout of the default list-style. Doing so in a referenced DOCX-template has no effect on the generated docx-document (at least when knitted via GNU R rmd-file).

That is why I keep using the version from 15.09.2020...

What is working with pandoc-citeproc.exe:

Changing in the word-template can be easily down with "a manual parameter input" after "right click on the list-level". This is working for all levels of the list and then recognized in the generated DOCX-file.

Without pandoc-citeproc.exe:

There is only the default-styling irrespective of the style of a referenced DOCX-template.

@Pindar777 Pindar777 added the bug label Aug 27, 2022
@jgm
Copy link
Owner

jgm commented Aug 27, 2022

I don't really understand this report, can you explain further? pandoc-citeproc was only for citation processing. It has nothing to do with how lists are formatted in the main body of the document. Is your question about citation formatting or something else?

@Pindar777
Copy link
Author

Pindar777 commented Aug 27, 2022

@jgm Thank you for your fast response. Please find attached 4 docx files which show the problem:
rmd2docx_pandoc_with_templates_2_10_1_vs_2_19_2.zip

  • rmd2docx_pandoc_with_default_template.docx → rmd2docx with default template
  • MyListTemplate.docx → the designed template (with word being in compatibility mode [it's easier to reach the parameters]
  • rmd2docx_pandoc_2_10_1_with_changed_list_in_word_compatibility_mode.docx → reference the „MyListTemplate“ with panoc version 2.10.1 | list style is applied
  • rmd2docx_pandoc_2_19_2_with_changed_list_in_word_compatibility_mode.docx → reference the „MyListTemplate“ with panoc version 2.19.2 | list style is ignored

Perhaps I'm using a wrong way to change the list style, but the change in behavior occured after getting rid of pandoc-citeproc.exe.

@jgm
Copy link
Owner

jgm commented Aug 27, 2022

Have you looked in the manual under --reference-doc? That documents the ways in which you may change the reference docx. I don't believe list style changes are supported.
There have been a lot of changes since 2.10, but it may be that allowing list styles to be overridden caused corrupted output in many cases.

@Pindar777
Copy link
Author

@jgm I see. Hence, the correct label for this issue would be feature request.
As a matter of fact, being able to change the default list styling is a nice feature in order to show, that automatically generated docx-files fulfill all (of the most important) CI-conditions.
Indeed, there habe been a lot of improvements in the last years - great work!
That's why I'd really like to upgrade to a newer version of pandoc...or get rid of docx, lol

@jgm
Copy link
Owner

jgm commented Aug 27, 2022

Why do you want to change the list styling? (What changes?)

@Pindar777
Copy link
Author

@jgm Just for CI: first item "red, small point", changed indent, second item "a dash" with appropriate indent

@tarleb
Copy link
Collaborator

tarleb commented Aug 30, 2022

This seems related, although I do not fully understand the issue: #7280.

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

No branches or pull requests

3 participants