latex-formula-to-word

Convert LaTeX thesis files to Word DOCX with native OMML formulas.

7|1|Updated May 16, 2026
One-click install
npx skills add https://github.com/kyt-cloud/latex-formula-to-word --skill latex-formula-to-word
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-formula-to-word
Source: https://github.com/kyt-cloud/latex-formula-to-word/tree/main
Command: npx skills add https://github.com/kyt-cloud/latex-formula-to-word --skill latex-formula-to-word

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, pymupdf, pandoc, soffice, and includes scripts (resource) components.

What problem does it solve?

This Skill converts a LaTeX thesis into a Word document that preserves the original PDF-like layout while turning every formula into a native Word OMML object instead of a pasted image or broken equation.

Core Features & Use Cases

  • Formula placeholder scanning: Finds inline and display math across linked TeX files and rewrites them as tracked placeholders.
  • PDF-preserving workflow: Produces a placeholder TeX build for PDF-to-Word conversion while keeping thesis structure, margins, and page layout intact.
  • Word cleanup and validation: Replaces placeholders with OMML, fixes spurious section-break artifacts that cause blank pages, and checks rendered page fill for layout issues.
  • Use case: A graduate student can convert a Chinese thesis into an editable Word file without sacrificing equation fidelity or section formatting.

Quick Start

Use this skill on a LaTeX thesis project to scan the source, generate a placeholder PDF for manual Word conversion, and then replace the placeholders with native OMML while cleaning the final document layout.

Frequently Asked Questions about latex-formula-to-word

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

FAQPage Schema
How do I convert LaTeX formulas to Word without losing equation editability?

To convert LaTeX formulas to Word without losing editability, this Skill scans TeX source files for math expressions and replaces them with native OMML objects. This ensures equations remain fully editable in the final DOCX file rather than being pasted as static images.

What is the best way to convert a LaTeX thesis to DOCX while preserving the original PDF layout?

The best way to convert a LaTeX thesis to DOCX while preserving layout is by generating a placeholder PDF for initial conversion. This Skill then cleans up the resulting Word file, replacing placeholders with OMML formulas and fixing section-break artifacts to maintain page fidelity.

Why does my PDF-to-Word conversion have blank pages and broken section breaks?

Blank pages and broken section breaks in PDF-to-Word conversion often result from spurious section-break artifacts. This Skill addresses this by performing Word-specific section-break cleanup and validating rendered page fill to eliminate layout issues.

Do I need pandoc and LibreOffice to convert TeX files to OMML Word documents?

Yes, you need pandoc for equation conversion and soffice (LibreOffice) for rendering checks to validate the final document. The workflow also requires Python-based XML editing with lxml to properly replace placeholders with OMML formulas.

Can I use this workflow for a Chinese thesis with complex inline and display math?

Yes, this workflow specifically targets Chinese thesis workflows with complex inline and display math. It scans linked TeX files to track math placeholders and ensures they are accurately replaced with native Word OMML objects during the DOCX cleanup phase.