Skip to content

Caption for tablex #88

Closed Answered by PgBiel
yoonghm asked this question in Q&A
Dec 12, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, you have to add kind: table to your figure so that it recognizes the tablex output as a table. See also #7

//Insert a table, embedded within a figure for caption
#figure(
	tablex(
		columns: (1fr, auto, auto),
		inset: 10pt,
		align: horizon,
		[   ],
		[  *Area*  ],
		[  *Parameters*  ],
		image("./assets/aws.svg"),
		$ pi h (D^2 - d^2) / 4 $,
		[
			$h$: height \
			$D$: outer radius \
			$d$: inner radius
		],
		image("./assets/aws.svg"),
		$ sqrt(2) / 12 a^3 $,
		[  $a$: edge length  ],
	),
        kind: table,
	caption: [A sample table]
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yoonghm
Comment options

Answer selected by PgBiel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants