#Adjusting the spacing between consecutive heading levels

6 messages · Page 1 of 1 (latest)

dull basin
#

Hello, I am asking if there is a way to adjust the spacing between two headings if they are adjacent to each other, as shown in Figures 4.6 and 4.6.1 where the spacing is too wide. Whereas if below it is text rather than a heading, the spacing is appropriate.

lunar bramble
#

hmm, unfortunately unanswered

daring moth
#

Can you share some code of the set- and show-rules you currently have applied on your headings? This seems a bit odd, as it looks correct here: #bot-corner message

lunar bramble
#
#show heading.where(level: 2): it => context{
  linebreak();
  v(0.5em)
  set text(1.02em)
  block[#numbering(it.numbering, ..counter(heading).at(it.location())) #h(1.79em) #it.body]
  let pars = query(selector(heading).after(it.location()))
  set block(below: 0.55em)
  
}
#show heading.where(level: 3): it => {
  if(it.body.has("text") and it.body.text == "Abstract"){
    set text(1.12em)
    it
  }
  else{
  linebreak();
  set block(above: 1.5em)
  set text(1.12em)
  block[#numbering("1.1.1", ..counter(heading).at(it.location())); #h(1.6em); #it.body;]
  v(0.2em)
}
#

there's also one for level: 1 but it's irrelevant

#

block[#numbering("1.1.1", ..counter(heading).at(it.location())); #h(1.6em); #it.body;]