← ClaudeAtlas

docx-template-translatorlisted

Adaptive conversion of LaTeX, PDF, or Markdown sources into a complete Word .docx that follows a user-supplied .docx template. Use when pandoc --reference-doc alone is not enough — for thesis, dissertation, report, or institutional Word formatting that needs cover pages, declarations, TOC, heading numbering, captions, three-line tables, equations, citations, and visual verification.
zouchenzhen/docx-template-translator-skill · ★ 41 · Data & Documents · score 84
Install: claude install-skill zouchenzhen/docx-template-translator-skill
# DOCX Template Translator ## Core Idea Treat the input file as the content source and the Word template as the formatting source. Do not expect pandoc or PDF import to infer template semantics. Build a project-specific Python postprocessor after inspecting the template and the converted body document. Do not treat the bundled starter pipeline or a preset JSON file as a finished converter for institutional templates. For thesis/dissertation templates, you must create or patch a project-specific pipeline for the concrete template and source project before claiming success. ## Workflow 1. Identify inputs: - Source: `.tex` project, `.pdf`, `.md`, or an existing rough `.docx`. - Template: required `.docx`. - Output location and document metadata. 2. Inspect the template with the real CLI form: - `python scripts/inspect_docx_template.py template.docx --out template_report.json` 3. Create a rough body `.docx`: - LaTeX/Markdown: use pandoc when available. - PDF: try Word COM import or `pdf2docx`; prefer PDF only when the original source is unavailable. - Existing DOCX: use it as the rough body source. 4. Write or patch a project-specific Python pipeline: - Start from `scripts/adaptive_docx_pipeline.py`. - Copy it into the run/output directory or project workspace before patching; do not edit the bundled script in place for a one-off conversion. - Decide, from the template inspection, which template paragraphs/tables/sections are reusable and which