The following line of code will make all headings centered:
#show heading: set align(center)
However, I only need the top heading to be centered.
How can I do that?
I am tired of typing:
#set align(center)
= mytitle
#set align(left)
\
The following line of code will make all headings centered:
#show heading: set align(center)
However, I only need the top heading to be centered.
How can I do that?
I am tired of typing:
#set align(center)
= mytitle
#set align(left)
\
Hi @Superfunnyshark ,
You can use
#show heading.where(level:1): set align(center)
= Test
== Test
Edit: Please remember to format your code using back ticks ` so id displays properly in your messages (you can try it by editing your post).
```
code
```
show–set is the way to go, but generally if you need to align a single thing there’s no need to use set rules like in your original example. you can just call align():
#align(center)[= mytitle]