-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Lists in Word conversions should use conventional styles and indents #7280
Comments
@arencambre I would like to add the following observation: Hint: The change in the word-template needs to be down as "a manual parameter input" after "right click on the list-level". Just using the lineal or changing the list-style do not work. |
Is there any known workaround to customize list/ bullet styles? Thanks! |
Apologies my earlier comment wasn't clear. I'm trying to figure out if the bullet styles are customizable via word reference template. My lists are indented using Thanks 🙏🏽 |
@asknet - not currently. But your question is only tangentially related to this issue. I would still like clarification from @arencambre on the question I ask above. |
Currently we create our own abstractNum elements in numbering.xml, 990 for plain lists and 991 for bulleted lists. Instead, perhaps we could use abstractNum 0 and 1 for these and just take those from the numbering.xml in the reference.docx. That would allow them to be set to Word defaults and customized. It could be that there is some problem in principle that prevented me from doing it this way in the first place, but I will experiment. |
OK, I see that there isn't much consistency to the numbers Word uses for abstractNum. IF I create a document with a bullet list and a plain list, abstractNum = 0 is the plain list, but if the document has just a bullet list, it's the bullet list. IF the document begins with an ordered list, abstractNum = 0 is the ordered list. So we can't rely on that. But I could just manually reproduce Word's default for our current abstractNum = 991 (which we use for bullet lists), instead of taking this from the reference.docx. |
We use the default styles for headings and the title instead of what pandoc was using. See #7280.
This includes using the sans-serif font Aptos instead of the serif font Cambria. See #7280.
Upvote here. I'm trying to style a list (either numbered or bulleted) from Markdown to Docx. Any update ? |
Well, all the updates there are can be found right above your comments. |
I found this issue because I'm looking to prefix the resulting numbered list in docx. CLAUSE 1st |
This relates to #7275 because I would like lists to match the native styles of Word and of HTML. I am opening as a separate issue because resolution could be different than #7275.
Suppose you have this Markdown unordered list:
When pandoc converts to a Word document, I see these deviations from conventions of both Word and in HTML (as viewed in browsers):
These are just the differences I see in what I have recently done. A more exhaustive review may find more deltas.
The additional vertical spacing corresponds to a configuration difference in a pandoc-generated Word doc vs. native Word list styling: When selecting a list item in its entirety in Word, then clicking on the arrow on the bottom right of the Paragraph section in the Home ribbon, I see that the Don't add space between paragraphs of the same style box is unchecked in the pandoc-generated document. If you opened a blank, new document in Word 365 and created an identical list by hand, that checkbox would be checked. Checking that box in the pandoc-generated document eliminates the undesired extra vertical spacing.
Some solutions (meant as ideas, not as an exhaustive list):
The text was updated successfully, but these errors were encountered: