diff --git a/src/templates/formal.typ b/src/templates/formal.typ index c7551e1..f78030f 100644 --- a/src/templates/formal.typ +++ b/src/templates/formal.typ @@ -85,13 +85,13 @@ show table.cell.where(y: 0): it => if table-header-smallcaps { smallcaps(it) } else { it } - show math.equation: it => { - show regex("\\d+\\.\\d+"): it => if decimal-comma { + show math.equation: it => if decimal-comma { + show regex("\\d+\\.\\d+"): it => { show ".": { "," + h(0pt) } it - } else { it } + } it - } + } else { it } let digit-grouping = state("digit-grouping", group-digits)