library(minixcali)
d <- Excali_doc()
shape <- xkd_rectangle(width = 300, height=200,
fillStyle = 'hachure', roughness = 2)
math <- xkd_math(text = "\\alpha\\approx \\frac\\pi 2")
d$add(shape)
d$add(math)
d$export(file='rect_new.excalidraw')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.