Skip to content

subject 方法

科目名字

示例

typst
#subject("哲♂学") or #subject[哲♂学]

参数

body

类型: str | content

默认值: 无

该参数为位置参数,用于设置科目名

font

类型: str | dictionary

默认值: ("New Computer Modern Math", "simhei")

该参数用于设置科目的字体

size

类型: length

默认值: 21.5pt

该参数用于设置科目字体的大小

spacing

类型: length

默认值: 1em

该参数用于设置科目每个字之间的间距

top

类型: length

默认值: 0pt

该参数用于设置科目的上间距

bottom

类型: length

默认值: 18pt

该参数用于设置科目的下间距

Released under the MIT License.