mirror of
https://github.com/typst/typst
synced 2025-05-11 19:46:23 +08:00
Simplify heading block example
This commit is contained in:
parent
ec3f7004ca
commit
a253b47e7c
@ -337,10 +337,10 @@ a way to set any of that, we need to write our own heading show rule.
|
||||
>>> ),
|
||||
>>> numbering: "1",
|
||||
>>> )
|
||||
#show heading: it => block(width: 100%)[
|
||||
#show heading: it => [
|
||||
#set align(center)
|
||||
#set text(12pt, weight: "regular")
|
||||
#smallcaps(it.body)
|
||||
#block(smallcaps(it.body))
|
||||
]
|
||||
|
||||
<<< ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user