mirror of
https://github.com/typst/typst
synced 2025-05-12 03:56:21 +08:00
Make alignment actually centered (#176)
This commit is contained in:
parent
88e1134eec
commit
d3377649a2
@ -337,7 +337,7 @@ a way to set any of that, we need to write our own heading show rule.
|
||||
>>> ),
|
||||
>>> numbering: "1",
|
||||
>>> )
|
||||
#show heading: it => block[
|
||||
#show heading: it => block(width: 100%)[
|
||||
#set align(center)
|
||||
#set text(12pt, weight: "regular")
|
||||
#smallcaps(it.body)
|
||||
@ -416,7 +416,7 @@ differentiate between section and subsection headings:
|
||||
>>>
|
||||
#show heading.where(
|
||||
level: 1
|
||||
): it => block[
|
||||
): it => block(width: 100%)[
|
||||
#set align(center)
|
||||
#set text(12pt, weight: "regular")
|
||||
#smallcaps(it.body)
|
||||
|
Loading…
x
Reference in New Issue
Block a user