com um clique
template-usage
本技能文件规定了 `TypstTemplate/math-notes.typ` 模板的使用方式和所有可用组件。
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
本技能文件规定了 `TypstTemplate/math-notes.typ` 模板的使用方式和所有可用组件。
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
根据用户说明生成物理/数学教学插图的 AI 绘图提示词。涵盖模型示意图、函数曲线图等,支持多面板组合布局。
跨文件代码审查,检查 Typst 代码的一致性、可维护性和内容职责原则遵循情况
扫描 Typst 文件中的标签(如 <def:limit-of-sequence-of-sets>),在 Appendix 的 Glossary 节中生成字母索引。
审查数学证明的逻辑完整性、符号一致性和推理严密性
本技能文件规定了如何编译验证 Typst 文件,确保修改后的笔记可以正确生成 PDF。
在编辑 Typst 数学笔记时,保持符号、风格、格式完全一致的原则
| name | template-usage |
| description | 本技能文件规定了 `TypstTemplate/math-notes.typ` 模板的使用方式和所有可用组件。 |
| user_invocable | false |
每个笔记的 initial.typ 必须按以下顺序初始化:
#import "../../TypstTemplate/math-notes.typ": *
#set document(
title: "Document Title",
author: "Violet",
date: datetime.today(),
)
#show: apply-style
../../TypstTemplate/math-notes.typ)apply-style 必须在 #show: 中调用,它设置页面、字体、页眉页脚和标题样式#make-cover#make-cover(
"Document Title", // 必填:主标题
"Author Name", // 必填:作者
subtitle: "...", // 可选:副标题
institute: "...", // 可选:单位
date: datetime.today().display(), // 可选:日期
version: "v0.2.0", // 可选:版本号
extra-info: "...", // 可选:底部补充说明
)
"Violet""Notiz Mathematiques""v0.x.0"extra-info 通常为一句话描述笔记内容#make-outline#make-outline(depth: 2, title: "Contents")
depth:目录显示深度(1 = 仅 Chapter,2 = Chapter + Section,3 = 含 Subsection)title:目录页标题,默认 "Contents"#part#part("Part Title")
=)所有内容直接写在 initial.typ 中。不再使用 chapters/ 目录的 #include 分文件模式。
所有定理类组件自动编号,格式为 章号.序号(如 1.3)。每个 Chapter 开始时计数器重置。
#theorem(name: "Theorem Name")[
Statement of the theorem.
]
#corollary(name: "...")[...]
#lemma(name: "...")[...]
#definition(name: "Definition Name")[
A _term_ is defined as...
]
#property(name: "...")[...]
#proposition(name: "...")[...]
#example(name: "...")[...]
#axiom(name: "...")[...]
#postulate(name: "...")[...]
name:可选,显示在标签旁的名称(如定理名)body:组件正文,用 [...] 包裹#proof(name: "for the Mean Value Theorem")[
Proof steps...
]
#solution(name: "quadratic minimization")[
Solution steps...
]
proof 结尾显示实心方框 ■solution 结尾显示空心方框 □#exercise(name: "Warm-up")[
Exercise statement...
]
#note[
Commentary or reminder text.
]
#caution(title: "Custom Title")[
Warning text.
]
#note(
title: "Custom Title",
icon: [\*],
bg: rgb("#EEF7FF"),
border: rgb("#9CC6EB"),
accent: rgb("#2F6EA5"),
)[
Custom styled note content.
]
可覆盖参数:kind("note" 或 "caution")、title、icon、bg、border、accent
#tex-table(学术风格,仅横线)#tex-table(
("Header 1", "Header 2", "Header 3"), // 表头行
([Cell $a$], [Cell $b$], [Cell $c$]), // 数据行(含数学用中括号)
("Pure text", "Pure text", "Pure text"), // 纯文本行可用引号
)
#plain-table(网格风格,完整表线)#plain-table(
("Symbol", "Meaning", "Example"),
("$forall$", "for all", $forall x in A$),
)
[...]"..."#eq#eq[$
integral_0^infinity f(x) dif x = 1.
$]
(章号.公式序号)#eq#highlightThis is #highlight[important text] in a sentence.
initial.typ 骨架#import "../../TypstTemplate/math-notes.typ": *
#set document(
title: "Subject Name",
author: "Violet",
date: datetime.today(),
)
#show: apply-style
#make-cover(
"Subject Name",
"Violet",
subtitle: "A notebook for [topic]",
institute: "Notiz Mathematiques",
date: datetime.today().display(),
version: "v0.2.0",
extra-info: "This is a notebook for [topic].",
)
#make-outline(depth: 2, title: "Contents")
#part("Part Title")
= Chapter Title
== Section Title
Content here.
#bibliography("references.bib")
每个笔记目录应维持:
Subject/
initial.typ # 主入口(唯一构建入口,所有内容写在此文件)
references.bib # 参考文献
img/ # 图片资源
tmp/ # 构建输出
模板内置颜色变量,组件自动使用对应配色:
| 组件族 | 边框色 | 花色 |
|---|---|---|
| Theorem / Corollary / Lemma | 红色 #C95A5A | ♥ |
| Definition / Property | 绿色 #4FA36A | ♣ |
| Proposition / Example | 蓝色 #4E77B7 | ♠ |
| Axiom / Postulate | 紫色 #9B65C9 | ♦ |
| Note | 灰蓝 #96A2B6 | — |
| Caution | 浅红 #E39A9A | — |
当前项目统一使用单文件模式:所有内容直接写在 initial.typ 中。不再使用 chapters/*.typ 分文件方式。
如需导入外部包(如 xarrow),在 initial.typ 开头导入:
#import "../../TypstTemplate/math-notes.typ": *
#import "@preview/xarrow:0.4.0": xarrow
| 包名 | 用途 | 示例 |
|---|---|---|
@preview/xarrow:0.4.0 | 带标注的箭头 | $f_n xarrow("a.e.") f$、$f_n xarrow(mu) f$ |
TypstTemplate/math-notes.typ 的公共接口src/、content/)apply-style 统一管理)#outline() 内置目录(使用 #make-outline() 代替)initial.typ 中重复章节文件已有的内容