I have a margin on the page set to something like - (left: 4cm, bottom: 2cm, top: 2cm, right: 2cm)
How should I increase the width of the table? It looks like this
and here is my code
#figure(
box(width: 15fr, table(
stroke: none,
columns: (auto, 2fr, 2fr, 2fr),
align: (left, center, center, center),
table.hline(),
table.header(
[header 1], [header 2], [header 3], [header 4],
),
table.hline(),
[#lorem(4)],[123456789456123456],[0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
table.hline(),
)),
caption: [#lorem(10)],
)
I tried adding the box but that does nothing
Update
I tried block
instead of box
and set it’s width, but it expands only to the left and not to the center or right
Code
#figure(
block(width: 60em, table(
stroke: none,
columns: (auto,) + 3 * (auto,),
align: (left, center, center, center),
table.hline(),
table.header(
[header 1], [header 2], [header 3], [header 4],
),
table.hline(),
[#lorem(4)],[123456789456123456],[0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
[#lorem(4)], [0.123456789456123456], [0.123456789456123456], [0.123456789456123456],
table.hline(),
)),
caption: [#lorem(10)],
)