diff options
| author | Ian Wrzesinski <wrzian@umich.edu> | 2025-01-20 14:39:26 -0500 |
|---|---|---|
| committer | Ian Wrzesinski <wrzian@umich.edu> | 2025-01-23 16:30:29 -0500 |
| commit | 6fe1e20afb9e2fb276242613121206b0001cce82 (patch) | |
| tree | 0b4325e2541bcabcd6417b4c8ae4d90987e18e62 /tests/suite | |
| parent | 7838da02ec8a9ffbdfa61ed3dfedb24557a0e49c (diff) | |
Update math TextElem layout to separate out SymbolElem
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/foundations/content.typ | 2 | ||||
| -rw-r--r-- | tests/suite/math/alignment.typ | 8 | ||||
| -rw-r--r-- | tests/suite/math/delimited.typ | 4 | ||||
| -rw-r--r-- | tests/suite/math/stretch.typ | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/suite/foundations/content.typ b/tests/suite/foundations/content.typ index 9ddee597..c3c119e3 100644 --- a/tests/suite/foundations/content.typ +++ b/tests/suite/foundations/content.typ @@ -85,7 +85,7 @@ [With ] vars .pairs() - .map(((name, value)) => $name = value$) + .map(((name, value)) => $#symbol(name) = value$) .join(", ", last: " and ") [ we have:] $ equation = result $ diff --git a/tests/suite/math/alignment.typ b/tests/suite/math/alignment.typ index 63033ef5..941c2055 100644 --- a/tests/suite/math/alignment.typ +++ b/tests/suite/math/alignment.typ @@ -4,10 +4,10 @@ // Test alignment step functions. #set page(width: 225pt) $ -"a" &= c \ -&= c + 1 & "By definition" \ -&= d + 100 + 1000 \ -&= x && "Even longer" \ +a &= c \ + &= c + 1 & "By definition" \ + &= d + 100 + 1000 \ + &= x && "Even longer" \ $ --- math-align-post-fix --- diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ index ca82427d..794ffd8a 100644 --- a/tests/suite/math/delimited.typ +++ b/tests/suite/math/delimited.typ @@ -41,8 +41,8 @@ $floor(x/2), ceil(x/2), abs(x), norm(x)$ --- math-lr-color --- // Test colored delimiters $ lr( - text("(", fill: #green) a/b - text(")", fill: #blue) + text(\(, fill: #green) a/b + text(\), fill: #blue) ) $ --- math-lr-mid --- diff --git a/tests/suite/math/stretch.typ b/tests/suite/math/stretch.typ index 1377f4d2..d145f72a 100644 --- a/tests/suite/math/stretch.typ +++ b/tests/suite/math/stretch.typ @@ -63,8 +63,8 @@ $ ext(bar.v) quad ext(bar.v.double) quad // Test stretch when base is given with shorthand. $stretch(||, size: #2em)$ $stretch(\(, size: #2em)$ -$stretch("⟧", size: #2em)$ -$stretch("|", size: #2em)$ +$stretch(⟧, size: #2em)$ +$stretch(|, size: #2em)$ $stretch(->, size: #2em)$ $stretch(↣, size: #2em)$ @@ -87,7 +87,7 @@ $ body^"text" $ #{ let body = $stretch(=)$ for i in range(24) { - body = $body$ + body = $body$ } $body^"long text"$ } |
