Skip to content
Skills Library
Science & research · Writing

mathmodel-paper

/mathmodel-paper

数学建模论文写作与排版技能:论文写作规范(结构、摘要五段式、模型建立与求解、公式、模型评价、附录、正文语言表述)+ LaTeX 骨架与页面设置、匿名红线 + pandoc 转 Word 与 python-docx 版式微调 + 参考文献著录与查证(GB/T 7714)。当用户要写论文、要论文模板或骨架、写摘要、按竞赛口径排版、生成或微调 Word 论文、处理参考文献时触发。赛题分析、算法选择与代码实现改用 mathmodel-core / mathmodel-methods;去 AI 与零宽字符清理改用 mathmodel-deai;结构自检与评分改用 mathmodel-score;数据图表与示意图改用 mathmodel-figure / mathmodel-diagram。

Licence
Apache-2.0
Last repository change
18.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
8
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.09.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: code/word_postprocess.py

What it does and when to use it

数学建模论文写作与排版技能:论文写作规范(结构、摘要五段式、模型建立与求解、公式、模型评价、附录、正文语言表述)+ LaTeX 骨架与页面设置、匿名红线 + pandoc 转 Word 与 python-docx 版式微调 + 参考文献著录与查证(GB/T 7714)。当用户要写论文、要论文模板或骨架、写摘要、按竞赛口径排版、生成或微调 Word 论文、处理参考文献时触发。赛题分析、算法选择与代码实现改用 mathmodel-core / mathmodel-methods;去 AI 与零宽字符清理改用 mathmodel-deai;结构自检与评分改用 mathmodel-score;数据图表与示意图改用 mathmodel-figure / mathmodel-diagram。

Original author description

数学建模论文写作与排版技能:论文写作规范(结构、摘要五段式、模型建立与求解、公式、模型评价、附录、正文语言表述)+ LaTeX 骨架与页面设置、匿名红线 + pandoc 转 Word 与 python-docx 版式微调 + 参考文献著录与查证(GB/T 7714)。当用户要写论文、要论文模板或骨架、写摘要、按竞赛口径排版、生成或微调 Word 论文、处理参考文献时触发。赛题分析、算法选择与代码实现改用 mathmodel-core / mathmodel-methods;去 AI 与零宽字符清理改用 mathmodel-deai;结构自检与评分改用 mathmodel-score;数据图表与示意图改用 mathmodel-figure / mathmodel-diagram。

How it works

  1. 定位
  2. 文档地图
  3. 快速流程
  4. 交付前红线(一票否决)
  5. 目录结构
Original SKILL.md headings · 101 lines, 323 words
SKILL.md preview
---
name: mathmodel-paper
description: 数学建模论文写作与排版技能:论文写作规范(结构、摘要五段式、模型建立与求解、公式、模型评价、附录、正文语言表述)+ LaTeX 骨架与页面设置、匿名红线 + pandoc 转 Word 与 python-docx 版式微调 + 参考文献著录与查证(GB/T 7714)。当用户要写论文、要论文模板或骨架、写摘要、按竞赛口径排版、生成或微调 Word 论文、处理参考文献时触发。赛题分析、算法选择与代码实现改用 mathmodel-core / mathmodel-methods;去 AI 与零宽字符清理改用 mathmodel-deai;结构自检与评分改用 mathmodel-score;数据图表与示意图改用 mathmodel-figure / mathmodel-diagram。
allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob
---

# 数学建模论文写作与排版(mathmodel-paper)

本技能是论文域的唯一入口,覆盖**内容规范**(写什么)与**排版输出**(怎么排、怎么转)。
写作、排版与参考文献条文以本技能 `docs/` 为唯一权威。

## 定位

- **管**:论文写作规范、摘要写法、模型建立与求解表述、公式与附录规范、正文语言表述;
  LaTeX 骨架与页面设置、匿名红线、pandoc 转 Word、python-docx 版式微调;参考文献著录与查证。
- **不管**:赛题分析、算法选择与代码实现(`mathmodel-core` / `mathmodel-methods`);去 AI 化与零宽字符清理
  (`mathmodel-deai`);结构自检与百分制评分(`mathmodel-score`);数据图表与示意图
  (`mathmodel-figure` / `mathmodel-diagram`)。
