Skip to content

注意事项

  • 全局配置全部暴露在 setup 方法中,像 choicesquestion 等方法中的一些配置并没有暴露在 setup 方法中。此时若想全局配置某些选项,可以按照以下的方法配置。比如选项的 label 我想使用带圈数字,不想使用默认的A.B.C.D.
typst
<!-- 全局设置选项的label -->
#let choices = choices.with(label:"①")

<!-- 调用 -->
#choices(
  [选项1],
  [选项2],
  [选项3],
  [选项4],
)

<!-- 输出结果 -->
① 选项1       ② 选项2         ③ 选项3         ④ 选项4

Released under the MIT License.