How can I add indentation in headings?

I want to indent the titles like the text is 1.25cm, but the pad doesn’t work when the title is numbered, and the block doesn’t work either - instead of indenting from the left, it indents from the top.

#let inst_heading(body) = [

    #set heading(
    depth: 3,
    numbering: "1.1",
  )  

  #show heading.where(level: 1): it => [
    #set align(center)
    #set text(weight: "semibold", size: 14pt)
    #set block(below: 2em)
    #it
  ]

  #show outline.entry.where(
    level: 1
  ): set block(above: 1.5em)
  
  #show outline.entry: it => link(
    it.element.location(),
    it.indented(it.prefix(), it.inner(), gap: 0.84em) 
  )

  #show heading.where(level: 2): it => [
    #set align(left)
    #set text(weight: "semibold", size: 14pt)

    #set block(below: 2em)
    #set block(above: 2em)
    #it
  ]

  #show heading.where(level: 3): it => [
    #set align(left)
    #set text(weight: "semibold", size: 14pt)
    
    #set block(below: 2em)
    #set block(above: 2em)
    #it
  ]

  #set list(marker: [--], indent: 1.25cm)
  #set enum(indent: 1.25cm)
  #body
]

Hi @qerenny, welcome to the Typst forum! Please have a look at the guidelines. In particular, could you post a minimal but complete example of code and explain how it doesn’t do what you want? You mention a “pad” of 1.25cm but there’s no pad call in your code, and the only 1.25 setting seems to work well. Maybe a screenshot of what you’re trying to get would help.

@sijo I want to make headers look like on this screenshot.

In the code above, there is neither pad nor block, because they do not work and break the view.
At the moment it looks like this:

Does the following do what you want?

#set par(first-line-indent: (amount: 1.25cm, all: true))
#set heading(numbering: "1.1")
#show heading: pad.with(left: 1.25cm)

= #lorem(5)
== #lorem(5)
#lorem(30)

#lorem(30)

1 Like

Yeah, you are right @sijo, but I understood that I have great problems with my text on the whole due to imposition of settings. No one exists, who could fix this crap)
Thanks for the help