Skip to content

inline-square 方法

该方法生成一系列的小方格,用于弥封线内准考证号,座位号,考号的占位

WARNING

该方法在 0.1.8 版本及以后已废弃,使用官方的 table 方法代替。

typst
// 使用方法
#inline-square(2)

效果如下:

    
typst
// 使用table方法替代
#table(columns:2,[])

参数

num

类型: int

该参数为位置参数,用于设置生成小方格的数量

width

类型: length

默认值: 1.5em

该参数用于设置小方格的宽度

gap

类型: length

默认值: 0pt

该参数用于设置小方格间的间距

body

类型: str | content

默认值: ""

该参数用于设置小方格内的文字内容

Released under the MIT License.