I’m trying to display a text inside a framed box, with the command block
In LaTeX, with the keyword oversize, I can make the block slightly larger so the text fits the margin of the page, instead of block border :
\documentclass[10pt]{article}
\usepackage{tcolorbox}
\usepackage{lipsum}
\usepackage{showframe}
\begin{document}
\begin{tcolorbox}[colback=red!5, colframe=red, oversize]
\lipsum[1]
\end{tcolorbox}
\lipsum[1]
\end{document}
I’m trying to do this in Typst, but I did not find an equivalent to this oversize keyword
#block(
fill: red.lighten(95%),
stroke: red + 2pt,
inset: 10pt,
radius: 4pt,
width: 100% + 4pt, // ??
)[
#lorem(30)
]
#lorem(30)
I could try manually enlarge the width of the block, but this is quite hand-crafted, and this still cause issue on the left part of the block.
Is there way to do it ?


