Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

DOCX Paper Toolkit

Build Word papers from official templates and convert full LaTeX manuscripts into DOCX with editable native equations, plus strict validation.

Docs & OfficeAdvanced1,57083AI score 9/10Last updated: Sep 16, 2026

What it does

  • Builds paper scaffolding (title, abstract, keywords, body, three-line tables) with python-docx while 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.json manifest 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

  1. "Draft the paper DOCX using this year's official template" → generates a file with title, abstract, three-line tables, and equations.
  2. "Convert full-paper-LaTeX/main.tex to DOCX using the official template" → runs equations.py convert-latex and blocks output if Pandoc emits warnings.
  3. "Run the pre-submission check" → check_env.pyoffice/validate.pypaper_format.py validate --contest cumcm --rendered-pages Nverify-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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Clone the repo: git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git
  2. Create the skills folder: mkdir -p ~/.claude/skills
  3. Copy the skill: cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/
  4. Install Python deps: pip install python-docx lxml
  5. Install Pandoc for LaTeX conversion and LibreOffice for tracked-change acceptance; make sure both are on your PATH.
  6. Restart Claude Code, then run python scripts/check_env.py and python scripts/self_check.py to verify the environment.
  7. Always point output paths at your project folder (PROJECT_ROOT) so source files are never overwritten.