comp-compile-zh

Compile Chinese competition LaTeX papers into PDFs with compliance validations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of repeatedly compiling Chinese competition papers while ensuring strict competition compliance, including PDF generation and checks for page count, anonymity, formatting, and embedded figures/tables.

Core Features & Use Cases

  • Environment verification & dependency bootstrapping: Checks for XeLaTeX (and related BibTeX/toolchain) and attempts to install required MiKTeX components for Chinese/GB/T typography (e.g., ctex/XeCJK/gbt7714).
  • Pre-compile cleanup & LaTeX safety preparation: Runs a compile cleanup utility when available to fix common issues like special characters, table/figure path nesting, hidelinks, and TikZ library injection.
  • Mandatory embedded assets validation: Prevents compilation unless all figures/tables (including TABLE_*.tex and labeled items referenced by latex_includes.tex) are fully embedded, then enforces an error-fix compile loop for LaTeX critical issues.

Quick Start

Use the comp-compile-zh skill with the provided paper directory argument to compile the Chinese competition paper, validate embedded figures and tables, and run post-compilation compliance checks.

Frequently Asked Questions about comp-compile-zh

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

FAQPage Schema
How do I compile a Chinese LaTeX paper with XeLaTeX and BibTeX for competition compliance?

Compiling a Chinese competition paper requires XeLaTeX with BibTeX to process your main.tex entry, enforcing compliance validations like page constraints and embedded figures/tables through iterative log-based error fixing until generating a final PDF.

Why does my XeLaTeX compilation fail when figures and tables are not embedded?

XeLaTeX compilation fails with unembedded assets because mandatory validation prevents building unless all figures/tables, including TABLE_*.tex and labeled items referenced by latex_includes.tex, are fully embedded and corrected before the compile loop proceeds.

Do I need MiKTeX and ctex packages installed to compile Chinese competition papers?

Yes, compiling Chinese competition papers requires XeLaTeX and related toolchain components. The process verifies the environment and attempts to install required MiKTex components like ctex, XeCJK, and gbt7714 to support Chinese and GB/T typography standards.

What's the best way to fix LaTeX critical errors during Chinese paper PDF compilation?

The best way to fix LaTeX critical errors during Chinese paper PDF compilation is through an iterative log-based error fixing loop. The process runs pre-compile cleanup to resolve special characters and path nesting, then repeats compilation while analyzing logs until errors are cleared.

Does XeLaTeX compilation check document structure integrity and citations post-build?

Yes, XeLaTeX compilation performs post-compile verification including checking the table of contents, citations, and overall document structure integrity. This ensures the final PDF meets competition formatting, referencing, and bibliography requirements after the build completes.

Can I compile a Chinese competition paper if my LaTeX project has special characters and nested table paths?

Yes, you can compile a Chinese competition paper with special characters and nested table paths. Pre-compile cleanup runs automatically to fix common issues like special characters, table/figure path nesting, hidelinks, and TikZ library injection before the main compilation begins.