Add pandoc-lua and pandoc-server (symlinks) and their man pages to releases. Use hslua-cli package for pandoc-lua interface (Albert Krewinkel). Add server flag to pandoc-cli, allowing it to be compiled without server support. pandoc-cli: Allow building a binary without Lua support (Albert Krewinkel).
Pandoc Extras. This is a curated list of some of the most useful third-party software that extends pandoc’s capabilities. For a more complete list, see the Pandoc Extras wiki page. GUI. PanWriter is a Markdown editor with live preview that can import and export using pandoc. Pandoc Mac ...
To convert the Jupyter Notebook to Word
I tried nearly all methods mentioned in other answers.
Eventually, and surprisingly, I found the most satisfactory way to convert is to just open the PDF file in MS Word (2013 or newer), which retained most of the layout. Although you are gonna lose the hyperlinks of cross-references.
There are basically 3 ways to customize docx output in Pandoc:
Generate a reference doc (as mentioned in the question: ). It will have a bunch of content, representing common Pandoc components like headings and blockquotes (see picture at the end).pandoc -o custom-reference.docx --print-default-data-file reference.docx
In the menu at the top of Word, find the style you want to change and edit it to be what you'd like (I'm not sure if you can simply edit the text's style directly).Styles
There are more styles than the ones that appear in the reference document text and in the "Style gallery." For example, you can customize hyperlinks (e.g. color).
Generate a reference doc (or use the one you have from above).
Click the expand button in the Styles section to show the Styles pane (see below).
Find the style you want, then edit it.
Also:
This is probably the most relevant to the question. If you want to introduce custom elements beyond the default ones Pandoc provides and Word provides, you can simply add custom styles to the reference document. For example, you can create a style for highlighted text or centered text, or a style for large code blocks.
Generate a reference doc (or use the one you have from above).
Add some text to the document using the base style you want---the style you want to base your new custom style on. For example, if you want "normal text but highlighted," write some new text that uses the "Normal" or "Body text" style.
Click the dropdown in the Styles gallery.
Click Create a Style
Name the style, whatever you'd like.
Click and customize the style however you'd like. You can always get to this menu later by right-clicking the style in the gallery and clicking "Modify..."Modify...
Save the document.
In the text you will convert to docx, add s and divs with the appropriate span attribute whenever you want to consume it. For example, if you have a paragraph style called custom-style and a character style called Super big:Highlighted text
<div custom-style="Super big">My super big text</div>
Normal text. <span custom-style="Highlighted text">This is highlighted</span>.
Pandoc will apply those custom styles for you!
The default reference doc:

Remove the and it should work -- that seems to be causing the problem.\setlength{\arraycolsep}{0pt}
And please consider reporting problems like this on the pandoc bug tracker, so we can improve pandoc. It would be a relatively simple matter to change the texmath library (which pandoc uses for math conversions) to ignore (or better, do something with) the command.\setlength
As for the figure, pandoc should be able to find the image; again, we'd be interested in a detailed bug report with enough information to reproduce the problem. (Also, be sure you're using the most recent version of pandoc, or at least tell us which version you're using.)
That's not how Pandoc works, it doesn't understand CSS, only HTML/Markdown. It preserves the content, but not the layout etc, see semantic HTML.
You can, however, use templates to style your output consistently. With Word it's a bit more complicated but you can use the --reference-doc option for mostly the same effect.