You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Numbered example list is a great feature in markdown that enables single consistent numbering thought the document. A case where this is especially crucial is sequential paragraph numbering.
The downside of using "Numbered example lists" is that conversion to DOCX results in restarts of native numbering and unnecessary explicit re-entry of the next value whenever a sequence is interspersed with other content. For example:
# Chapter 1@a. Example from paragraph 1 with some content
@a. Example from paragraph 2 with some content
# Chapter 2@a. Example from paragraph 3 with some content
@a. Example from paragraph 4 with some content
@a. Example from paragraph 5 with some content
Although the above paragraphs will get numbered sequentially (1., 2., 3., 4., 5.) in DOCX, the used sequence gets restarted when at "Example from paragraph 3...". At that point a new sequence is used and explicit value "3" in entered.
The downside of this sequence restarts is that it is extremely cumbersome to do any numbering modifications in DOCX (e.g. when a document is sent to a colleague that uses only Microsoft Word).
It would therefore be a real time-saver if Pandoc could follow intended use of numbering in DOCX and therefore reuse the same identifier when "Numbered example lists" are used i.e. <w:numId w:val="same_numeric_value"/> in word/document.xml from DOCX archive would have the same value in this case.
The text was updated successfully, but these errors were encountered:
@jgm: Yes, the fact that automatic renumbering is disabled in this case is a one part of the problem, the other part is that anything else related to the numbering properties also needs to be repeated manually (or scripted) for each paragraph (e.g. numbering style, numbering type).
What makes this even worse is the fact that one can not simply select the next sequence in MS Word and choose to continue numbering (e.g. clicking on number 3. in your screenshot) since the numbering is not in the same group. One actually has to renumber all of sequences used in MS Word due to this issue.
A really clumsy workaround that I use in this case is an external filter (over word/document.xml file in DOCX archive) replacing all level 0 numbering of the same type that have different identifiers with the same identifier - a simplified version of this is attached bellow:
replacing <w:ilvl w:val="0"/><w:numId w:val="\d+"/> where \d+ is a regex example
with <w:ilvl w:val="0"/><w:numId w:val="1002"/> where 1002 is the number of the first relevant sequence
Numbered example list is a great feature in markdown that enables single consistent numbering thought the document. A case where this is especially crucial is sequential paragraph numbering.
The downside of using "Numbered example lists" is that conversion to DOCX results in restarts of native numbering and unnecessary explicit re-entry of the next value whenever a sequence is interspersed with other content. For example:
Although the above paragraphs will get numbered sequentially (1., 2., 3., 4., 5.) in DOCX, the used sequence gets restarted when at "Example from paragraph 3...". At that point a new sequence is used and explicit value "3" in entered.
The downside of this sequence restarts is that it is extremely cumbersome to do any numbering modifications in DOCX (e.g. when a document is sent to a colleague that uses only Microsoft Word).
It would therefore be a real time-saver if Pandoc could follow intended use of numbering in DOCX and therefore reuse the same identifier when "Numbered example lists" are used i.e.
<w:numId w:val="same_numeric_value"/>
inword/document.xml
from DOCX archive would have the same value in this case.The text was updated successfully, but these errors were encountered: