forked from EduCraft/curriculum-project-hub
ecc92c9a87
上游 0029/0030 与本地 filelib 侧同号 ADR 相撞,cph 两份改到本地空闲号段, 代码锚点引用一并跟随。
85 lines
2.3 KiB
TOML
85 lines
2.3 KiB
TOML
# Throwaway smoke engineering file for the cph-render template round
|
|
# (ADR-0011, outline shape ADR-0036). Exercises all 4 kinds + a section heading
|
|
# + nested headings (per-level numbering) + an example with a `source` scalar
|
|
# and one without + a lemma with proof and one without.
|
|
#
|
|
# This file is compiled DIRECTLY via `typst compile --input manifest=/manifest.toml`
|
|
# (see README below), bypassing the Rust engine's augmented-manifest builder
|
|
# (`cph_typst::build_augmented_manifest`). So the `[[outline]]` shape here is
|
|
# hand-authored to already be what that builder would produce: an ordered array
|
|
# of `type = "element"` (kind, path, fields — the content fields present on
|
|
# disk, since typst has no file-exists primitive) and `type = "section"`
|
|
# (kind, title, depth) entries.
|
|
|
|
[project]
|
|
id = "smoke-eng"
|
|
name = "cph-render template smoke"
|
|
|
|
[info]
|
|
title = "向量与几何 · 示例讲义"
|
|
author = ["张老师", "李老师"]
|
|
|
|
# segment — exercises per-level numbering (一、 / 1.1 / 1.1.1) alongside the
|
|
# section heading below.
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "segment"
|
|
path = "segments/向量数量积"
|
|
fields = ["textbook"]
|
|
|
|
# A section heading (ADR-0036): opens depth-1, groups the two examples that
|
|
# follow. Contributes no element to the sequence.
|
|
[[outline]]
|
|
type = "section"
|
|
kind = "section"
|
|
title = "数量积的坐标计算"
|
|
depth = 1
|
|
path = "examples"
|
|
|
|
# example WITH source scalar
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "example"
|
|
path = "examples/坐标数量积"
|
|
fields = ["problem", "solution"]
|
|
|
|
# example WITHOUT source scalar
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "example"
|
|
path = "examples/求模长"
|
|
fields = ["problem", "solution"]
|
|
|
|
# lemma WITH proof (proof.typ present on disk; declared in fields)
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "lemma"
|
|
path = "lemmas/柯西不等式"
|
|
fields = ["stmt", "proof"]
|
|
|
|
# lemma WITHOUT proof (proof.typ absent; fields omits it)
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "lemma"
|
|
path = "lemmas/垂直判据"
|
|
fields = ["stmt"]
|
|
|
|
# sop
|
|
[[outline]]
|
|
type = "element"
|
|
kind = "sop"
|
|
path = "sops/求夹角步骤"
|
|
fields = ["sop"]
|
|
|
|
[targets.student]
|
|
artifact = "single-file"
|
|
[[targets.student.steps]]
|
|
type = "typst-compile"
|
|
template = "exports/student.typ"
|
|
|
|
[targets.teacher]
|
|
artifact = "single-file"
|
|
[[targets.teacher.steps]]
|
|
type = "typst-compile"
|
|
template = "exports/teacher.typ"
|