#Extra spacing around grid

1 messages · Page 1 of 1 (latest)

rustic sparrow
#

Hey guys, I am trying to use a grid to space text on the left and right side on the same line. This seems to be causing extra padding on the top and bottom, and I was wondering if anyone knew how to remove it

#

?render

 #grid(columns: (1fr), [
  #align(left)[LEFT SIDE]],)
  Lower stuff\ 
  \
  Top stuff\
  LEFT SIDE\
  Lower stuff```
weak lavaBOT
rustic sparrow
#

Ignoring the different newline, you can see some extra space between the top/lower stuff in eachc ase

clear osprey
#

?render

#show grid: set block(spacing: 0em)
Top stuff#v(-0.5em)
 #grid(columns: (1fr), rows: 1.25em, [
  #align(left)[LEFT SIDE]],)
  Lower stuff\ 
  \
  Top stuff\
  LEFT SIDE\
  Lower stuff```
clear osprey
#

I guess that works

#

Btw

#

(1fr) is not an array with just “1fr”

#

It’s actually the same as 1fr

#

Just like (1+1) is the same as 1+1

#

Parenthesizing an expression keeps it intact