name: word-latex-formula description: Convert manually typed formulas in Word documents (.doc, .docx, .wps) into editable Word equations while preserving layout through local Microsoft Word or LibreOffice conversion and direct OOXML edits. Use for academic manuscripts, staged formula review, local batch conversion, or optional AI-assisted formula classification.
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.
The runnable project is bundled at resources/latex_convert_project/.
python3 -m latex_convert.clipython scripts/start_web.pyreferences/SECURITY_AND_PRIVACY.md before enabling AI review or configuring any external model endpoint.references/USAGE.md when a user asks for installation, web UI, or advanced parameters.resources/latex_convert_project/ unless the user provides another checkout path..doc or .wps, use --engine auto by default. macOS and Windows try Microsoft Word first; if Word automation fails, the code falls back to LibreOffice. Linux uses LibreOffice.scan, review or decide, then apply.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.
7w4.net小蔥技能站,你的AI助手技能庫。
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.
.docx opens in Word.formulas_converted, formulas_kept, and failed in the report.這是一個質量優秀的 Word 公式轉換工具。文件和隱私說明非常詳盡,轉換功能完整,支援本地處理和可選 AI 輔助,工作流程靈活,能滿足不同場景需求。不足之處是依賴 Word 或 LibreOffice 等外部軟體,對 Linux 使用者不太友好,且某些特殊文件格式的相容性還有提升空間。