How to do delete outline prefix number

#outline(title: "")
#set heading(numbering: "1.1")
= 第一章

== 正数和负数
== 正数和负数

= 第二章

== 正数和负数
== 正数和负数
=== 正数和负数
==== 正数和负数

= 第三章

With the new helper functions, you can just skip it.prefix():

#show outline.entry: it => {
  link(it.element.location(), it.indented(none, it.inner()))
}

image

Also, #outline(title: "") is not the same as #outline(title: none). If you don’t need title, then use none, otherwise it will be present with no text. You can also use set text(lang: "zh") many things to be localized to Chinese.


If you need to remove just top-level numbers:

#show outline.entry: it => {
  let prefix = if it.element.func() != heading or it.element.level != 1 {
    it.prefix()
  }
  link(it.element.location(), it.indented(prefix, it.inner()))
}

image

3 Likes