I would like to add box to every mathematical equations (like blackboard) including the inline and display ones ; here is what I have done :
#show math.equation: set text(
size: .75em,
fill: white
)
#show math.equation: box.with(
baseline: 0%,
fill: rgb("#000000"),
inset: (x: .3em, y: 0em),
outset: (y: .5em),
stroke: gray + .4pt,
radius: .5em,
)
and the result is in the attachment screenshot : notice that the baseline of math equation is not accord to the baseline of the sentence ( red box ) .
I tried smash the math equation box like
#show math.equation: it => box(
height: 0pt,
box(
baseline: 0%,
fill: rgb("#000000"),
inset: (x: .3em, y: 0em),
outset: (y: .5em),
stroke: gray + .4pt,
radius: .5em,
it
)
)
but it won't work . Do you guys have any suggestions ?