Math Latex logo

Math Latex

Community
capwitf
math-latex

Use when 高教社杯/CUMCM 数学建模论文需要 LaTeX 排版、模板保持、中英文摘要、公式、表格、图、参考文献、匿名性、页数、浮动体或最终 PDF 质量检查。

Overview

Publishercapwitf
RepositoryMy-MathModeling-skills
Skill namemath-latex
Stars
57
Forks
1
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by capwitf on GitHub. Read the source before you install it.

Installation

Install the Math Latex AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/capwitf/My-MathModeling-skills/tree/main/math-latex
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/capwitf/My-MathModeling-skills.git /tmp/My-MathModeling-skills
mkdir -p .claude/skills
cp -r /tmp/My-MathModeling-skills/math-latex .claude/skills/math-latex
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Math Latex in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Math Latex on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Math Latex is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

竞赛 LaTeX 排版

用途

Format mathematical modeling papers for submission. Prefer compliance, readability, and evidence visibility over decorative restyling.

核心规则:评委读到的是 PDF。必须编译并检查渲染后的页面,而不是只看源代码。

国一候选门槛:排版必须让题目贴合、建模洞察、证据可信、可复现、边界清楚被评委快速看到;这是提交质量门槛,不承诺获奖。版面修饰不能替代证据链,任何影响可读性、匿名性、页数或表图可核验性的布局都要阻塞最终状态。

硬门禁:官方模板和提交规则高于本地审美偏好。规则未知时,最终排版状态必须阻塞。

核心流程

  1. Inspect official template and contest rules before changing structure.
  2. Preserve documentclass, margins, headers, numbering, and required sections unless the user asks otherwise.
  3. Fix structure, references, equations, tables, and figures before cosmetic style.
  4. Compile early and often.
  5. Inspect rendered PDF pages for whitespace, crowding, unreadable figures, float order, and anonymity.
  6. 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 \newpage or \clearpage between 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\textwidth to 0.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.csv exists, every main-body figure should map to a row with validation_status=paper_ready.

公式与记号规则

  • Number display equations only when referenced or important.
  • Use align/aligned for multi-line derivations.
  • Define symbols near first use and keep notation table consistent.
  • Avoid oversized inline formulas that damage line spacing.

表格

  • Prefer booktabs and no vertical rules.
  • Put units in column headers.
  • Use longtable for tables likely to cross pages.
  • Do not use resizebox to 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 booktabs with clear headers, units, and aligned numeric columns. Do not use resizebox as the default repair for a wide table; first shorten headers, split columns by claim, use tabularx/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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Math Latex AI skill do?

Use when 高教社杯/CUMCM 数学建模论文需要 LaTeX 排版、模板保持、中英文摘要、公式、表格、图、参考文献、匿名性、页数、浮动体或最终 PDF 质量检查。

Why use Math Latex on TypingMind?

Because you install it once and use it with any model. Math Latex is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Math Latex in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/capwitf/My-MathModeling-skills/tree/main/math-latex. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Math Latex?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Math Latex?

As many as you like. As long as a model supports skills, you can use Math Latex with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Math Latex AI skill free?

Yes. It is published on GitHub by capwitf under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