Skip To Article

You can render your MyST documents as Microsoft Word documents.

Export to a Microsoft Word document to easily share with your colleagues.

FigureĀ 1:Export to a Microsoft Word document to easily share with your colleagues.

MyST Documents Quickstart Tutorial šŸ“‘

See the quickstart tutorial for getting started with exporting to Word documents, LaTeX\LaTeX and PDFs with various templates.

Exporting to WordĀ¶

To create a new docx export type for your MyST document, in your document frontmatter, add an exports list:

---
title: My Document
exports:
  - format: docx
    output: exports/my-document.docx
---

To build the exports, use the myst build command, which will work with your project structure if it exists and create a document in the output path that you specify.

myst build my-document.md --docx

Based on the output field in the export list in the frontmatter, the PDF and a log file will be written to exports/my-document.docx.

Math and EquationsĀ¶

Currently MyST export does not fully create math in Wordā€™s format, instead, LaTeX\LaTeX is used, which can easily be converted inside of Word.

  1. Select any equation and open the equation toolbar
  2. Click LaTeX
  3. In the convert dropdown, select ā€œAll - Professionalā€
  4. Click convert
To fix equations in Word, use the equation toolbar to select LaTeX and from the dropdown select, all professional, then click convert.

FigureĀ 3:To fix equations in Word, use the equation toolbar to select LaTeX and from the dropdown select, all professional, then click convert.

Rendering Word with myst-to-docxĀ¶

The rendering process for word documents uses the myst-to-docx package. The library works together with mystmd for sharing information about frontmatter (e.g. title, keywords, authors, and affiliations).

Word TemplatesĀ¶

We are looking for contributions in this area to improve Microsoft Word export, please reach out if you want to help!

MyST MarkdownMyST Markdown
Community-driven tools for the future of technical communication and publication, part of Jupyter.