Skip to content

exam-type 方法

该方法用于设置试卷类型

示例

typst
#exam-type("A") or #exam-type[A]
// 输出
试卷类型: A

参数

type

类型: str | content

默认值: 无

该参数为位置参数,用于设置试卷类型

prefix

类型: str | content

默认值: "试卷类型:"

该参数用于设置试卷类型的前缀,位置默认在右上角

typst
#exam-type("A", prefix: "类型:") or #exam-type(prefix: "类型:")[A]
// 输出
类型: A

Released under the MIT License.