latex-to-word-workflow

Loaded when a user requests converting academic LaTeX manuscripts, theses, or reports into editable Word DOCX (including adapting to Word templates, preserving citations or cross-references, or diagnosing LaTeX-to-Word conversion issues); not for LaTeX-to-PDF compilation only, routine Word editing, or DOCX-to-LaTeX conversion.

Last repository push
GitHub Stars
140
Forks
10
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "latex-to-word-workflow" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ce98539581d643903aab57b94fe7d0b9fac30d8d70bb54f1c370c4f2c54e5080. Verify the upstream source and version against https://github.com/hajimi-kun/latex-to-word-workflow before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Loaded when a user requests converting academic LaTeX manuscripts, theses, or reports into editable Word DOCX (including adapting to Word templates, preserving citations or cross-references, or diagnosing LaTeX-to-Word conversion issues); not for LaTeX-to-PDF compilation only, routine Word editing, or DOCX-to-LaTeX conversion.

0 Downloads

Introduction source: third_party · hajimi-kun · 3.0.0 Reference

SkillPi interpretation

Tasks
Produce a submission-grade Word candidate from a complete LaTeX project. The candidate must preserve scientific meaning, use the confirmed target semantics, remain editable where practical, and include an explicit status for the user-run Word/Zotero acceptance steps.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: latex-to-word-workflow
description: >
  Load when the user asks to convert an academic LaTeX manuscript, thesis, or
  report into an editable Word DOCX, adapt it to a Word template, preserve
  citations or cross-references, or diagnose a LaTeX-to-Word conversion
  problem. Do not use for PDF-only LaTeX compilation, general Word editing,
  or DOCX-to-LaTeX conversion.
version: 3.0.0

LaTeX to Word

Produce a submission-grade Word candidate from a complete LaTeX project. The candidate must preserve scientific meaning, use the confirmed target semantics, remain editable where practical, and include an explicit status for the user-run Word/Zotero acceptance steps.

Non-negotiable defaults

  • Preserve the original LaTeX, bibliography, figures, and authoritative Word target. Work only on generated files or explicit copies.
  • Use Pandoc as the initial editable-structure converter. Add source annotations, Lua, OpenXML, or supported-adapter Word automation only for an observed bridge mismatch.
  • For a new project, initialize examples/bridge-starter/ into the generated build directory. Reuse docx_bridge.py for fields, bookmarks, styles, and DOCX packaging; adapt configuration or project_adapter.py instead of reimplementing those primitives.
  • For every new or changed target, distill the required roles (not unrelated template styles) and pass a representative probe before full conversion.
  • Treat object packaging and layout as target-owned contract values. Paragraphs, tab stops, borderless tables, caption segment sequences, label literals, and object order are possible representations, not generic skill defaults.
  • When citations exist, Zotero-live fields are mandatory. Run the fixed Zotero-live setup and probe in references/conversion-playbook.md#zotero-live-citations; repair agent-side configuration where possible and give the user exact manual steps for the remaining Word/Zotero setup.
  • Convert every LaTeX cross-reference occurrence to a verified native Word field by default. Static references require an informed, recorded user opt-out.
  • Treat desktop Microsoft Word as the authoritative environment for fields, numbering, layout behavior, and final validation. Word and Zotero actions are user-run acceptance steps unless the host explicitly provides a supported desktop adapter; never assume GUI, COM, or process access.
  • Prioritize: scientific fidelity, content completeness, citation/numbering semantics, editability, template structure, visual fidelity, then automation cost.

Capability boundary

  • Required for execution: access to the project files and a viable DOCX conversion path. If either is absent, provide diagnosis or a handoff plan and report the conversion as blocked.
  • Optional capabilities include shell or Python execution, LaTeX compilation, local application/process detection, Word rendering, GUI automation, and visual inspection. Attempt one only when the host explicitly exposes it.
  • An unavailable optional capability becomes a user-run gate, not a failed conversion. An unobservable capability remains unknown; never convert unknown into an installation or compatibility claim.

