Logo van Latex To Word Workflow

Latex To Word Workflow

Community
hajimi-kun
latex-to-word-workflow

Load when the user asks to convert an academic LaTeX manuscript, thesis, or report into an editable Word DOCX, adapt it to a Word template, preserve citations or cross-references, or diagnose a LaTeX-to-Word conversion problem. Do not use for PDF-only LaTeX compilation, general Word editing, or DOCX-to-LaTeX conversion.

Overzicht

Uitgeverhajimi-kun
Repositorylatex-to-word-workflow
Skillnaamlatex-to-word-workflow
Sterren
134
Forks
8
Meegeleverde bestanden
11
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 11

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door hajimi-kun op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Latex To Word Workflow in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/hajimi-kun/latex-to-word-workflow/tree/main/latex-to-word-workflow
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hajimi-kun/latex-to-word-workflow.git /tmp/latex-to-word-workflow
mkdir -p .claude/skills
cp -r /tmp/latex-to-word-workflow/latex-to-word-workflow .claude/skills/latex-to-word-workflow
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Latex To Word Workflow in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Latex To Word Workflow automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Latex To Word Workflow niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

LaTeX to Word

Produce a submission-grade Word candidate from a complete LaTeX project. The candidate must preserve scientific meaning, use the confirmed target semantics, remain editable where practical, and include an explicit status for the user-run Word/Zotero acceptance steps.

Non-negotiable defaults

  • Preserve the original LaTeX, bibliography, figures, and authoritative Word target. Work only on generated files or explicit copies.
  • Use Pandoc as the initial editable-structure converter. Add source annotations, Lua, OpenXML, or supported-adapter Word automation only for an observed bridge mismatch.
  • For a new project, initialize examples/bridge-starter/ into the generated build directory. Reuse docx_bridge.py for fields, bookmarks, styles, and DOCX packaging; adapt configuration or project_adapter.py instead of reimplementing those primitives.
  • For every new or changed target, distill the required roles (not unrelated template styles) and pass a representative probe before full conversion.
  • Treat object packaging and layout as target-owned contract values. Paragraphs, tab stops, borderless tables, caption segment sequences, label literals, and object order are possible representations, not generic skill defaults.
  • When citations exist, Zotero-live fields are mandatory. Run the fixed Zotero-live setup and probe in references/conversion-playbook.md#zotero-live-citations; repair agent-side configuration where possible and give the user exact manual steps for the remaining Word/Zotero setup.
  • Convert every LaTeX cross-reference occurrence to a verified native Word field by default. Static references require an informed, recorded user opt-out.
  • Treat desktop Microsoft Word as the authoritative environment for fields, numbering, layout behavior, and final validation. Word and Zotero actions are user-run acceptance steps unless the host explicitly provides a supported desktop adapter; never assume GUI, COM, or process access.
  • Prioritize: scientific fidelity, content completeness, citation/numbering semantics, editability, template structure, visual fidelity, then automation cost.

Capability boundary

  • Required for execution: access to the project files and a viable DOCX conversion path. If either is absent, provide diagnosis or a handoff plan and report the conversion as blocked.
  • Optional capabilities include shell or Python execution, LaTeX compilation, local application/process detection, Word rendering, GUI automation, and visual inspection. Attempt one only when the host explicitly exposes it.
  • An unavailable optional capability becomes a user-run gate, not a failed conversion. An unobservable capability remains unknown; never convert unknown into an installation or compatibility claim.

Read routing

SituationRequired read
New, changed, example-only, or ambiguous Word targetreferences/template-distillation.md, then references/conversion-playbook.md#build-the-semantic-bridge
First build for a projectexamples/bridge-starter/, then references/conversion-playbook.md#build-the-semantic-bridge
Zotero, cross-references, equations, captions, complex objects, or diagnosisRelevant section of references/conversion-playbook.md
Candidate validation or handoffreferences/conversion-playbook.md#validate-and-hand-off
Other conversion workScan this file, then load only the relevant playbook section