- 正文语言表述与去 AI 口径以 `mathmodel-deai` 为准;与 `mathmodel-score` 的章节结构契约冲突时以对方为准。

## 文档地图

| 你要做什么 | 看哪份 |
|---|---|
| 论文结构、摘要五段式、模型建立与求解、公式、评价、附录、语言表述 | [`docs/writing-rules.md`](docs/writing-rules.md) |
| 页面设置、排版强制规范、匿名红线、LaTeX 骨架说明、Word 后处理 | [`docs/typesetting-rules.md`](docs/typesetting-rules.md) |
| 参考文献格式、数量建议、引用查证流程 | [`docs/references.md`](docs/references.md) |
| 摘要写作模板 | [`templates/abstract-template.md`](templates/abstract-template.md) |
| LaTeX 骨架 | [`templates/paper.tex`](templates/paper.tex) |
| 章节结构自检与评分 | [`mathmodel-score`](../mathmodel-score/SKILL.md) |
| 去 AI 化与零宽字符清理规范 | [`deai-rules.md`](../mathmodel-deai/docs/deai-rules.md) |

## 快速流程

1. 复制 `templates/paper.tex` 到工作区 `paper/paper.tex`,按注释占位处填写题目、摘要、章节、参考文献;图片用相对路径 `../figures/final/xxx.png`。摘要写法见 `templates/abstract-template.md`。填写完成后先清源文件(降 AI 技能 `mathmodel-deai`,从源头杜绝零宽/不可见字符进入产物):

   ```bash
   python3 ../mathmodel-deai/code/strip_invisible.py --clean paper/paper.tex
   ```

2. 编译 PDF(**两遍**,交叉引用与编号才稳定):

   ```bash
   cd paper
   xelatex -interaction=nonstopmode paper.tex
   xelatex -interaction=nonstopmode paper.tex
   ```

3. 转 Word(pandoc 自动把公式转为 OMML 原生数学格式):

   ```bash
   pandoc paper.tex -o paper.docx
   ```

4. 版式微调(原地覆盖写回;只做样式,不重建内容):

   ```bash
   python3 code/word_postprocess.py paper/paper.docx   # 省略参数时默认 paper/paper.docx
   ```

   ⚠️ 该脚本**仅用于 pandoc 转换后的版式微调**(页眉留空、页码页脚、中文字体、三线表核对),
   **禁止 `add_paragraph`/`add_table`/`add_page_break` 新增或重建内容,禁止手工插入公式**,
   否则 Word 中会丢失全部数学公式或在文档后追加重复全文。

5. 降 AI 门禁(**强制交付门禁**):词表级查模板腔/套话、结构级查句式与段落节奏、字符级清零宽/不可见 Unicode,均由降 AI 技能 `mathmodel-deai` 负责(规范见其 `docs/deai-rules.md`,字符集移植自 watermarks-remover 的 Layer A):

   ```bash
   python3 ../mathmodel-deai/code/check_phrasing.py paper/paper.tex           # 词表级:命中即改写(退出码 0 才算过)
   python3 ../mathmodel-deai/code/check_style.py paper/paper.tex              # 结构级:句长/句式/段落节奏/小数位
   python3 ../mathmodel-deai/code/strip_invisible.py --clean paper/paper.pdf paper/paper.docx   # 就地清理(留 .bak)
   python3 ../mathmodel-deai/code/strip_invisible.py paper/paper.pdf paper/paper.docx           # 复检,必须退出码 0
   ```

   PDF 模式需要 PyMuPDF(`pip install pymupdf`);tex/docx 模式仅用标准库。清理后复检仍报 `CLEANED-RESIDUAL` 时不得交付,回查 tex 源与转换链。

6. 核对 PDF 与 Word 一致性(`mathmodel-score/docs/self-check.md` 的「PDF 与 Word 格式一致性检查」):题目三号黑体居中、摘要标签四号黑体、正文小四宋体 1 倍行距首行缩进 2 字符、一级标题四号黑体居中、三线表无竖线、图题在下表题在上、页码位置一致、图表编号与数值一一对应。

已知限制:pandoc 对 ctex/xelatex 专用宏包解析有限,转换前需用 pandoc 支持的等价写法或轻量预处理(如临时替换 ctex 为 CJK 包),转换后必须核对并修正中文字体/字号与三线表。

## 交付前红线(一票否决)

