コンテンツにスキップ

grid関数

#columns()関数よりも柔軟なレイアウトをしたい場合利用できます。

#set rect(
inset: 8pt,
fill: rgb("e4e5ea"),
width: 100%,
)
#grid(
columns: (60pt, 1fr, 2fr),
rows: (auto, 60pt),
gutter: 3pt,
rect[Fixed width, auto height],
rect[1/3 of the remains],
rect[2/3 of the remains],
rect(height: 100%)[Fixed height],
grid.cell(
colspan: 2,
image("../img/nyan4.jpg", width: 100%),
),
)

func10