I have a CeTZ diagram I want to include in different documents with different font sizes. I used the suggestions from How to resize an included cetz/fletcher chart in a figure to a specific width? to try and scale it.
Unfortunately, the font also gets adjusted and is now too small to be legible. How can I best work around this problem?
#import "@preview/cetz:0.5.2": *
#let label(pos, anchor, body) = draw.content(pos, anchor: anchor, padding: 0.15, body)
#let trigo() = {
canvas({
import draw: *
line((0, 0), (2, 0), name: "a")
label("a", "north", $a$)
line((2, 0), (2, 2), name: "g")
label("g", "west", $g$)
line((0, 0), (2, 2), name: "h")
label("h", "south", $h$)
set-style(stroke: (paint: black))
angle.angle("a.start", "a.end", "h.end", radius: 40%, label: $alpha$)
angle.angle("g.start", "g.end", "a.start", label: $dot$)
})
}
#trigo()
#set text(size: 3pt)
#trigo()
#scale(50%, reflow: true, trigo())
