How to attach a note to the bottom of a table like below?
OK I think I figure it out. Just add one more cell that spans across all the columns.
#figure(
table(
columns: (1fr, 1fr, 1fr),
align: left,
stroke: none,
table.hline(),
[Relation], [Governor], [Dependent],
table.hline(),
[determiner], [_linguist_], [_the_],
[nominal subject], [_climbs_], [_linguist_],
[root], [_ROOT_], [_climbs_],
[direct object], [_climbs_], [_rocks_],
table.hline(),
// attach the note
table.cell(colspan: 3, [_Note._ This parse was obtained via the Stanford Dependency Parser]),
),
caption: [Dependency representation of the sentence “The linguist climbs rocks.”],
)
You’re solution works fine, but note you can give more than a table as first argument to figure
. For example:
#figure(
{
show table: set block(below: 0.4em)
table(
columns: (1fr, 1fr, 1fr),
align: left,
stroke: none,
table.hline(),
[Relation], [Governor], [Dependent],
table.hline(),
[determiner], [_linguist_], [_the_],
[nominal subject], [_climbs_], [_linguist_],
[root], [_ROOT_], [_climbs_],
[direct object], [_climbs_], [_rocks_],
table.hline(),
)
align(left, [_Note._ This parse was obtained via the Stanford Dependency Parser])
v(0.5em)
},
caption: [Dependency representation of the sentence “The linguist climbs rocks.”],
)
1 Like
Today I learned. With yours I can also attach notes to an image. Thanks!
1 Like