Custom styling of `heading` and control its look in table of contents?

Hello!

I am trying to make a custom heading style which should look something like this:

I think the real way to do it is using:

set heading(numbering("1.1 |"))

But I am finding that this produces:

Where i have increased the text size of the heading. Then I realized that my table of contents also increase in size:

Could anyone provide me some info on:

  1. How to keep the outline text formatting irrelevant of the actual heading?
  2. How to produce a custom style for all top-level headers as I want?

Kind regards

Well how did you increase the text size? Please always share your code, otherwise we can’t fix it.

The correct way to increase the size of a heading is this

#show heading: set text(30pt)

and this will not affect the table of contents.

1 Like

Perfect, this should be highlighted more clearly (or I might have overlooked it completely)

You made me realize that for visuals only, of course show should be used

Kind regards