Read routing

Situation Required read
New, changed, example-only, or ambiguous Word target references/template-distillation.md, then references/conversion-playbook.md#build-the-semantic-bridge
First build for a project examples/bridge-starter/, then references/conversion-playbook.md#build-the-semantic-bridge
Zotero, cross-references, equations, captions, complex objects, or diagnosis Relevant section of references/conversion-playbook.md
Candidate validation or handoff references/conversion-playbook.md#validate-and-hand-off
Other conversion work Scan this file, then load only the relevant playbook section

Required workflow

  1. Read the user request and nearest project instructions. Identify the complete LaTeX entry point, authoritative Word target, output path, and capabilities exposed by the host.
  2. Compile the complete LaTeX project when the host exposes the toolchain; otherwise request the user's compiled reference or record compilation as a pending evidence gate. Inventory included sources, semantic roles, figures, tables, equations, citations, labels, reference occurrences, appendices, custom macros, and numbering behavior.
  3. If citations exist, complete the mandatory Zotero setup and probe before expensive manuscript post-processing. Never use the absence of a zotero CLI alone as evidence that Zotero is unavailable. If live fields cannot be generated, stop the citation-bearing build and hand off the exact setup gate.
  4. Classify and distill every new or changed Word target into an explicit role contract. Do not treat --reference-doc as an executable specification.
  5. For a new project, run python scripts/init_bridge.py <build-dir> and fill bridge_config.json from the role contract. Keep stable field, bookmark, and package operations in the copied docx_bridge.py; put only project-specific behavior in project_adapter.py or the semantic Lua filter.
  6. Build the bridge LaTeX role -> Pandoc output -> target Word representation -> method. Resolve every required role before full conversion.
  7. Convert a representative probe covering every high-risk role and transition. Inspect actual styles, formatting, fields, bookmarks, lists, and objects.
  8. Correct each mismatch at its responsible layer. Start the complete conversion only after the probe passes the applicable contract rows.
  9. Build the complete candidate and validate source, target-contract, and DOCX evidence. Counts are diagnostic; semantic correspondence is the gate.
  10. Follow references/conversion-playbook.md#validate-and-hand-off. Give the user a disposable candidate and exact Word/Zotero acceptance steps. If the user returns the refreshed file, re-run the audit and compare pre/post evidence.
  11. Deliver the candidate, agent-side evidence, user-refresh status, adaptations, unresolved items, and approved exceptions.

Bundled tools

Use the bundled standard-library scripts when Python 3 is available. init_bridge.py creates generated bridge files only; the manifest and audit scripts are read-only over source and DOCX inputs.

python scripts/latex_manifest.py <main.tex> --output <source-manifest.json>
python scripts/init_bridge.py <build-dir>
python scripts/docx_audit.py <candidate.docx> \
  --latex-manifest <source-manifest.json> \
  --require-native-crossrefs --require-zotero-fields \
  --output <candidate-audit.json>
python scripts/docx_audit.py <refreshed.docx> \
  --latex-manifest <source-manifest.json> \
  --baseline <candidate-audit.json> \
  --require-native-crossrefs --require-zotero-fields

--require-zotero-fields checks generated field presence, not that Refresh has occurred. Scripts provide package and semantic evidence; they cannot replace user-run Word rendering, field refresh, Zotero refresh, or user confirmation.

Stop conditions

Do not label the candidate fully verified when a required role is unmapped, a native field lacks a valid target, a REF target contains an entire drawing or table, the user reports a Word repair warning, live field generation is unverified, the user refresh/save/reopen gate is pending, or an unresolved scientific-content mismatch remains. A pending user gate may be delivered as a clearly labelled candidate; never silently downgrade it.

