Math Formula PDF to Editable Word
Paste the following prompt into your AI chat to install this skill:
Please install @user_1627842f/pdf-toord using https://skillhub.cn/install/skillhub.md.
About this skill
The Problem
Scanned math exams or supplementary PDF files are often image-only, with no selectable text. Formulas and tables cannot be edited directly in Word, and raw OCR output can still produce broken formulas, HTML tables, and missing layout rules. This skill targets math PDFs that need to become Word documents for further editing: formulas become OMML, tables become native Word tables, and the layout follows A4 exam-style conventions.
How It Works
The skill continues from existing MinerU output, usually checking a directory that contains full.md and images/, and asks the user to remove unrelated images such as QR-code ads or publisher logos. It then runs a conversion pipeline: normalize HTML tables into Pandoc-compatible Markdown pipe tables; generate DOCX with Pandoc, converting formulas to editable OMML and tables into Word tables; apply fixed layout parameters such as A4 paper, 2.5cm top and bottom margins, 3.2cm left and right margins, body text settings, and 1.5 line spacing; and clean MinerU artifacts like text_image or geometry-caption noise.
Boundaries and Caveats
It is best suited to image-only math PDFs, especially exams, workbooks, and study materials. The local environment needs MinerU, Pandoc, and Python. Pandoc does not directly convert HTML tables, so table normalization is required; image paths also require running from the Markdown directory to avoid broken references. Some tables may remain as images if MinerU does not recognize them, and merged cells cannot be fully represented in Markdown pipe tables, so manual adjustment in Word may still be needed.
Use Cases
- Receive scanned math exam PDFs and convert formulas and tables into editable Word for question editing.
- Convert image-only math exams into documents with OMML formulas and native Word tables while building a question bank.
- Export supplementary math PDFs to DOCX, then adjust questions, answers, and layout in Word.
- Remove ad logos from MinerU output images and regenerate an A4-formatted Word file.
Best For
- Teaching-research staff digitizing exam archives: need scanned math exams converted into editable Word for proofreading and re-layout.
- Math teachers preparing answer keys: need to edit formulas, tables, and question numbers without retyping content.
- Engineers maintaining local MinerU and Pandoc pipelines: need automated DOCX output with OMML formulas and A4 layout.
- Content editors building math question banks: need formulas and tables preserved while cleaning MinerU artifacts.
Related Skills
Generate and edit .pptx decks with python-pptx, applying structured layouts, design rules, native charts, and visual QA to reduce template-like output.
Tencent Cloud Table Recognition V3 is an OCR skill for detecting and recognizing tables in images or PDFs, supporting various table types like linear and borderless tables, with Excel export.
The complete set of online document operation tools provided by Tencent Docs MCP, supporting creation, querying, and editing of smart docs, Excel, PPT, mind maps, and more.
Turn a topic, notes, or tables into a complete PPT plan with logic, page layouts, visual and chart guidance, and natural defense scripts.