Use boxed titles
mainWhen boxed-style is used in title-style, you can further customize the floating title box using these properties within the boxed-style dictionary:
anchor: The position of the box relative to the main box.y: Vertical anchor (top,horizon, orbottom; default:horizon)x: Horizontal anchor (left,start,center,right, orend; default:start)
offset: A dictionary{x: length, y: length}to offset the box (default:0pt)radius: The radius of the boxed title (default:5pt)
#showybox(
title: "Floating Title",
title-style: (
boxed-style: (
anchor: (x: "center", y: "top"),
offset: (x: 0pt, y: -5pt),
radius: 3pt
)
)
)