Replies: 4 comments 3 replies
-
|
You should write your markdown like this:
1. Level
1. Sublevel
2. Sublevel
2. Level
1. Sublevel
You can also replace the numbers with #.
The formatting of the list depends on the target format. In DOCX, you
can modify the list settings in your reference document.
|
Beta Was this translation helpful? Give feedback.
-
|
I guess that you must change the settings for all numbered lists.
However, if it is possible to change the style of a single numbered
list, it should be applied with the custom-style attribute:
::: {custom-syle="mylist"}
1. Level
1. Sublevel
2. Sublevel
2. Level
1. Sublevel
:::
|
Beta Was this translation helpful? Give feedback.
-
|
I'm not sure if custom-style applies to lists. I haven't tried, so if it works, it is the easiest solution. When I encountered this, I set up my list as you did, and then manipulated the Word XML directly. Note that this is sensitive and version-dependent within Word, but it worked for me. I unzipped the reference .docx where I had set up my multilevel list style (let's call it That worked for me. The reference .docx sometimes refuses to open in Word when I go in and change the parts like this, but it can still work for pandoc. |
Beta Was this translation helpful? Give feedback.
-
|
The parameters that control item numbering are not a style, they are a
distinct set of parameters. It seems that you can forget custom-style
for now and search for those parameters.
|
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m trying to convert a Markdown file to DOCX using Pandoc. In my Markdown, I want to create ordered lists with multilevel numbering in this format:
…but I’m not sure how to structure the Markdown or which Pandoc options to use to preserve this numbering in the DOCX output.
Could someone guide me on the correct syntax or Pandoc configuration to achieve this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions