diff options
| -rw-r--r-- | template.typ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/template.typ b/template.typ index 4d4b8aa..345ab9c 100644 --- a/template.typ +++ b/template.typ @@ -25,3 +25,12 @@ ] #let colourmaths(x, color) = text(fill: color)[$#x$] + +// author: eric1102 - https://sitandr.github.io/typst-examples-book/book/typstonomicon/math_display.html +// may slightly interfere with maths blocks +#show math.equation: it => { + if it.body.fields().at("size", default: none) != "display" { + return math.display(it) + } + it +} |