完整清单与依据见 [`docs/typesetting-rules.md`](docs/typesetting-rules.md);交付前至少确认:

- [ ] 摘要页、正文、附录任何位置**无**参赛者姓名、学校、赛区、队号、指导教师等身份信息(含图片水印/文件名)
- [ ] **全文无页眉**,页脚仅居中页码,页码从摘要页(第 1 页)起连续编号
- [ ] 摘要页:题目 + 摘要 + 关键词同页,摘要 800–1000 字,关键词后 `\newpage`
- [ ] Word 版式与 PDF 一致,且同样满足以上各条
- [ ] 参考文献逐条在线核实、无编造

## 目录结构

```
mathmodel-paper/
├── SKILL.md                    # 本文件:定位 + 文档地图 + 快速流程 + 交付红线
├── README.md                   # 目录组织说明
├── code/
│   └── word_postprocess.py     # pandoc 转换后的 Word 版式微调脚本(可执行,argparse 接收 docx 路径)
├── docs/
│   ├── writing-rules.md        # 论文写作规范(唯一权威)
│   ├── typesetting-rules.md    # 排版规范(唯一权威,含 Word 后处理)
│   └── references.md           # 参考文献规范(唯一权威)
└── templates/
    ├── paper.tex               # LaTeX 论文骨架(可复制填写,含全部规范注释)
    └── abstract-template.md    # 摘要写作模板 + 关键要求 + 摘要页分页规则
```
Files in this package (8)
  • README.md 4 KB
  • SKILL.md 7 KB
  • code/word_postprocess.py 7 KB
  • docs/references.md 1 KB
  • docs/typesetting-rules.md 11 KB
  • docs/writing-rules.md 27 KB
  • templates/abstract-template.md 5 KB
  • templates/paper.tex 6 KB

Versions

The database has no other skills named mathmodel-paper.

Database snapshot: 13.11.2026 · package version 50e13e96f65e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90mathmodel-methods
    数学建模方法库与选型技能:按问题族(评价/排序、优化、预测、分类聚类、微分方程、仿真、信号处理、前沿创新)给出候选算法、适用边界、实现入口与验证方式,覆盖基础数值、经典优化、图论网络、群体智能、机器学习、统计与数据挖掘、综合评价、物理工程建模与前沿方法,并附候选对比表模板、问题递进关系与常用库速查。当用户问"这题用什么算法""推荐建模方法""算法选型对比""某类问题怎么建模求解"时使用;论文写作、排版、出图、去 AI 与评分分别改用 mathmodel-paper / mathmodel-figure / mathmodel-diagram /…
  • 100mathmodel-score
    论文评分与质量自检模块:按百分制五维(摘要 30 / 算法模型 20 / 创新性 20 / 写作 15 / 排版 15)对论文打分,交付前逐项自检并给出扣分明细、优化轮次与达标判定。用 score_card.py 把评分卡 JSON 校验并渲染成评分表(达标线 85,一票否决直接淘汰,熔断 3 轮)。当用户要求给论文打分、自检、生成评分表、评估能否交付、判断 AI/合规风险时触发。建模与写作规范以主技能 mathmodel-core 为准,版式与去 AI 分别见 mathmodel-paper / mathmodel-deai。
  • 90MathModel Skill Standard
    数学建模全流程技能包:赛题与附件预检、题意与模型路线、数据与图表计划、真实运行建模代码、证据门禁、分章节正式写作与 Word/PDF 渲染检查,产出可复现的竞赛论文和全套证据。当用户要做完整篇数学建模竞赛论文时使用。
  • 95my-mathmodel-agent
    Evidence-driven mathematical modeling contest workflow for CUMCM, MCM/ICM, HiMCM, Huawei Cup, and similar events. Use it to decompose a problem, choose and validate model routes, run reproducible Python/AMPL experiments, freeze results, write LaTeX or Typst papers, render them,…
  • 100my-mathmodel-agent
    Evidence-driven mathematical modeling contest workflow for Claude Code: decompose a problem, select baseline/primary/fallback model routes, validate PoCs, run reproducible Python/AMPL experiments, freeze results, write LaTeX or Typst papers, render, and audit every claim. Use…
  • 100mathmodel-skill
    CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling, solving, robustness, writing, compliance, and final submission review. Provides…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.