Manuscript Math, DOCX, and Visual QC Playbook for Openclaw

An automated quality control skill for academic manuscripts that ensures flawless mathematical formulas, tables, figures, and DOCX/PDF rendering.

xutaoguo55
v1.0.0
Jun 4, 2026
0
570
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install manuscript-math-docx-qc

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install manuscript-math-docx-qc using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Manuscript Math, DOCX, and Visual QC Playbook?

The manuscript-math-docx-qc skill is a highly specialized playbook designed to solve one of the most frustrating aspects of academic publishing: formatting degradation during file conversion. When scientific manuscripts move from markdown or LaTeX sources to DOCX and PDF formats, mathematical formulas, subscripted variables, and complex figures often break or render incorrectly. This playbook bridges the gap between raw research source files and polished, publication-ready submission packages.

By leveraging this blueprint within your agent ecosystem, you can automate visual quality control. This ensures that variables, equations, tables, and images remain perfectly synchronized and visually flawless in the final artifacts that editors and reviewers inspect. It is one of the most powerful Openclaw Skills for researchers, technical writers, and document developers looking to de-risk their journal submissions.

Manuscript Math, DOCX, and Visual QC Playbook Use Cases

  • Converting Markdown to Word (DOCX): Automatically formatting variables and equations to prevent Pandoc or LibreOffice rendering glitches.
  • Validating PDF Layouts: Running headless LibreOffice checks to verify page dimensions, page count, and visual integrity.
  • Figure and Table Syncing: Rebuilding and synchronizing multi-panel figures and data tables to ensure no clipping or text overlap occurs in the final PDF.
  • Academic Journal Submissions: Assembling, verifying, and packaging final zip archives for submission portals to avoid stale file issues.
  • Automated Document QA: Instantly rendering pages to PNG contact sheets for rapid visual inspection of layout errors.

How Manuscript Math, DOCX, and Visual QC Playbook Works

  1. Source Identification: The agent scans the workspace to identify the authoritative raw manuscript source files (Markdown, LaTeX) and figure generation scripts.
  2. Math Syntax Analysis: The system parses mathematical expressions for high-risk patterns (like raw subscripted variables in code spans or spaced fonts in PDF rendering) and converts them into Word-safe LaTeX.
  3. Asset Regeneration: Source scripts run to regenerate the exact images, figures, and tables embedded in the document.
  4. Multi-Format Export & ZIP Validation: The skill runs Pandoc to generate the DOCX, uses headless LibreOffice to export to PDF, and tests ZIP archive integrity.
  5. Visual Quality Control: It converts the generated PDF pages into PNGs to programmatically or visually verify bounds, overlapping labels, and margins.
  6. Deployment Synchronization: Corrected DOCX, PDF, and figure files are synced to the final upload directory and compiled into a validated ZIP package.

Manuscript Math, DOCX, and Visual QC Playbook Setup

Ensure your environment has the required conversion and rendering tools installed:

# Install CLI dependencies (Pandoc, LibreOffice, and Poppler utilities)
sudo apt-get update && sudo apt-get install -y pandoc libreoffice poppler-utils ripgrep unzip zip

Once the CLI tools are available, integrate this skill into your agent. For agents using Openclaw Skills, place this file under your workspace's skill directory (e.g., skills/manuscript-math-docx-qc.md). The agent will parse this checklist to govern its document compilation and visual inspection tasks automatically.

Manuscript Math, DOCX, and Visual QC Playbook Data Schema & Taxonomy

The skill structures outputs and intermediate artifacts within a defined project directory to separate source files from validation outputs:

Path Description
manuscript/manuscript.md The authoritative source manuscript file
build/manuscript.docx Rebuilt Microsoft Word document
build/pdf_check/ Output folder for PDF conversion checks
build/pdf_check/manuscript.pdf Generated PDF for layout inspection
build/pdf_check/pages/ Extracted PNG pages (e.g., page-1.png) for visual QA
upload_package_dir/ Staging area for the final submission assets
upload_package_qc.zip Final, validated submission package zip archive

Manuscript Math, DOCX, and Visual QC Playbook Advanced Features

  • Automated PNG Contact Sheets: Converts PDF pages to high-resolution PNGs to check for overlapping figure labels and clipped margins programmatically or visually.
  • Post-Processing DOCX XML: Advanced capabilities to inject custom table properties directly into the DOCX XML to enforce top-alignment and narrow boundaries for wide tables.
  • Strict Terminology Separations: Automatically enforces a distinction between literal software outputs (code blocks) and mathematical quantities (LaTeX math mode).
  • Multi-Agent Playbook Compatibility: Agnostic architecture allowing deployment across OpenClaw, Hermes, Claude, and Codex environments without tight binding to a specific runtime.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*