Known gotchas

  • Imported styles are not evidence that generated content uses them correctly. See references/template-distillation.md#build-the-role-contract.
  • ensuremath can turn prose formulae and units into unwanted OMML. See references/conversion-playbook.md#preserve-text-and-math-semantics.
  • A Pandoc bookmark can span a whole object, causing REF to reproduce it. See references/conversion-playbook.md#native-word-cross-references.
  • Raw OpenXML and field construction are starter-engine responsibilities, not project-adapter code. See examples/bridge-starter/.
  • Word/Zotero refresh can change fields and document structure. See references/conversion-playbook.md#validate-and-hand-off.
  • Zotero Refresh updates existing Zotero fields; it cannot create fields from non-Zotero citation text. See references/conversion-playbook.md#zotero-live-citations.
  • Field update can discard caption-run formatting or expose faulty equation packaging or alignment. See references/conversion-playbook.md#word-specific-objects.
  • Equation container (e.g. 1×3 borderless table) is not the same as column widths. Short template demos often use equal thirds; long OMML with fractions or \qquad secondaries needs a wide math cell or Word reflows mid-expression. Probe with a complex display equation. See references/conversion-playbook.md#numbered-equations.
  • PDF, EPS, TikZ, and PGFPlots artwork needs explicit Word-supported output. See references/conversion-playbook.md#high-risk-objects.

Version history

  1. v3.0.0 GitHub ↗
    Original release notes

    ## Highlights - Replace the fixed conversion pipeline with a template-first, role-contract workflow. - Add the canonical DOCX bridge starter with reusable native field, bookmark, style-remap, and package-preserving helpers. - Add five-layer template distillation and target-owned object packaging for equations, captions, tables, and transitions. - Add read-only LaTeX manifest and DOCX audit tools, Zotero/Word acceptance gates, and behavior-focused tests. - Renumber the post-v2 development history under v2.x; this release is v3.0.0. ## Verification - 10 repository unit tests passed. - Source and installed skill copies are synchronized.

  2. v2.0.0 GitHub ↗
    Original release notes

    ## Highlights - Add native Word `SEQ`/`REF` promotion for figures, tables, and labeled equations. - Preserve LaTeX numbering across numbered-but-unlabeled predecessor objects. - Add cross-reference target, bookmark, occurrence, and LaTeX-to-DOCX fidelity audits. - Strengthen Zotero-live smoke validation and unresolved citation detection. - Upgrade the bundled Word template with editable equation, image, table, and cross-reference examples. - Expand bilingual workflow guidance, first-run setup, and ecosystem notes. See [`CHANGELOG.md`](https://github.com/hajimi-kun/latex-to-word-workflow/blob/v2.0.0/CHANGELOG.md) for details.

  3. v1.0.0 GitHub ↗
    Original release notes

    Initial public release. - Convert LaTeX manuscripts to polished editable DOCX. - Support static CSL references and native Zotero live citation fields. - Include a reusable Word reference template, validation scripts, and a minimal example. - Include first-run onboarding for Word template and Zotero/Better BibTeX setup. - Provide English and Chinese skill documentation.

Current listing version

3.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决学术写作中 LaTeX 转 Word 的实际痛点,具备完整工具链和验证流程
  • 明确区分适用与不适用场景,避免误用
Trigger Precision92/100

Highlights

  • 触发词定义清晰,涵盖多种用户表达变体
  • 边界条件明确,有效防止与其他文本处理技能混淆
Structure and Standards88/100

Areas to improve

  • 引用外部文件完整性 Reported severity: Minor

    主文档多次引用 references/conversion-playbook.md、examples/bridge-starter/ 等外部文件,但未确认是否包含在包内

    Recommendation: 确保所有被引用的 .md 和脚本文件均打包传入,或在文档中注明获取方式

Highlights

  • 工作流程分阶段清晰,含11个具体步骤和停止条件
  • 提供完整的命令行工具调用示例
Execution Reliability94/100

Highlights

  • 强调用户-run 关键步骤(如 Zotero 刷新),避免过度自动化假设
  • 对字段生成失败、模板不匹配等异常情况有明确处理路径
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.