How to change the size of headings?

Hi there,

I would like to change the size (e.g. to 14pt) for level 1 headings.
I couldn’t find an option for this.

The heading function has no argument “size”.

I would like to set this once at the top of the file.

Thanks in advance.

Hi, welcome to the Typst forum! I suggest you have a look at the styling documentation: basic tutorial, advanced tutorial and reference. For your problem the simplest is

#show heading.where(level: 1): set text(size: 14pt)

As you can see, the size is a property of text rather than of the heading itself.

1 Like

Thank you, that worked! I didn’t find this .where syntax.

1 Like