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

3 Likes

Ok thanks, how do I set up Pandocs?

I suggest looking on installation page at their website:
https://pandoc.org/installing.html
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 Pandoc - Help 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
Chocolatey Software | Pandoc 2.19.2 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`)
       end;
pandoc 2.9.2.1
Compiled with pandoc-types 1.20, texmath 0.12.0.1, skylighting 0.8.3.2
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.
3 Likes