math-latex
Skill57 starsChanged 6 months agoMITView on GitHub
Use when 高教社杯/CUMCM 数学建模论文需要 LaTeX 排版、模板保持、中英文摘要、公式、表格、图、参考文献、匿名性、页数、浮动体或最终 PDF 质量检查。
In this repository13 other files it gives its agents.
- math-abstractSkill
- math-codeSkill
- math-complianceSkill
- math-consistencySkill
- math-figureSkill
- math-hubSkill
- math-literatureSkill
- math-modelSkill
- math-problem-readerSkill
- math-reviewSkill
- math-tableSkill
- math-templatesSkill
- math-verifierSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 13 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Run the final submission checklist before calling the paper complete.
- Distinctive: line 27
If the official rule says no table of contents, do not insert one.
- Very specific: line 29
Read references/final-checklist.md for final inspection order and references/latex-patterns.md for repair snippets.
- Distinctive: line 34
Keep section titles short and parallel.
- Very specific: line 36
Do not insert gratuitous \newpage or \clearpage between body sections.
- Distinctive: line 37
Avoid manual spacing hacks.
- Distinctive: line 38
Do not force a decorative heading style, section numbering style, or page break pattern unless the official template or user requires it.
- Very specific: line 57
Avoid final paper image paths like 1.png, 2.png, or hash names.
- Distinctive: line 63
Put units in headers, axes, and colorbars.
- Distinctive: line 64
Do not let figures appear before their first meaningful mention unless the template requires it.
- Very specific: line 65
If figure_evidence.csv exists, every main-body figure should map to a row with validation_status=paper_ready.
- Very specific: line 70
Use align/aligned for multi-line derivations.
- Distinctive: line 72
Avoid oversized inline formulas that damage line spacing.
- Very specific: line 76
Prefer booktabs and no vertical rules.
- Distinctive: line 77
Put units in column headers.
- Very specific: line 78
Use longtable for tables likely to cross pages.
- Very specific: line 79
Do not use resizebox to hide an unreadable table.
- Distinctive: line 83
Before final layout, actively check these contest pain points in the rendered PDF, not only in source:
- Very specific: line 90
Use references/latex-patterns.md for snippets.
- Very specific: line 94
When final-format readiness is requested, produce or update a compact compliance_report rather than only saying the outline looks right.
- Very specific: line 104
If the official format source is unknown, compliance_report must say official rules unknown -> blocked.
- Distinctive: line 108
Use a contact sheet or page screenshots when available.
- Distinctive: line 121
When using this skill, report:
- Distinctive: line 131
Stop and repair before finalizing when:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
竞赛 LaTeX 排版
用途
Format mathematical modeling papers for submission. Prefer compliance, readability, and evidence visibility over decorative restyling.
核心规则:评委读到的是 PDF。必须编译并检查渲染后的页面,而不是只看源代码。
国一候选门槛:排版必须让题目贴合、建模洞察、证据可信、可复现、边界清楚被评委快速看到;这是提交质量门槛,不承诺获奖。版面修饰不能替代证据链,任何影响可读性、匿名性、页数或表图可核验性的布局都要阻塞最终状态。
硬门禁:官方模板和提交规则高于本地审美偏好。规则未知时,最终排版状态必须阻塞。
核心流程
- Inspect official template and contest rules before changing structure.
- Preserve
documentclass, margins, headers, numbering, and required sections unless the user asks otherwise. - Fix structure, references, equations, tables, and figures before cosmetic style.
- Compile early and often.
- Inspect rendered PDF pages for whitespace, crowding, unreadable figures, float order, and anonymity.
- Run the final submission checklist before calling the paper complete.
If the official rule says no table of contents, do not insert one. If the rule is unknown, leave structure conservative and mark final submission blocked.
Read references/final-checklist.md for final inspection order and references/latex-patterns.md for repair snippets.
结构规则
- Each subproblem should close the loop: model, solve, result, validation, conclusion.
- Keep section titles short and parallel.
- Move derivations, raw diagnostics, solver traces, and large ledgers to appendix when allowed.
- Do not insert gratuitous
\newpageor\clearpagebetween body sections. - Avoid manual spacing hacks. Use them only as the smallest repair after structural fixes.
- Do not force a decorative heading style, section numbering style, or page break pattern unless the official template or user requires it.
图表密度门禁
For every figure/table in the main body, ask:
- What claim does it prove?
- Is that claim already better shown by a table or a smaller figure?
- Can a reader understand it at 100 percent PDF zoom?
- Does it need to be in the main body, or is appendix better?
- Is there a nearby conclusion sentence and boundary/risk sentence?
Default figure sizing:
- single main-body evidence figure: usually
0.78\textwidthto0.86\textwidth; - full-width only for a mechanism diagram, Pareto/frontier plot, or dense figure that carries a central claim;
- two-panel figures: only when the two panels answer the same claim;
- 2x2 figures: use only when every panel remains readable and the combined figure has one clear takeaway.
Avoid final paper image paths like 1.png, 2.png, or hash names. Prefer semantic filenames.
标题与证据规则
- Captions should name object, scenario, metric, and what to notice.
- Mention each figure/table before or near where it appears.
- Put units in headers, axes, and colorbars.
- Do not let figures appear before their first meaningful mention unless the template requires it.
- If
figure_evidence.csvexists, every main-body figure should map to a row withvalidation_status=paper_ready.
公式与记号规则
- Number display equations only when referenced or important.
- Use
align/alignedfor multi-line derivations. - Define symbols near first use and keep notation table consistent.
- Avoid oversized inline formulas that damage line spacing.
表格
- Prefer
booktabsand no vertical rules. - Put units in column headers.
- Use
longtablefor tables likely to cross pages. - Do not use
resizeboxto hide an unreadable table. Split or redesign the table.
竞赛高频排版修复
Before final layout, actively check these contest pain points in the rendered PDF, not only in source:
- 三线表: use
booktabswith clear headers, units, and aligned numeric columns. Do not useresizeboxas the default repair for a wide table; first shorten headers, split columns by claim, usetabularx/p{}columns, or move secondary diagnostics to appendix. - 多图并列: use subfigures only when panels answer one shared claim. Keep panel labels, axes, legends, and captions readable at normal zoom; split the figure if each panel needs a different conclusion sentence.
- 长公式断行: use
align,aligned,split, or named intermediate variables. Break at relations or operators, not inside semantic units. Avoid shrinking equations as an image or using tiny font to make them fit. - 伪代码: use a stable algorithm environment only when the algorithm is part of the modeling contribution or reproducibility path. Keep it shorter than the surrounding explanation and make inputs, outputs, stopping rule, and complexity or iteration limit visible.
Use references/latex-patterns.md for snippets. Any repair must preserve official template structure, page limits, labels, references, and evidence visibility.
合规报告门禁
When final-format readiness is requested, produce or update a compact compliance_report rather than only saying the outline looks right. At minimum it should record:
- cover/title-page requirements checked against the active official template;
- Chinese and English abstract presence, active word/page limits, and keyword count;
- required section order and whether every subproblem has a result/validation/conclusion loop;
- equation numbering continuity and whether referenced equations exist;
- figure/table numbering, captions, first mentions, units, and source/evidence rows;
- reference style consistency and whether every citation resolves;
- page limit, anonymity, PDF metadata, compile command, and rendered-page inspection status.
If the official format source is unknown, compliance_report must say official rules unknown -> blocked; do not infer from an older contest template.
最终 PDF 视觉检查
Use a contact sheet or page screenshots when available. Check:
- pages with a figure taking most of the page;
- large blank gaps caused by floats or forced breaks;
- pages with too many dense figures;
- captions separated from figures;
- unreadable labels, legends, or colorbars;
- stale template residue in appendices or separate AI-use statement files.
Final claims are blocked if PDF inspection has not been performed after the last layout-affecting edit.
输出预期
When using this skill, report:
- binding template constraints;
- files changed;
- compile command and result;
- layout issues fixed;
- unresolved compile, float, page-limit, anonymity, or evidence risks.
红线
Stop and repair before finalizing when:
- the PDF does not compile from a clean command;
- page limits, table-of-contents rules, anonymity, or appendix rules are unknown;
- figures/tables are unreadable at normal zoom;
- captions, references, or figure order make a claim hard to verify;
- appendix code/support files mentioned in the paper are missing or stale;
- separate AI-use statement files or support materials contain old-template residue.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

