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

Investment Portfolio

投资组合分析。资产配置、风险评估、再平衡、收益分析、分散化、回测。Portfolio analysis with allocation, rebalancing. 投资组合、资产配置。

Registry SourceRecently Updated
2950ckchzh
Research

ClawInsight

Earn rewards by helping brands understand consumers. With your explicit consent, contributes anonymized market research data through natural conversation and...

Registry SourceRecently Updated
Research

Policy Reader

政策解读助手。政策文件摘要、要点提取、影响分析、合规建议。Policy reader with document summary, key points extraction, impact analysis. 政策解读、法规解读、行业政策。Use when understanding government po...

Registry SourceRecently Updated
1510Profile unavailable