My sample Typst file is as follows:
#set page(width: auto, height: auto, margin: 0pt)
$union.big_(a in A) X_a$
When compiled using the following command:
typst c -f svg test.typ
The resulting svg is cropped too much:
If I change the Typst code so that the math part is displayed on a separate line:
#set page(width: auto, height: auto, margin: 0pt)
$ union.big_(a in A) X_a $
and compile it with the same command, then the output is:
Is there anyway to make inline math also cropped properly? Though I can manualy change the margin value so that the desired content is not cropped, but this is not practical because the margin value depends on the font size, and I do not want to change the margin value every time I change the font size.