Required workflow

  1. Read the user request and nearest project instructions. Identify the complete LaTeX entry point, authoritative Word target, output path, and capabilities exposed by the host.
  2. Compile the complete LaTeX project when the host exposes the toolchain; otherwise request the user's compiled reference or record compilation as a pending evidence gate. Inventory included sources, semantic roles, figures, tables, equations, citations, labels, reference occurrences, appendices, custom macros, and numbering behavior.
  3. If citations exist, complete the mandatory Zotero setup and probe before expensive manuscript post-processing. Never use the absence of a zotero CLI alone as evidence that Zotero is unavailable. If live fields cannot be generated, stop the citation-bearing build and hand off the exact setup gate.
  4. Classify and distill every new or changed Word target into an explicit role contract. Do not treat --reference-doc as an executable specification.
  5. For a new project, run python scripts/init_bridge.py <build-dir> and fill bridge_config.json from the role contract. Keep stable field, bookmark, and package operations in the copied docx_bridge.py; put only project-specific behavior in project_adapter.py or the semantic Lua filter.
  6. Build the bridge LaTeX role -> Pandoc output -> target Word representation -> method. Resolve every required role before full conversion.
  7. Convert a representative probe covering every high-risk role and transition. Inspect actual styles, formatting, fields, bookmarks, lists, and objects.
  8. Correct each mismatch at its responsible layer. Start the complete conversion only after the probe passes the applicable contract rows.
  9. Build the complete candidate and validate source, target-contract, and DOCX evidence. Counts are diagnostic; semantic correspondence is the gate.
  10. Follow references/conversion-playbook.md#validate-and-hand-off. Give the user a disposable candidate and exact Word/Zotero acceptance steps. If the user returns the refreshed file, re-run the audit and compare pre/post evidence.
  11. Deliver the candidate, agent-side evidence, user-refresh status, adaptations, unresolved items, and approved exceptions.

Bundled tools

Use the bundled standard-library scripts when Python 3 is available. init_bridge.py creates generated bridge files only; the manifest and audit scripts are read-only over source and DOCX inputs.

text
python scripts/latex_manifest.py <main.tex> --output <source-manifest.json>
python scripts/init_bridge.py <build-dir>
python scripts/docx_audit.py <candidate.docx> \
  --latex-manifest <source-manifest.json> \
  --require-native-crossrefs --require-zotero-fields \
  --output <candidate-audit.json>
python scripts/docx_audit.py <refreshed.docx> \
  --latex-manifest <source-manifest.json> \
  --baseline <candidate-audit.json> \
  --require-native-crossrefs --require-zotero-fields

--require-zotero-fields checks generated field presence, not that Refresh has occurred. Scripts provide package and semantic evidence; they cannot replace user-run Word rendering, field refresh, Zotero refresh, or user confirmation.

Stop conditions

Do not label the candidate fully verified when a required role is unmapped, a native field lacks a valid target, a REF target contains an entire drawing or table, the user reports a Word repair warning, live field generation is unverified, the user refresh/save/reopen gate is pending, or an unresolved scientific-content mismatch remains. A pending user gate may be delivered as a clearly labelled candidate; never silently downgrade it.

Known gotchas

  • Imported styles are not evidence that generated content uses them correctly. See references/template-distillation.md#build-the-role-contract.
  • ensuremath can turn prose formulae and units into unwanted OMML. See references/conversion-playbook.md#preserve-text-and-math-semantics.
  • A Pandoc bookmark can span a whole object, causing REF to reproduce it. See references/conversion-playbook.md#native-word-cross-references.
  • Raw OpenXML and field construction are starter-engine responsibilities, not project-adapter code. See examples/bridge-starter/.
  • Word/Zotero refresh can change fields and document structure. See references/conversion-playbook.md#validate-and-hand-off.
  • Zotero Refresh updates existing Zotero fields; it cannot create fields from non-Zotero citation text. See references/conversion-playbook.md#zotero-live-citations.
  • Field update can discard caption-run formatting or expose faulty equation packaging or alignment. See references/conversion-playbook.md#word-specific-objects.
  • Equation container (e.g. 1×3 borderless table) is not the same as column widths. Short template demos often use equal thirds; long OMML with fractions or \qquad secondaries needs a wide math cell or Word reflows mid-expression. Probe with a complex display equation. See references/conversion-playbook.md#numbered-equations.
  • PDF, EPS, TikZ, and PGFPlots artwork needs explicit Word-supported output. See references/conversion-playbook.md#high-risk-objects.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Latex To Word Workflow?

Load when the user asks to convert an academic LaTeX manuscript, thesis, or report into an editable Word DOCX, adapt it to a Word template, preserve citations or cross-references, or diagnose a LaTeX-to-Word conversion problem. Do not use for PDF-only LaTeX compilation, general Word editing, or DOCX-to-LaTeX conversion.

Waarom Latex To Word Workflow gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Latex To Word Workflow bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Latex To Word Workflow in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/hajimi-kun/latex-to-word-workflow/tree/main/latex-to-word-workflow. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Latex To Word Workflow gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Latex To Word Workflow gebruiken?

Zoveel als je wilt. Je kunt Latex To Word Workflow gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Latex To Word Workflow gratis?

Ja. Deze skill is door hajimi-kun op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