I created custom functions for headings: #numtocsec and #numsec. They should be top-level, centered, and unnumbered. The first one, #numtocsec, in addition to the previous specifications, must not appear in the table of contents:
#let numtocsec(t) = align(center)[
#heading(
level: 1,
numbering: none,
outlined: false,
t,
)
]
#let numsec(t) = align(center)[
#heading(
level: 1,
numbering: none,
outlined: true,
t,
)
]
#set heading(numbering: "1.1")
#show heading: set align(left)
#outline()
= Section
#numtocsec[No num no toc section]
#numsec[No num section]
Result:
My problem is that numtocsec and numsec are not centered. How can I fix this? Thanks in advance.
