/install word-latex-formula
Word Formula Conversion
Use this skill when a user wants manually typed formula text in a Word document converted into editable Word equations while preserving the original document layout as much as possible.
Resource Layout
The runnable project is bundled at resources/latex_convert_project/.
- Core CLI:
python3 -m latex_convert.cli - Web UI starter:
python scripts/start_web.py - Security notes: read
references/SECURITY_AND_PRIVACY.mdbefore enabling AI review or configuring any external model endpoint. - Operational details: read
references/USAGE.mdwhen a user asks for installation, web UI, or advanced parameters.
Default Workflow
- Keep the source document unchanged.
- Work from
resources/latex_convert_project/unless the user provides another checkout path. - For
.docor.wps, use--engine autoby default. macOS and Windows try Microsoft Word first; if Word automation fails, the code falls back to LibreOffice. Linux uses LibreOffice. - For important manuscripts, prefer the staged pipeline:
scan, review or decide, thenapply. - Leave bibliography protection enabled unless the user explicitly says formulas appear inside the bibliography section.
- Modify only OOXML formula targets. Do not rebuild the document with high-level document libraries.
- Verify output by checking the JSON report and confirming Word math nodes exist.
Common Commands
One-step local conversion:
cd resources/latex_convert_project
python3 -m latex_convert.cli convert input.docx -o output.docx --report report.json
Staged review:
cd resources/latex_convert_project
python3 -m latex_convert.cli scan input.docx --out candidates.json --review-doc candidates.docx
python3 -m latex_convert.cli decide candidates.json -o decisions.json --provider rule
python3 -m latex_convert.cli apply input.docx --decisions decisions.json -o output.docx --report apply_report.json
Optional AI-assisted decision:
cd resources/latex_convert_project
python3 -m latex_convert.cli decide candidates.json \
-o ai_decisions.json \
--provider ai \
--api-key "$OPENAI_API_KEY" \
--base-url "https://api.openai.com/v1" \
--model "gpt-4.1-mini"
Quick Web UI:
cd resources/latex_convert_project
python scripts/start_web.py
Open http://127.0.0.1:5173.
Data and Network Policy
Default rule-based conversion is local-only. It reads the user's document, invokes local Word or LibreOffice when needed, edits OOXML locally, and writes local output files.
External network requests occur only when the user explicitly chooses AI review, clicks AI conversion in the Web UI, or tests a configured AI model. In that mode, the tool sends only formula-candidate data needed for classification and LaTeX normalization to the user-provided base_url: candidate id, formula text, nearby context, local LaTeX draft, confidence/default action, and model metadata. The whole Word file is not uploaded by the built-in AI review path. API keys are read from user input or local environment files and are not bundled in this skill.
If an AI request times out or fails, the tool retries once by default and then falls back to local rule decisions, preserving task completion without requiring further external calls.
Quality Checks
- Confirm the output
.docxopens in Word. - Confirm converted formulas are editable Word equations, not images.
- Check
formulas_converted,formulas_kept, andfailedin the report. - Spot-check fractions, subscripts, superscripts, Greek letters, sums, and inequalities.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install word-latex-formula - After installation, invoke the skill by name or use
/word-latex-formula - Provide required inputs per the skill's parameter spec and get structured output
What is word-latex-formula?
Convert manually typed formulas in Word documents (.doc, .docx, .wps) into editable Word equations while preserving layout through local Microsoft Word or Li... It is an AI Agent Skill for Claude Code / OpenClaw, with 53 downloads so far.
How do I install word-latex-formula?
Run "/install word-latex-formula" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is word-latex-formula free?
Yes, word-latex-formula is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does word-latex-formula support?
word-latex-formula is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created word-latex-formula?
It is built and maintained by DavidTian (@tianyedavid); the current version is v1.0.0.