#Extra Space

6 messages · Page 1 of 1 (latest)

fringe grotto
#

What's going on with the spacing here?

I've tried different permutations of vertical space and other options and can't seem to get the gap from grid to text down

#

?r

  title: [Assembly Title Information],
  staff_required: 1.0, 
  image_filename: "example.png"
) = [
  #v(0.75in)
  #block(
    width:100%,
    height:(100%-0.5in),
    below:-0.75in,
    fill:red,
  )[
    #grid(
      stroke:black,
      columns:(45%,20%,35%),
      rows:(50%,25%,25%),
      align:(left+top),
      inset:5pt,
      grid.cell(colspan: 2,strong(title)),
      grid.cell(rowspan: 2,inset:2.5pt,)[a],//#image(fit:"contain",height:100%,width:100%,image_filename)],
      [c]
    )
  ]
]

#set page(paper:"us-letter", margin: (top: 4in, rest: 0.75in), header: [#page_header()])

#lorem(10000)
sweet gustBOT
carmine wraith
#

?r

#let page_header = {
block(
  box(width: 100%, height: 100%, fill: red.lighten(50%)),
  fill: red,
  height:(100% - 0.5in),
)
[some text]
}

#set page(fill: maroon, height: 6in, width: 8in, margin: (top: 2in, rest: 0.5in), header: page_header, header-ascent: 0%)
#lorem(50)
carmine wraith
#

Got it! (after some trial and error) You're missing the header-ascent argument. It has a default of 30%, so the header creates a gap of 30% of the top margin size. Set it to 0% and you'll be good