Export as Word

How do I export a Julia Markdown as a .doc or .docx document

Your best bet is probably using pandoc to export Markdown to .doc/.docx


Ok thanks, how do I set up Pandocs?

I suggest looking on installation page at their website:

and then reading rest of documentation.

I wouldn’t expect it to work perfectly without some tinkering though.

1 Like

Does it matter where I unzip the binaries? I take it I need to set up a path.

Sorry, I have no idea. Perhaps other people from https://pandoc.org/help.html could help.

I didn’t get it to work, but I got it set up, I think. It looked like it tried to make a pdf, then failed because: margins.

I use a packager manager to install binaries whenever possible, e.g. brew on Mac or
https://chocolatey.org/packages/pandoc on Windows.

1 Like

If you want to use pandoc from a Julia program rather than interactively, the by far easiest installation is to Pkg.add the pandoc_jll package.

Example use

julia> using pandoc_jll

julia> pandoc() do pandoc
           run(`$pandoc --version`)
Compiled with pandoc-types 1.20, texmath, skylighting
Default user data directory: /home/gunnar/.local/share/pandoc or /home/gunnar/.pandoc
Copyright (C) 2006-2020 John MacFarlane
Web:  https://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.