How can I change table of content entry text sizes?

Hi,
I try to change the font size of the entry of my table of contents like

#show outline: set text(size: 12pt)
#show outline.entry: set text(size: 12pt)
#outline(
  title: none,
  depth: 1
)

But those entries still remain at the size of the heading text.

AI agentic systems don’t find a functional solution …

It seems to be an easy issue isn’t it ?
Thank’s for all answers

#set text(size: 10pt)
#show outline: it => {
  show heading.where(level: 1): its => {
    set text(size: 14pt)
    text([#its.body])
  }
  it
}

#outline

= abcdef
= ghjklsjjsjsn

Thank for this advice but in my case it doesn’t work because I define my heading like that :slight_smile:

#heading(level: 1, outlined: true, numbering: none)[
  #styled-text(16pt, weight: "bold")[#title]

to use it in a recurrent line :

#song-page(  "Les Passantes",  "Antoine POL - Georges BRASSENS",
  [

I keep trying something else…

Hi @Olivier_MOUGEL,

Welcome to the forum! Could you please share a minimal working code snippet that we can paste into an empty Typst document to reproduce the issue? It makes it hard to answer questions where we have to guess your custom settings.

Please take a look at How to post in the Questions category and especially the section which talks about code formatting and update the code snippets in your posts.

2 Likes

Are you mean the heading of outline section “table of content” or the headings in the outline “abcdef” (in my example)?

Hi @Olivier_MOUGEL, welcome and thank you for your question! I have changed your post’s title to bring it in line with the question guidelines and thus make it easier to understand from the title:

Good titles are questions you would ask your friend about Typst.

I hope I didn’t change the meaning you had in mind, looking back a few minutes later I’m not 100% sure… you can change it again if needed.

I have also formatted your code, please check the linked post and/or your post’s edit history on how to do that next time, and post a complete snippet as @flokl said.

Thanks!