docx-to-latex

Convert Word documents (.docx) to LaTeX format with full support for OMML mathematical formulas, images, tables, and text formatting. Use when the user wants to convert a Word document to LaTeX, particularly documents containing mathematical equations, formulas, or scientific content.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docx-to-latex" with this command: npx skills add qyqsdtc/financial_analysis_agent_skill/qyqsdtc-financial-analysis-agent-skill-docx-to-latex

DOCX to LaTeX Converter

Convert Word documents to LaTeX with accurate math formula conversion.

Quick Start

Run the conversion script:

python scripts/docx_to_latex.py input.docx output.tex --images-dir images

Workflow

1. Basic Conversion

python scripts/docx_to_latex.py document.docx document.tex

This extracts:

  • Text content with formatting (bold, italic, underline)
  • Headings → \section, \subsection, etc.
  • Lists → itemize/enumerate
  • Tables → tabular environment
  • Images → extracted to images/ folder
  • Math formulas (OMML) → LaTeX math notation

2. Review Math Formulas

After conversion, verify complex formulas in the output .tex file. The converter handles:

  • Fractions: \frac{a}{b}
  • Subscripts/superscripts: x_{i}^{2}
  • Radicals: \sqrt{x}, \sqrt[n]{x}
  • Integrals/sums: \int_{a}^{b}, \sum_{i=1}^{n}
  • Matrices: pmatrix environment
  • Greek letters and math symbols
  • Delimiters with auto-sizing: \left( \right)

For OMML element details, see references/omml_conversion.md.

3. Compile LaTeX

pdflatex output.tex

Required packages (auto-included in preamble):

  • amsmath, amsfonts, amssymb - math support
  • graphicx - images
  • hyperref - links
  • booktabs - tables

Manual Adjustments

After automatic conversion, may need manual fixes for:

IssueSolution
Complex nested formulasVerify bracket matching
Custom macros in originalDefine in preamble
Equation numberingAdd \label{} and use equation environment
Figure captionsUpdate auto-generated "Image" captions
Table alignmentAdjust column specs in tabular

Example

Input (Word with OMML):

  • Equation: "The quadratic formula is x = (-b ± √(b²-4ac)) / 2a"

Output (LaTeX):

The quadratic formula is $x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}$

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

financial-analysis

No summary provided by upstream source.

Repository SourceNeeds Review
Research

learn-anything-in-one-hour

Teach users any new skill/knowledge X in ~1 hour using a fixed 4-step workflow optimized for complete beginners, focusing on 80/20 rule for maximum value in minimum time. Triggers when user asks to learn something new quickly, or mentions "learn X in one hour".

Archived SourceRecently Updated
Research

X/Twitter Research

# X/Twitter Research Skill

Archived SourceRecently Updated