Install
openclaw skills install manuscript-math-docx-qcPortable agent skill/playbook for OpenClaw, Hermes, Claude, Codex, and other agents revising scientific manuscripts that will be exported to DOCX/PDF, especially when mathematical formulas, subscripted variables, tables, figures, Word rendering, Pandoc conversion, LibreOffice PDF checks, or submission-package visual QC may fail.
openclaw skills install manuscript-math-docx-qcUse this skill/playbook to turn manuscript source files into Word/PDF-safe submission artifacts. It is written to be usable by OpenClaw, Hermes, Claude, Codex, and other coding or research agents. The goal is not only correct content, but correct rendering in the actual files that authors, reviewers, or journal portals will inspect.
This file is the authoritative workflow. Agents that do not support formal skill metadata can ignore the YAML header and follow the Markdown instructions directly.
AGENTS.md first, then this file for the full workflow.name and description metadata above.Do not assume a specific agent runtime, memory format, tool wrapper, or repository layout. Use the available shell, document, image, and file-inspection tools in the current environment.
Treat this skill as a living checklist. When using it on a real manuscript and discovering a reusable failure mode, formula pattern, DOCX/PDF conversion issue, figure-layout fix, table-rendering fix, or submission-package synchronization problem, update this SKILL.md before finishing if the lesson is likely to recur.
Only add generalizable lessons. Do not add project-specific paths, manuscript titles, private author details, transient filenames, or one-off numerical results unless they describe a reusable workflow pattern.
Good additions:
Bad additions:
Identify the authoritative source.
manuscript.md, .tex, .docx) and figure/table generation scripts.Check formula source before judging screenshots.
rg -n "\\$\\$|\\\\\\(|\\\\\\)|\\\\frac|\\\\sum|metric|SE_|Y_\\{|w_\\{|scores\\[|weights\\[" manuscript code
Fix formulas for Word/Pandoc/LibreOffice rendering.
$Y_{ij}$, $w_{ij}$, $x_i$.`Y_ij` unless referring to a literal column name.\operatorname{} or \text{} so Word does not space letters apart.$$\theta = \max\left(0, \min\left(1,
\frac{|\operatorname{metric}_{\text{raw}} - \operatorname{metric}_{\text{processed}}|}
{|\operatorname{metric}_{\text{raw}}|}\right)\right)$$
$$\mathrm{metricValue}_{\mathrm{raw}}$$
This can render as spaced letters in some LibreOffice/PDF conversion paths.$\text{SE}_{\text{raw}}$
$|\operatorname{metric}_{\text{raw}}/t_{\text{raw}}|$
Keep terminology distinct from math.
metric_raw, metric_processed, qc_score.Rebuild and inspect actual DOCX/PDF.
pandoc manuscript/manuscript.md -o build/manuscript.docx
unzip -t build/manuscript.docx | tail -5
soffice --headless --convert-to pdf --outdir build/pdf_check build/manuscript.docx
pdfinfo build/pdf_check/manuscript.pdf | rg 'Pages|Page size|File size'
rm -rf build/pdf_check/pages
mkdir -p build/pdf_check/pages
pdftoppm -png -r 130 build/pdf_check/manuscript.pdf build/pdf_check/pages/page
Make contact sheets for fast visual QC.
Fix figures in source scripts, not in Word.
subplots_adjust, reduce label density, wrap panel titles, move annotations into empty space, or remove nonessential callout boxes.Fix tables by DOCX postprocessing when needed.
unzip -t.Sync upload packages after rebuilding.
zip -r upload_package_qc.zip upload_package_dir
unzip -t upload_package_qc.zip
\operatorname{} or \text{}.\mathrm{metricValue} renders as spaced letters in PDF: replace with \operatorname{metricValue}.Y_ij instead of showing a subscript: replace code span with $Y_{ij}$.figures/ but wrong in DOCX: the embedded image was stale or missing.When reporting back, give:
unzip -t, PDF conversion, page count, contact sheet or page inspection, zip unzip -t.