docx-template-translator

Convert LaTeX, PDF, or Markdown inputs into DOCX templates with Python postprocessing.

63|6|Updated May 4, 2026
One-click install
npx skills add https://github.com/zouchenzhen/docx-template-translator-skill --skill docx-template-translator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-template-translator
Source: https://github.com/zouchenzhen/docx-template-translator-skill/tree/main/skills/docx-template-translator
Command: npx skills add https://github.com/zouchenzhen/docx-template-translator-skill --skill docx-template-translator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, pywin32, PyMuPDF, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Converts LaTeX, PDF, or Markdown sources into a Word document that faithfully follows a provided Word template, reducing manual template-mismatch fixes and enabling institutional formatting.

Core Features & Use Cases

  • Template inspection and style remapping to preserve cover pages, front matter, headings, captions, and TOC alignment.
  • Project-specific Python postprocessor workflow that patches the generated body into the template while protecting native template sections.
  • Automated QA with a rendered PDF preview to verify readability and formatting against the target template for thesis, report, or institutional documents.

Quick Start

Run the starter pipeline on a sample template to patch for a concrete project and generate final.docx.

Frequently Asked Questions about docx-template-translator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert LaTeX or Markdown to a Word document that matches my template?

To convert LaTeX or Markdown to a Word document matching your template, this Skill inspects the target DOCX, remaps styles, and patches a Python postprocessor to preserve headings, cover pages, and front matter. It outputs a finalized DOCX compliant with institutional formatting.

Does converting PDF to DOCX require Microsoft Word installed?

Yes, converting PDF to DOCX requires Microsoft Word installed for finalization. While Python libraries like PyMuPDF and python-docx handle inspection and patching, Word is needed to render the final PDF preview and validate formatting compliance.

What is the best way to automate institutional formatting for a thesis report?

The best way to automate institutional formatting is running a starter pipeline that inspects your DOCX template, remaps styles, and protects native front matter. It generates a final DOCX validated against a rendered PDF preview.

Can I protect native front matter when patching a generated document into a template?

Yes, you can protect native front matter during conversion. The Skill uses a project-specific Python postprocessor that patches the generated body into the template while explicitly protecting native template sections like cover pages and TOCs.

Why does my converted Word document lose the original template styles?

Converted Word documents lose template styles when styles are not properly remapped. This Skill prevents mismatch by inspecting the template, remapping styles to preserve captions and headings, and validating a rendered PDF preview before finalization.

Do I need Python dependencies to automate DOCX template conversion?

Yes, you need Python dependencies including python-docx, pywin32, PyMuPDF, and Pillow to automate DOCX template conversion. These libraries enable template inspection, style patching, and PDF preview rendering for QA validation.