[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVNSFSYYAJ9GAYZQ4334MA":3,"skill-same:01M7EVNSFSYYAJ9GAYZQ4334MA":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7EVNSFSYYAJ9GAYZQ4334MA","5writing",null,"数学建模竞赛论文撰写阶段，支持 Typst 和 LaTeX 双引擎。根据 ANALYSIS_MODELING_REPORT.md、RESULTS_REPORT.md 和 figures\u002F*.pdf 选择比赛模板、排版引擎、组织章节，并在论文正文中按章节直接插入图表。","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002F5writing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: 5writing\ndescription: \"数学建模竞赛论文撰写阶段，支持 Typst 和 LaTeX 双引擎。根据 ANALYSIS_MODELING_REPORT.md、RESULTS_REPORT.md 和 figures\u002F*.pdf 选择比赛模板、排版引擎、组织章节，并在论文正文中按章节直接插入图表。\"\nallowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch\n---\n\n# 竞赛论文撰写（Typst \u002F LaTeX）\n\n本 skill 承接 `3coding-visual` 和 `4drawio`。前序阶段只提供真实数据、图表 PDF 和记录文件；本阶段负责选择比赛模板和排版引擎、组织论文结构，并决定每张图表放入哪个章节。\n\n**Typst 引擎**下可调用 typst-author skill 学习 typst 写法；**LaTeX 引擎**参考本文件末尾的\"LaTeX 写作要点\"小节。\n\n## 数学建模规范参考\n\n如需领域判断，读取 `..\u002F_references\u002Fmath_modeling_norms.md` 中的“论文写作”“图表与可视化”和“非数据图工具选择”小节。该文件只作为规范知识库，论文结构仍按比赛模板和当前赛题内容决定。\n\n## 模板族\n\n本技能内捆绑的模板位于：\n\n```text\ntemplates\u002Fzh\u002F\u003C竞赛>\u002Fmain.typ         # Typst 模板\ntemplates\u002Fzh\u002F\u003C竞赛>-latex\u002Fmain.tex   # LaTeX 模板\ntemplates\u002Fen\u002F\u003C竞赛>\u002Fmain.typ         # Typst 模板\ntemplates\u002Fen\u002F\u003C竞赛>-latex\u002Fmain.tex   # LaTeX 模板\n```\n\n**LaTeX 模板覆盖范围**：所有中文模板和英文模板均已提供 LaTeX 版本（`-latex` 后缀），使用 xelatex 编译。\n\n支持的中文模板（Typst + LaTeX 双版本）：\n\n```text\napmcm, changsanjiao, cumcm, default, diangongbei, dongsansheng,\nhuashubei, huaweibei, huazhongbei, mathorcup, mcm, shuweibei, stats, wuyibei\n```\n\n华为杯、华中杯、五一杯统一使用 `huaweibei`、`huazhongbei`、`wuyibei` 作为模板。\n\n支持的英文模板（Typst + LaTeX 双版本）：\n\n```text\napmcm, default, mcm\n```\n\n论文中的所有数值图表结论必须来自 `reports\u002FRESULTS_REPORT.md` 或 `figures\u002F*`。不得编造、估算或使用不同的四舍五入方式。\n\n\n## 工作流\n\n### 步骤 0：确定排版引擎\n\n**撰写论文前必须让用户选择排版引擎。** 引擎决定后续所有步骤（模板路径、章节文件扩展名、图片插入语法、编译命令），选错会导致整篇论文格式错误。\n\n使用 AskUserQuestion 工具向用户询问：\"撰写论文使用哪种排版引擎？\"\n\n- 选项 1：LaTeX（xelatex 编译，数学建模竞赛主流，模板已全部就绪）— 推荐选项放第一位\n- 选项 2：Typst（typst 编译，调用 typst-author skill 辅助写作）\n\n询问前先读取 `plan.md` 的\"用户偏好 → 排版引擎\"字段作为预选项：\n- 若 plan.md 已记录引擎选择，向用户确认：\"检测到之前选择的引擎是 \u003CLaTeX\u002FTypst>，是否沿用？\"\n- 若 plan.md 不存在或未记录引擎选择，直接询问用户选择。\n- 若用户未明确指定或跳过，**默认使用 LaTeX**。\n\n根据确定的引擎选择对应模板族：\n\n- **Typst 引擎**：使用 `templates\u002F\u003Clang>\u002F\u003C竞赛>\u002Fmain.typ`，调用 typst-author skill。编译命令 `typst compile main.typ`。\n- **LaTeX 引擎**：使用 `templates\u002F\u003Clang>\u002F\u003C竞赛>-latex\u002Fmain.tex`，xelatex 编译（中文和英文均需跑两遍解决交叉引用）。编译命令 `xelatex -interaction=nonstopmode main.tex`（执行两次）。\n\n**后续步骤中的所有代码示例、文件扩展名、图片插入语法都必须按所选引擎选择对应版本，不要混用。**\n\n### 步骤 1：选择语言和模板\n\n\n除非用户明确要求中文，否则 MCM\u002FICM\u002FCOMAP 一律使用英文。所有中文竞赛名称使用中文。\n\n模板键示例（Typst 引擎）：\n\n```text\n长三角 -> zh\u002Fchangsanjiao\nAPMCM 英文版 -> en\u002Fapmcm\n全国赛\u002F国赛\u002FCUMCM -> zh\u002Fcumcm\n统计建模 -> zh\u002Fstats\nMCM\u002FICM\u002FCOMAP -> en\u002Fmcm\n```\n\n模板键示例（LaTeX 引擎）：\n\n```text\n全国赛\u002F国赛\u002FCUMCM -> zh\u002Fcumcm-latex\nMCM\u002FICM\u002FCOMAP -> en\u002Fmcm-latex\n```\n\n### 步骤 2：准备模板\n\n用以下命令检查捆绑模板是否可访问（`SKILL_DIR` 为本 skill 所在目录）：\n\n**Typst 模板**：\n\n```bash\nls \"$SKILL_DIR\u002Ftemplates\u002Fzh\u002F\u003C竞赛>\u002Fmain.typ\" 2>\u002Fdev\u002Fnull && echo \"OK\" || echo \"MISSING\"\n```\n\n- **文件存在（OK）**：直接将 `templates\u002Fzh\u002F\u003C竞赛>\u002F` 整目录复制到 `paper\u002F`。这些模板是自包含入口文件，不依赖额外共享样式文件。\n- **文件不存在（MISSING）**：说明 skill 未完整安装或在沙箱中，此时依照本 SKILL.md 步骤 3 列出的对应节文件结构，从零重建最小可编译 Typst 框架，并在 `paper\u002F` 内注明\"重建自 default 结构\"。\n\n存在匹配模板时，绝不从零开始写论文。\n\n**LaTeX 模板**：\n\n```bash\nls \"$SKILL_DIR\u002Ftemplates\u002Fzh\u002F\u003C竞赛>-latex\u002Fmain.tex\" 2>\u002Fdev\u002Fnull && echo \"OK\" || echo \"MISSING\"\n```\n\n- **文件存在（OK）**：将 `templates\u002Fzh\u002F\u003C竞赛>-latex\u002F` 整目录复制到 `paper\u002F`。\n- **文件不存在（MISSING）**：说明 skill 未完整安装或在沙箱中，此时依照本 SKILL.md 步骤 3 列出的对应节文件结构，从零重建最小可编译 LaTeX 框架，并在 `paper\u002F` 内注明\"重建自 default-latex 结构\"。\n\n\n### 步骤 3：构建图表规划\n\n在写正文各节之前，根据 `figures\u002F*.pdf`、`reports\u002FRESULTS_REPORT.md`，以及 `reports\u002FDRAWIO_REPORT.md`（如果存在）构建图表规划：\n\n```text\n图表规划\nfig_roadmap.pdf -> 引言\u002F问题重述\nfig_flow_q1.pdf -> 问题一模型构建\nfig_flow_q2.pdf -> 问题二模型构建\nfig_pipeline.pdf -> 数据预处理\u002F方法节\n结果图 -> 对应的结果节\n```\n\n图片路径相对于写入该图片的文件：写在 `paper\u002Fmain.typ` 或 `paper\u002Fmain.tex` 中通常用 `..\u002Ffigures\u002Fxxx.pdf`，写在 `paper\u002Fsections\u002F*.typ` 或 `paper\u002Fsections\u002F*.tex` 中通常用 `..\u002F..\u002Ffigures\u002Fxxx.pdf`。\n\n**Typst 引擎**图片插入：\n\n```typst\n#figure(\n  image(\"..\u002F..\u002Ffigures\u002Ffig_q1_error_dist.pdf\", width: 85%),\n  caption: [问题一预测误差分布],\n)\n```\n\n**LaTeX 引擎**图片插入：\n\n```latex\n\\begin{figure}[H]\n  \\centering\n  \\includegraphics[width=0.85\\textwidth]{..\u002F..\u002Ffigures\u002Ffig_q1_error_dist.pdf}\n  \\caption{问题一预测误差分布}\n  \\label{fig:q1_error}\n\\end{figure}\n```\n\n英文论文使用英文图注。\n\n### 步骤 4：撰写各节\n\n**以下章节文件名按所选引擎使用 `.typ`（Typst）或 `.tex`（LaTeX）扩展名。** 例如 Typst 引擎用 `1_restatement.typ`，LaTeX 引擎用 `1_restatement.tex`。文件名主体保持一致。\n\n中文数学建模通用模板各节文件（`changsanjiao`、`diangongbei`、`huashubei`、`mathorcup`、`wuyibei`）：\n\n```text\n1_restatement.typ  - 问题重述与分析\n2_analysis.typ     - 数据理解与总体思路\n3_assumptions.typ  - 模型假设\n4_symbols.typ      - 符号说明\n5_problem1.typ     - 问题一建模与求解\n6_problem2.typ     - 问题二建模与求解\n7_problem3.typ     - 问题三建模与求解\n...         - 根据题目调整问题数量  \n8_evaluation.typ   - 灵敏度分析、模型评价与推广\nA_code.typ         - 附录代码\n```\n\n国赛\u002F华中杯\u002F华为杯（`cumcm`、`huazhongbei`、`huaweibei`）按以下章节结构：\n\n```text\n1_restatement.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...        - 根据题目调整问题数量\n8_sensitivity.typ\n9_evaluation.typ\nA_code.typ\n```\n\n东三省模板（`dongsansheng`）额外使用单独摘要文件：\n\n```text\nabstract.typ\n1_restatement.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...       - 根据题目调整问题数量\n8_evaluation.typ\nA_code.typ\n```\n\n数维杯模板（`shuweibei`）保留原 LaTeX 的示例入口命名：\n\n```text\nAbstract.typ\nIntroduction.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...      - 根据题目调整问题数量\n8_evaluation.typ\nAppendices1.typ\nA_code.typ\n```\n\n中文默认模板（`default`）：\n\n```text\n1_restatement.typ\n2_assumptions.typ\n3_symbols.typ\n4_problem1.typ\n5_problem2.typ\n6_problem3.typ\n...      - 根据题目调整问题数量\n7_sensitivity.typ\n8_evaluation.typ\nA_code.typ\n```\n\n中文统计建模各节文件：\n\n```text\n1_introduction.typ\n2_method.typ\n3_data.typ\n4_analysis.typ\n5_results.typ\n6_conclusion.typ\nA_code.typ\n```\n\n英文 MCM\u002FAPMCM 各节文件（`en\u002Fmcm`、`en\u002Fapmcm`、`zh\u002Fmcm`、`zh\u002Fapmcm`）：\n\n```text\n1_introduction.typ\n2_assumptions.typ\n3_model_design.typ\n4_solution.typ\n5_sensitivity.typ\n6_strengths_weaknesses.typ\n7_conclusions.typ\nA_code.typ\n```\n\n**LaTeX 模板章节文件**（对应 `-latex` 后缀模板，结构与 Typst 版本一一对应）：\n\n国赛 LaTeX 模板（`zh\u002Fcumcm-latex`，对应 `cumcm` Typst 版本）：\n\n```text\n1_restatement.tex\n2_analysis.tex\n3_assumptions.tex\n4_symbols.tex\n5_problem1.tex\n6_problem2.tex\n7_problem3.tex\n8_sensitivity.tex\n9_evaluation.tex\nA_code.tex\n```\n\nMCM\u002FICM LaTeX 模板（`en\u002Fmcm-latex`）：\n\n```text\n1_introduction.tex\n2_assumptions.tex\n3_model_design.tex\n4_solution.tex\n5_sensitivity.tex\n6_strengths_weaknesses.tex\n7_conclusions.tex\nA_code.tex\n```\n\n其余 LaTeX 模板（`changsanjiao-latex`、`default-latex`、`huashubei-latex`、`mathorcup-latex`、`wuyibei-latex`、`huazhongbei-latex`、`huaweibei-latex`、`diangongbei-latex`、`dongsansheng-latex`、`shuweibei-latex`、`stats-latex`、`apmcm-latex`、`mcm-latex`、`en\u002Fapmcm-latex`、`en\u002Fdefault-latex`）的章节文件命名与上述结构类似，以 `main.tex` 中 `\\input{}` 引用的文件名为准。\n\n英文默认模板（`en\u002Fdefault`）：\n\n```text\n1_introduction.typ\n2_assumptions.typ\n3_notations.typ\n4_model.typ\n5_sensitivity.typ\n6_evaluation.typ\n7_conclusions.typ\nA_code.typ\n```\n\n**正文写作应使用连贯的学术段落。避免在最终论文中出现工作流内部名称，如 `reports\u002F`、`figures\u002F` 或 `CLAUDE.md`。**\n\n### 步骤 5：参考文献\n\n只使用真实存在的参考文献。文件名按引擎选择：Typst 用 `paper\u002Freferences.typ`，LaTeX 用 `paper\u002Freferences.tex`。\n\n**Typst 引擎**：\n\n```typst\n#set enum(numbering: \"[1]\")\n#enum[\n  作者. 题名[J]. 期刊名, 年份, 卷(期): 页码.\n  Author. \"Title.\" Journal or Conference, year.\n]\n```\n\n正文上标引用：`相关研究已用于物流网络优化#super(\"[1]\")。`\n\n**LaTeX 引擎**：\n\n```latex\n\\begin{thebibliography}{99}\n  \\bibitem{ref1} 作者. 题名[J]. 期刊名, 年份, 卷(期): 页码.\n  \\bibitem{ref2} Author. \"Title.\" Journal, year.\n\\end{thebibliography}\n```\n\n正文引用用 `\\cite{ref1}` 或 `\\cite{ref1,ref2}`。\n\n### 步骤 6：最后撰写摘要或总结\n\n在所有章节完成后撰写中文摘要或英文 Summary Sheet。必须包含每个子问题的方法和精确的数值结果。\n\n## LaTeX 写作要点\n\n以下要点供 **LaTeX 引擎**使用。Typst 引擎请调用 typst-author skill 获取语法帮助。\n\n### 编译命令\n\n```bash\n# 中文模板（xelatex，跑两遍解决交叉引用）\nxelatex main.tex && xelatex main.tex\n\n# 英文模板（xelatex，同样跑两遍）\nxelatex main.tex && xelatex main.tex\n```\n\n### 文档结构\n\n```latex\n\\documentclass[a4paper,12pt]{article}   % 英文\n\\documentclass[a4paper,12pt]{ctexart}   % 中文\n\n\\usepackage{...}   % 宏包加载\n\\usepackage{graphicx}   % 图片支持\n\\usepackage{booktabs}   % 三线表\n\\usepackage{amsmath,amssymb}   % 数学公式\n\\usepackage{hyperref}   % 交叉引用（需两遍编译）\n```\n\n### 图表插入\n\n```latex\n\\begin{figure}[H]\n  \\centering\n  \\includegraphics[width=0.85\\textwidth]{..\u002F..\u002Ffigures\u002Ffig_q1.pdf}\n  \\caption{图注}\n  \\label{fig:q1}\n\\end{figure}\n\n% 三线表\n\\begin{table}[htbp]\n  \\centering\n  \\caption{表注}\n  \\begin{tabular}{ccc}\n    \\toprule\n    \\textbf{列1} & \\textbf{列2} & \\textbf{列3} \\\\\n    \\midrule\n    数据 & 数据 & 数据 \\\\\n    \\bottomrule\n  \\end{tabular}\n\\end{table}\n```\n\n### 交叉引用\n\n```latex\n如图~\\ref{fig:q1}所示，...   % 图片引用\n式~(\\ref{eq:objective}) 给出...   % 公式引用\n见第~\\pageref{fig:q1} 页   % 页码引用\n```\n\n### 数学公式\n\n```latex\n行内公式：$f(x) = \\sum_{i=1}^n \\theta_i \\phi_i(x)$\n\n行间公式：\n\\begin{equation}\n  \\mathcal{L}(\\theta) = \\frac{1}{N}\\sum_{i=1}^N (y_i - \\hat{y}_i)^2\n  \\label{eq:objective}\n\\end{equation}\n```\n\n### 章节和强调\n\n```latex\n\\section{问题重述}\n\\subsection{问题背景}\n\\textbf{问题一：} xxx   % 对应 Typst 的 #strong\n```\n","# 竞赛论文撰写（Typst \u002F LaTeX）\n\n本 skill 承接 `3coding-visual` 和 `4drawio`。前序阶段只提供真实数据、图表 PDF 和记录文件；本阶段负责选择比赛模板和排版引擎、组织论文结构，并决定每张图表放入哪个章节。\n\n**Typst 引擎**下可调用 typst-author skill 学习 typst 写法；**LaTeX 引擎**参考本文件末尾的\"LaTeX 写作要点\"小节。\n\n## 数学建模规范参考\n\n如需领域判断，读取 `..\u002F_references\u002Fmath_modeling_norms.md` 中的“论文写作”“图表与可视化”和“非数据图工具选择”小节。该文件只作为规范知识库，论文结构仍按比赛模板和当前赛题内容决定。\n\n## 模板族\n\n本技能内捆绑的模板位于：\n\n```text\ntemplates\u002Fzh\u002F\u003C竞赛>\u002Fmain.typ         # Typst 模板\ntemplates\u002Fzh\u002F\u003C竞赛>-latex\u002Fmain.tex   # LaTeX 模板\ntemplates\u002Fen\u002F\u003C竞赛>\u002Fmain.typ         # Typst 模板\ntemplates\u002Fen\u002F\u003C竞赛>-latex\u002Fmain.tex   # LaTeX 模板\n```\n\n**LaTeX 模板覆盖范围**：所有中文模板和英文模板均已提供 LaTeX 版本（`-latex` 后缀），使用 xelatex 编译。\n\n支持的中文模板（Typst + LaTeX 双版本）：\n\n```text\napmcm, changsanjiao, cumcm, default, diangongbei, dongsansheng,\nhuashubei, huaweibei, huazhongbei, mathorcup, mcm, shuweibei, stats, wuyibei\n```\n\n华为杯、华中杯、五一杯统一使用 `huaweibei`、`huazhongbei`、`wuyibei` 作为模板。\n\n支持的英文模板（Typst + LaTeX 双版本）：\n\n```text\napmcm, default, mcm\n```\n\n论文中的所有数值图表结论必须来自 `reports\u002FRESULTS_REPORT.md` 或 `figures\u002F*`。不得编造、估算或使用不同的四舍五入方式。\n\n\n## 工作流\n\n### 步骤 0：确定排版引擎\n\n**撰写论文前必须让用户选择排版引擎。** 引擎决定后续所有步骤（模板路径、章节文件扩展名、图片插入语法、编译命令），选错会导致整篇论文格式错误。\n\n使用 AskUserQuestion 工具向用户询问：\"撰写论文使用哪种排版引擎？\"\n\n- 选项 1：LaTeX（xelatex 编译，数学建模竞赛主流，模板已全部就绪）— 推荐选项放第一位\n- 选项 2：Typst（typst 编译，调用 typst-author skill 辅助写作）\n\n询问前先读取 `plan.md` 的\"用户偏好 → 排版引擎\"字段作为预选项：\n- 若 plan.md 已记录引擎选择，向用户确认：\"检测到之前选择的引擎是 \u003CLaTeX\u002FTypst>，是否沿用？\"\n- 若 plan.md 不存在或未记录引擎选择，直接询问用户选择。\n- 若用户未明确指定或跳过，**默认使用 LaTeX**。\n\n根据确定的引擎选择对应模板族：\n\n- **Typst 引擎**：使用 `templates\u002F\u003Clang>\u002F\u003C竞赛>\u002Fmain.typ`，调用 typst-author skill。编译命令 `typst compile main.typ`。\n- **LaTeX 引擎**：使用 `templates\u002F\u003Clang>\u002F\u003C竞赛>-latex\u002Fmain.tex`，xelatex 编译（中文和英文均需跑两遍解决交叉引用）。编译命令 `xelatex -interaction=nonstopmode main.tex`（执行两次）。\n\n**后续步骤中的所有代码示例、文件扩展名、图片插入语法都必须按所选引擎选择对应版本，不要混用。**\n\n### 步骤 1：选择语言和模板\n\n\n除非用户明确要求中文，否则 MCM\u002FICM\u002FCOMAP 一律使用英文。所有中文竞赛名称使用中文。\n\n模板键示例（Typst 引擎）：\n\n```text\n长三角 -> zh\u002Fchangsanjiao\nAPMCM 英文版 -> en\u002Fapmcm\n全国赛\u002F国赛\u002FCUMCM -> zh\u002Fcumcm\n统计建模 -> zh\u002Fstats\nMCM\u002FICM\u002FCOMAP -> en\u002Fmcm\n```\n\n模板键示例（LaTeX 引擎）：\n\n```text\n全国赛\u002F国赛\u002FCUMCM -> zh\u002Fcumcm-latex\nMCM\u002FICM\u002FCOMAP -> en\u002Fmcm-latex\n```\n\n### 步骤 2：准备模板\n\n用以下命令检查捆绑模板是否可访问（`SKILL_DIR` 为本 skill 所在目录）：\n\n**Typst 模板**：\n\n```bash\nls \"$SKILL_DIR\u002Ftemplates\u002Fzh\u002F\u003C竞赛>\u002Fmain.typ\" 2>\u002Fdev\u002Fnull && echo \"OK\" || echo \"MISSING\"\n```\n\n- **文件存在（OK）**：直接将 `templates\u002Fzh\u002F\u003C竞赛>\u002F` 整目录复制到 `paper\u002F`。这些模板是自包含入口文件，不依赖额外共享样式文件。\n- **文件不存在（MISSING）**：说明 skill 未完整安装或在沙箱中，此时依照本 SKILL.md 步骤 3 列出的对应节文件结构，从零重建最小可编译 Typst 框架，并在 `paper\u002F` 内注明\"重建自 default 结构\"。\n\n存在匹配模板时，绝不从零开始写论文。\n\n**LaTeX 模板**：\n\n```bash\nls \"$SKILL_DIR\u002Ftemplates\u002Fzh\u002F\u003C竞赛>-latex\u002Fmain.tex\" 2>\u002Fdev\u002Fnull && echo \"OK\" || echo \"MISSING\"\n```\n\n- **文件存在（OK）**：将 `templates\u002Fzh\u002F\u003C竞赛>-latex\u002F` 整目录复制到 `paper\u002F`。\n- **文件不存在（MISSING）**：说明 skill 未完整安装或在沙箱中，此时依照本 SKILL.md 步骤 3 列出的对应节文件结构，从零重建最小可编译 LaTeX 框架，并在 `paper\u002F` 内注明\"重建自 default-latex 结构\"。\n\n\n### 步骤 3：构建图表规划\n\n在写正文各节之前，根据 `figures\u002F*.pdf`、`reports\u002FRESULTS_REPORT.md`，以及 `reports\u002FDRAWIO_REPORT.md`（如果存在）构建图表规划：\n\n```text\n图表规划\nfig_roadmap.pdf -> 引言\u002F问题重述\nfig_flow_q1.pdf -> 问题一模型构建\nfig_flow_q2.pdf -> 问题二模型构建\nfig_pipeline.pdf -> 数据预处理\u002F方法节\n结果图 -> 对应的结果节\n```\n\n图片路径相对于写入该图片的文件：写在 `paper\u002Fmain.typ` 或 `paper\u002Fmain.tex` 中通常用 `..\u002Ffigures\u002Fxxx.pdf`，写在 `paper\u002Fsections\u002F*.typ` 或 `paper\u002Fsections\u002F*.tex` 中通常用 `..\u002F..\u002Ffigures\u002Fxxx.pdf`。\n\n**Typst 引擎**图片插入：\n\n```typst\n#figure(\n  image(\"..\u002F..\u002Ffigures\u002Ffig_q1_error_dist.pdf\", width: 85%),\n  caption: [问题一预测误差分布],\n)\n```\n\n**LaTeX 引擎**图片插入：\n\n```latex\n\\begin{figure}[H]\n  \\centering\n  \\includegraphics[width=0.85\\textwidth]{..\u002F..\u002Ffigures\u002Ffig_q1_error_dist.pdf}\n  \\caption{问题一预测误差分布}\n  \\label{fig:q1_error}\n\\end{figure}\n```\n\n英文论文使用英文图注。\n\n### 步骤 4：撰写各节\n\n**以下章节文件名按所选引擎使用 `.typ`（Typst）或 `.tex`（LaTeX）扩展名。** 例如 Typst 引擎用 `1_restatement.typ`，LaTeX 引擎用 `1_restatement.tex`。文件名主体保持一致。\n\n中文数学建模通用模板各节文件（`changsanjiao`、`diangongbei`、`huashubei`、`mathorcup`、`wuyibei`）：\n\n```text\n1_restatement.typ  - 问题重述与分析\n2_analysis.typ     - 数据理解与总体思路\n3_assumptions.typ  - 模型假设\n4_symbols.typ      - 符号说明\n5_problem1.typ     - 问题一建模与求解\n6_problem2.typ     - 问题二建模与求解\n7_problem3.typ     - 问题三建模与求解\n...         - 根据题目调整问题数量  \n8_evaluation.typ   - 灵敏度分析、模型评价与推广\nA_code.typ         - 附录代码\n```\n\n国赛\u002F华中杯\u002F华为杯（`cumcm`、`huazhongbei`、`huaweibei`）按以下章节结构：\n\n```text\n1_restatement.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...        - 根据题目调整问题数量\n8_sensitivity.typ\n9_evaluation.typ\nA_code.typ\n```\n\n东三省模板（`dongsansheng`）额外使用单独摘要文件：\n\n```text\nabstract.typ\n1_restatement.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...       - 根据题目调整问题数量\n8_evaluation.typ\nA_code.typ\n```\n\n数维杯模板（`shuweibei`）保留原 LaTeX 的示例入口命名：\n\n```text\nAbstract.typ\nIntroduction.typ\n2_analysis.typ\n3_assumptions.typ\n4_symbols.typ\n5_problem1.typ\n6_problem2.typ\n7_problem3.typ\n...      - 根据题目调整问题数量\n8_evaluation.typ\nAppendices1.typ\nA_code.typ\n```\n\n中文默认模板（`default`）：\n\n```text\n1_restatement.typ\n2_assumptions.typ\n3_symbols.typ\n4_problem1.typ\n5_problem2.typ\n6_problem3.typ\n...      - 根据题目调整问题数量\n7_sensitivity.typ\n8_evaluation.typ\nA_code.typ\n```\n\n中文统计建模各节文件：\n\n```text\n1_introduction.typ\n2_method.typ\n3_data.typ\n4_analysis.typ\n5_results.typ\n6_conclusion.typ\nA_code.typ\n```\n\n英文 MCM\u002FAPMCM 各节文件（`en\u002Fmcm`、`en\u002Fapmcm`、`zh\u002Fmcm`、`zh\u002Fapmcm`）：\n\n```text\n1_introduction.typ\n2_assumptions.typ\n3_model_design.typ\n4_solution.typ\n5_sensitivity.typ\n6_strengths_weaknesses.typ\n7_conclusions.typ\nA_code.typ\n```\n\n**LaTeX 模板章节文件**（对应 `-latex` 后缀模板，结构与 Typst 版本一一对应）：\n\n国赛 LaTeX 模板（`zh\u002Fcumcm-latex`，对应 `cumcm` Typst 版本）：\n\n```text\n1_restatement.tex\n2_analysis.tex\n3_assumptions.tex\n4_symbols.tex\n5_problem1.tex\n6_problem2.tex\n7_problem3.tex\n8_sensitivity.tex\n9_evaluation.tex\nA_code.tex\n```\n\nMCM\u002FICM LaTeX 模板（`en\u002Fmcm-latex`）：\n\n```text\n1_introduction.tex\n2_assumptions.tex\n3_model_design.tex\n4_solution.tex\n5_sensitivity.tex\n6_strengths_weaknesses.tex\n7_conclusions.tex\nA_code.tex\n```\n\n其余 LaTeX 模板（`changsanjiao-latex`、`default-latex`、`huashubei-latex`、`mathorcup-latex`、`wuyibei-latex`、`huazhongbei-latex`、`huaweibei-latex`、`diangongbei-latex`、`dongsansheng-latex`、`shuweibei-latex`、`stats-latex`、`apmcm-latex`、`mcm-latex`、`en\u002Fapmcm-latex`、`en\u002Fdefault-latex`）的章节文件命名与上述结构类似，以 `main.tex` 中 `\\input{}` 引用的文件名为准。\n\n英文默认模板（`en\u002Fdefault`）：\n\n```text\n1_introduction.typ\n2_assumptions.typ\n3_notations.typ\n4_model.typ\n5_sensitivity.typ\n6_evaluation.typ\n7_conclusions.typ\nA_code.typ\n```\n\n**正文写作应使用连贯的学术段落。避免在最终论文中出现工作流内部名称，如 `reports\u002F`、`figures\u002F` 或 `CLAUDE.md`。**\n\n### 步骤 5：参考文献\n\n只使用真实存在的参考文献。文件名按引擎选择：Typst 用 `paper\u002Freferences.typ`，LaTeX 用 `paper\u002Freferences.tex`。\n\n**Typst 引擎**：\n\n```typst\n#set enum(numbering: \"[1]\")\n#enum[\n  作者. 题名[J]. 期刊名, 年份, 卷(期): 页码.\n  Author. \"Title.\" Journal or Conference, year.\n]\n```\n\n正文上标引用：`相关研究已用于物流网络优化#super(\"[1]\")。`\n\n**LaTeX 引擎**：\n\n```latex\n\\begin{thebibliography}{99}\n  \\bibitem{ref1} 作者. 题名[J]. 期刊名, 年份, 卷(期): 页码.\n  \\bibitem{ref2} Author. \"Title.\" Journal, year.\n\\end{thebibliography}\n```\n\n正文引用用 `\\cite{ref1}` 或 `\\cite{ref1,ref2}`。\n\n### 步骤 6：最后撰写摘要或总结\n\n在所有章节完成后撰写中文摘要或英文 Summary Sheet。必须包含每个子问题的方法和精确的数值结果。\n\n## LaTeX 写作要点\n\n以下要点供 **LaTeX 引擎**使用。Typst 引擎请调用 typst-author skill 获取语法帮助。\n\n### 编译命令\n\n```bash\n# 中文模板（xelatex，跑两遍解决交叉引用）\nxelatex main.tex && xelatex main.tex\n\n# 英文模板（xelatex，同样跑两遍）\nxelatex main.tex && xelatex main.tex\n```\n\n### 文档结构\n\n```latex\n\\documentclass[a4paper,12pt]{article}   % 英文\n\\documentclass[a4paper,12pt]{ctexart}   % 中文\n\n\\usepackage{...}   % 宏包加载\n\\usepackage{graphicx}   % 图片支持\n\\usepackage{booktabs}   % 三线表\n\\usepackage{amsmath,amssymb}   % 数学公式\n\\usepackage{hyperref}   % 交叉引用（需两遍编译）\n```\n\n### 图表插入\n\n```latex\n\\begin{figure}[H]\n  \\centering\n  \\includegraphics[width=0.85\\textwidth]{..\u002F..\u002Ffigures\u002Ffig_q1.pdf}\n  \\caption{图注}\n  \\label{fig:q1}\n\\end{figure}\n\n% 三线表\n\\begin{table}[htbp]\n  \\centering\n  \\caption{表注}\n  \\begin{tabular}{ccc}\n    \\toprule\n    \\textbf{列1} & \\textbf{列2} & \\textbf{列3} \\\\\n    \\midrule\n    数据 & 数据 & 数据 \\\\\n    \\bottomrule\n  \\end{tabular}\n\\end{table}\n```\n\n### 交叉引用\n\n```latex\n如图~\\ref{fig:q1}所示，...   % 图片引用\n式~(\\ref{eq:objective}) 给出...   % 公式引用\n见第~\\pageref{fig:q1} 页   % 页码引用\n```\n\n### 数学公式\n\n```latex\n行内公式：$f(x) = \\sum_{i=1}^n \\theta_i \\phi_i(x)$\n\n行间公式：\n\\begin{equation}\n  \\mathcal{L}(\\theta) = \\frac{1}{N}\\sum_{i=1}^N (y_i - \\hat{y}_i)^2\n  \\label{eq:objective}\n\\end{equation}\n```\n\n### 章节和强调\n\n```latex\n\\section{问题重述}\n\\subsection{问题背景}\n\\textbf{问题一：} xxx   % 对应 Typst 的 #strong\n```\n",{"name":5,"description":7,"allowed-tools":24},"Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002F5writing",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill 5writing",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill 5writing",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill 5writing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002F5writing\u002FSKILL.md",true,[],[48,56,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":57,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":55},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":55},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":55},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":55},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":55},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]