From 22cb61421d032c3f26bc1fdcb4b7bfc6875fb562 Mon Sep 17 00:00:00 2001 From: Popa <115492561+Popa-42@users.noreply.github.com> Date: Mon, 14 Sep 2026 22:39:19 +0200 Subject: [PATCH] fix: gate equation decimal rewrite by locale setting --- src/templates/formal.typ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)