From 6febefbded5a350d8ad33e17afb5665279db284b Mon Sep 17 00:00:00 2001 From: Don Yin Date: Mon, 19 Oct 2026 00:18:55 +0100 Subject: [PATCH] fix(spec): render `\lVert` and `\rVert` as a double bar `math.class("opening", "||")` passes a plain string, which Typst lays out as two separate `|` glyphs instead of the double bar (U+2016) that `\Vert` gets from the `||` shorthand, and the pair does not stretch with `\left ... \right`. Use `math.bar.v.double` instead (`sym` is shadowed by the helper in prelude.typ, and `std` only exists since Typst 0.12). --- packages/mitex/specs/latex/standard.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mitex/specs/latex/standard.typ b/packages/mitex/specs/latex/standard.typ index c3979ae..5ba2154 100644 --- a/packages/mitex/specs/latex/standard.typ +++ b/packages/mitex/specs/latex/standard.typ @@ -168,8 +168,8 @@ lvert: of-sym(math.class("opening", "|")), rvert: of-sym(math.class("closing", "|")), Vert: define-sym("||"), - lVert: of-sym(math.class("opening", "||")), - rVert: of-sym(math.class("closing", "||")), + lVert: of-sym(math.class("opening", math.bar.v.double)), + rVert: of-sym(math.class("closing", math.bar.v.double)), lparen: define-sym("paren.l"), rparen: define-sym("paren.r"), lceil: define-sym("⌈"),