diff --git a/tests/ref/math-attach-with-numbers.png b/tests/ref/math-attach-with-numbers.png new file mode 100644 index 000000000..81f4e2b78 Binary files /dev/null and b/tests/ref/math-attach-with-numbers.png differ diff --git a/tests/suite/math/attach.typ b/tests/suite/math/attach.typ index cedc3a4ab..1a345abd1 100644 --- a/tests/suite/math/attach.typ +++ b/tests/suite/math/attach.typ @@ -189,3 +189,9 @@ $ a0 + a1 + a0_2 \ // sequence of extended shapes). $lr(size: #130%, [x])_0^1, [x]_0^1, \]_0^1, x_0^1, A_0^1$ \ $n^2, (n + 1)^2, sum_0^1, integral_0^1$ + + +--- math-attach-with-numbers --- +// Test that underscores in code numeric literals do not conflict with +// subscripts in math mode. +$3_5$