-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
docx and --number-sections #1413
Comments
I can confirm that it works with the current development version. Nevertheless, I believe the main extension is still highly useful. On difficulty arose: headings marked as non-numbered (followed by a |
After a while I found that using MSWord's outline numbering feature, then use the modified output as reference docx works. |
It would be so nicer if someone could provide |
Done! Found this thread when looking for a solution myself. Made a reference docx and linked to it from the pandoc wiki. |
Thanks @krissen! It looks great! |
It would be great if the DocXWriter would also handle the
--number-sections
parameter.Indeed, it seem to be possible to apply the list style 'Headings' predifined by Word after opening the document or adjusting the reference.docx accordingly to avoid repetitions and automate the conversion process.
Unfortunately, that's not possible with non-english Word versions. I struggled with this problem the last two days and found no solution.
Even changing the UI language of Word to British or American English does not solve the problem. Word (I'm using 2010 version with multilanguage pack and pandoc 1.12.4.2) always blows up the reference.docx after saving, even in compatibility mode. It changes nearly all style names and translates it to the local language.
Defining a custom multilevel list style is possible but it is impossible to change it afterwards. Even if I use a custom list style with the english names, pandoc does not seem to use it. I get incorrect numbering.
I just want to have
but get
Maybe that is related to #1305 but the language problem still persists. Many users don't have a multilanguage version of Word.
Also, I was not able to find a native english normal.docx which contains the correct list style. If one can provide such a file or
reference-numbered-sections.docx
i.e. in the Wiki User contributed templates that would be very helpful. Then I can merge the corresponding parts ofnumbering.xml
andstyle.xml
into my ownreference.docx
.But the best would be if pandoc itself would insert the correct fragments into
numbering.xml
orstyle.xml
. The fix of #1305 indicates that thenumbering.xml
is now merged. Hence it would be easy to extend by the number-sections fragment.The text was updated successfully, but these errors were encountered: