DOCX Paper Toolkit
Build Word papers from official templates and convert full LaTeX manuscripts into DOCX with editable native equations, plus strict validation.
Docs & OfficeAdvanced★ 1,570⑂ 83AI score 9/10Last updated: Sep 16, 2026
What it does
- Builds paper scaffolding (title, abstract, keywords, body, three-line tables) with
python-docxwhile inheriting styles from an official contest template. - Converts a LaTeX subset into Word native OMML equations, including bulk placeholder replacement.
- Converts an entire LaTeX project (
main.tex,\input/\include, images, BibTeX) to DOCX via Pandoc + citeproc and writes a.conversion.jsonmanifest with file hashes, Pandoc version, command, and warnings. - Unpacks/repacks DOCX, validates OOXML structure, accepts all tracked changes, and adds comments/replies.
- Structural validation covering length targets, figure/table counts, numbering vs. in-text citations, bibliography cross-checks, and actual rendered page count.
Who it's for
- Math-modeling contest teams (CUMCM and similar) that must submit format-compliant Word papers.
- Researchers and grad students who write in LaTeX but must deliver DOCX with intact equations.
- Developers building automated Word generation/inspection pipelines at the OOXML level.
Examples
- "Draft the paper DOCX using this year's official template" → generates a file with title, abstract, three-line tables, and equations.
- "Convert
full-paper-LaTeX/main.texto DOCX using the official template" → runsequations.py convert-latexand blocks output if Pandoc emits warnings. - "Run the pre-submission check" →
check_env.py→office/validate.py→paper_format.py validate --contest cumcm --rendered-pages N→verify-conversion.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/XiaoMaColtAI/math-modeling-skill/HEAD/dsh-plugin/math-modeling-agent/skills/math-modeling/tools/docx/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the dsh-plugin/math-modeling-agent/skills/math-modeling/tools/docx folder from the GitHub repo XiaoMaColtAI/math-modeling-skill into my ~/.claude/skills/xiaomacoltai-docx/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git && mkdir -p ~/.claude/skills && cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Clone the repo:
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/ - Install Python deps:
pip install python-docx lxml - Install Pandoc for LaTeX conversion and LibreOffice for tracked-change acceptance; make sure both are on your PATH.
- Restart Claude Code, then run
python scripts/check_env.pyandpython scripts/self_check.pyto verify the environment. - Always point output paths at your project folder (PROJECT_ROOT) so source files are never overwritten.