Skip to content

title方法

该方法设置文档的标题

参数及其默认值

name

type: str | content

default: ""

标题名称,该参数为位置参数

font

type: str | dictionary

default: ("New Computer Modern Math", "Source Han Serif")

该参数用于设置标题的字体

size

type: length

default: 15pt

该参数用于设置标题字体的大小

weight

type: int | str

default: bold

该参数用于设置标题字体的粗细

position

type: alignment

default: center

该参数用于设置标题的对齐方式

top

type: length

default: 0pt

该参数用于设置标题的上间距

bottom

type: length

default: 18pt

该参数用于设置标题的下间距

Released under the MIT License.