paper-compile-zh

Compile Chinese LaTeX papers into validated PDFs using XeLaTeX and BibTeX.

1|Updated May 14, 2026
One-click install
npx skills add https://github.com/lix965996-art/MMM --skill paper-compile-zh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile-zh
Source: https://github.com/lix965996-art/MMM/tree/main/resources/app/skills/paper-compile-zh
Command: npx skills add https://github.com/lix965996-art/MMM --skill paper-compile-zh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the frustrating, error-prone process of compiling Chinese LaTeX academic papers into a working PDF by automating XeLaTeX setup, cleanup, embedding checks, compile loops, and validation gates.

Core Features & Use Cases

  • Chinese LaTeX (XeLaTeX) compilation: Builds paper/main.tex into paper/main.pdf with the required Chinese toolchain (e.g., MikTeX packages) when missing.
  • Pre-compile cleanup & integrity checks: Runs cleanup logic (via compile_utils.sh when available) and verifies figure/table completeness and label embedding before compiling.
  • Robust multi-pass error diagnosis: Detects and fixes LaTeX math delimiter issues and float-related LR mode errors, then recompiles up to a capped attempt count.
  • Post-compile quality gates: Ensures PDF existence/size, bibliography presence, embedded figures/tables, overflow checks, abstract presence, and additional structural constraints.

Quick Start

Ask the system to run the paper compilation using the paper directory argument so it produces paper/main.pdf from the Chinese LaTeX source.

Frequently Asked Questions about paper-compile-zh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile a Chinese LaTeX paper to PDF when XeLaTeX keeps failing?

Compiling Chinese LaTeX papers to PDF requires automated XeLaTeX setup and multi-pass error diagnosis. This process installs missing font packages, detects math delimiter and float LR mode errors, and iteratively recompiles to produce a validated main.pdf.

Do I need to install Chinese font packages manually before compiling XeLaTeX documents?

No, manual font package installation is not required. The automated compilation process checks the environment and installs required Chinese toolchain packages, such as MikTeX dependencies, when they are missing before building the PDF.

What is the best way to ensure bibliography and figure embedding are present in my LaTeX PDF?

Ensuring bibliography and figure embedding requires post-compile quality gate validation. After running BibTeX and XeLaTeX, the system verifies PDF existence, embedded figures, tables, and bibliography presence against structural constraints.

Why does my Chinese academic paper compilation fail with unembedded assets and LR mode errors?

Chinese academic paper compilation fails due to unembedded assets and LR mode errors from misconfigured floats. Pre-compile integrity checks detect unembedded figures, while robust multi-pass error diagnosis fixes float issues and math delimiters before recompiling.

Can I run BibTeX and XeLaTeX compilation automatically for a paper directory?

Yes, you can run automated compilation by providing the paper directory path. The system executes cleanup, applies BibTeX and XeLaTeX, and validates the output to generate paper/main.pdf from the Chinese LaTeX source.