Write in Markdown. Submit in Word.
Papper turns Markdown manuscripts into Word documents with citations, numbered figures and equations, and reviewer replies. Keep your source easy to edit with AI and review in Git, then build the DOCX your collaborators and journal need.
Write with an AI agent · VS Code extension · Output examples · Documentation
Install Papper directly without Python or uv. The installer detects your public IP country, using the CERNET mirror for China (CN) and official PyPI elsewhere.
On Windows x64, run in a 64-bit PowerShell:
irm https://papper.cesaryuan.top/install.ps1 | iexOn Linux x86_64 (glibc ≥ 2.28) or macOS 14+ (Apple Silicon):
curl -fsSL https://papper.cesaryuan.top/install.sh | shOpen a new terminal after installation. The installer verifies SHA-256, installs into your user directory, and configures PATH. Linux needs curl and unzip. See installation, upgrades, and removal for version pinning, alternate indexes, and custom directories.
If you already use uv, this remains supported. Choose one installation method:
uv tool install papperOpen your manuscript folder in an AI agent such as Codex, Claude Code, or Workbuddy. Ask it to use Papper, for example:
- “Use Papper to convert this DOCX into Markdown.”
- “Adapt the cross-references, images, tables, and bibliography in this Markdown file to Papper's syntax.”
- “Use Papper to build this Markdown file as a DOCX.”
For a new paper, papper init creates a manuscript project with AGENTS.md and CLAUDE.md guidance that the agent can read.
Workflow illustration generated with AI. Actual Word output is shown below.
To create and build a paper yourself after installation:
papper init my-paper
cd my-paper
papper build docxOpen output/docx/manuscript.docx to inspect the result. Edit manuscript.md and run the build again when you want a new Word copy.
For a Chinese manuscript and reviewer-reply starter, replace the initialization command with papper init my-paper --lang zh-cn. To check your installation, run papper doctor.
Install our Pandoc Manuscript Tools extension for writing in VS Code:
- Reference navigation: jump to labels, find references, complete labels after
@, and detect missing or duplicate labels. - Hover previews: inspect equations and local SVG, EMF, and WMF images while editing.
- Readable manuscript syntax: highlight Pandoc blocks and spans, fold revision attributes, and navigate headings with a Pandoc-aware outline.
- Image browsing: preview image folders in grid, masonry, or folder layouts.
- Reviewer replies: navigate from
reply_to_reviewers.mdto labels in the workspace-rootmanuscript.md.
These are actual Microsoft Word renders of the manuscript and reviewer-reply examples. Equations were built with mathtype: true and mathtypeConversionMethod: mathtype, using the installed MathType application for conversion.
Explore the English manuscript, Chinese manuscript, and reviewer-reply starter. Click the preview to enlarge it. These examples show supported formatting; journal-specific requirements still need configuration and review.
Download the rendered manuscript DOCX and reviewer-reply DOCX to inspect their formatting and editable MathType objects in Word.
Papper builds on Pandoc and pandoc-crossref, adding manuscript templates, Word formatting, and a reviewer-reply workflow in one CLI.
| Your task | What Papper provides |
|---|---|
| Draft and revise a paper | Markdown sources, reusable project scaffolding, and guidance for AI agents |
| Keep references consistent | CSL citations and cross-references for figures, tables, equations, and sections |
| Prepare a Word manuscript | Author information, table formatting, numbered equations, page layout, and reference DOCX styling |
| Deliver editable equations | Native Word equations or editable MathType-compatible objects |
| Respond to reviewers | DOCX and HTML replies that reuse manuscript item numbers, with optional line-reference lookup |
| Bring an existing paper into Markdown | DOCX import with supported equation, caption, image, and reference recovery |
English and Chinese starters are included. Chinese builds use localized reference labels, chapter-based figure/table/equation numbering, and a bundled GB/T 7714 citation style; explicit citation styles take priority. HTML previews and JSON exports are also available.
Initialization creates manuscript.md, style.yml, reply_to_reviewers.md, example images and bibliography files, and agent instructions. Keep manuscript content in Markdown and reusable formatting in style.yml.
papper build docx
papper build html
papper build docx reply_to_reviewers.mdThe reply starter already declares reply: manuscript.md in its YAML header. Use manuscript figure, table, equation, and section labels in your replies to keep their numbers aligned. Reply syntax and line references →
To use a journal-specific style file or Word reference document:
papper build docx --style-file styles/journal.yml
papper build docx --reference-doc journal-reference.docxThose files must exist. CSL controls citation formatting; style.yml and the reference DOCX control document appearance. See custom reference documents and style precedence before adapting a journal template.
Already have a Word draft? Import it into a separate directory:
papper convert existing-paper.docx -o convertedThis creates converted/existing-paper.md and its media. Add --svg to turn supported Word subfigure groups into SVGs you can edit in VS Code with Papper Tools. Check the imported content against the original; complex Word layouts may need manual cleanup. Import examples and recovery limits →
Papper suits researchers who want to keep a Markdown source of their paper, use AI or Git during revision, and deliver Word documents. It is especially useful when you repeatedly rebuild a manuscript and its reviewer replies.
Before using it for a submission:
- Markdown remains the source. Edits made in a generated DOCX are not automatically merged back into your manuscript. Importing Word content is a separate operation.
- Journal formatting still needs review. Configure citation styles and document appearance, then inspect the final DOCX against the journal's requirements. Papper does not guarantee compliance with every publisher template.
- Line lookup can require an office application. Resolving reviewer line references from Markdown or Word needs Microsoft Word on Windows or LibreOffice on other platforms. Supplying a suitable PDF avoids that conversion.
- Check final pagination in Word. HTML previews help you review content; page breaks and layout can differ from Word.
The installed CLI includes the authoring and configuration guides, so you and your AI agent can consult them inside any manuscript project:
papper guide
papper guide syntax equations
papper guide style docx-text-stylespapper guide lists topics with short descriptions. Select a topic or topic/subtopic to read it; use --full with syntax or style for the complete guide.
| Looking for | Start here |
|---|---|
| Manuscript YAML, citations, figures, tables, and equations | papper guide syntax |
| Page layout, fonts, citation styles, and Word settings | papper guide style |
| DOCX import and optional reference recovery | Import guide |
| Editor integration and the local HTML API | Runtime and integration |
| Source builds and validation | Development |
| Release packaging | Maintainer guide |
| Rendering implementation | Rendering internals |
For a standalone installation, rerun the installer to upgrade. For a uv installation, use uv tool upgrade papper. Run papper --help or papper build --help for commands and options; add --verbose when you need diagnostic logs.
For a problem, open an issue with your Papper version, operating system, command, and a minimal example that reproduces it. Remove confidential manuscript content before sharing.
Papper's own code is MIT licensed. Bundled components retain their respective licenses and notices. Thanks to Pandoc and pandoc-crossref, which provide the conversion and cross-reference foundations.

