From 1de53730bce0bd3f9de89db1da7c19b7889b9a75 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 27 Jan 2023 12:04:23 +0100 Subject: Symbol values and modules --- tests/ref/math/accents.png | Bin 3077 -> 3126 bytes tests/ref/text/symbol.png | Bin 14112 -> 4436 bytes tests/typ/math/accents.typ | 2 +- tests/typ/math/style.typ | 2 +- tests/typ/math/syntax.typ | 2 +- tests/typ/text/symbol.typ | 31 +++++++++++-------------------- 6 files changed, 14 insertions(+), 23 deletions(-) (limited to 'tests') diff --git a/tests/ref/math/accents.png b/tests/ref/math/accents.png index 7e93d9b5..dba9fb45 100644 Binary files a/tests/ref/math/accents.png and b/tests/ref/math/accents.png differ diff --git a/tests/ref/text/symbol.png b/tests/ref/text/symbol.png index 4806683b..f964d931 100644 Binary files a/tests/ref/text/symbol.png and b/tests/ref/text/symbol.png differ diff --git a/tests/typ/math/accents.typ b/tests/typ/math/accents.typ index 96d055e9..0cd0b16e 100644 --- a/tests/typ/math/accents.typ +++ b/tests/typ/math/accents.typ @@ -23,6 +23,6 @@ $ accent(a, grave), accent(a, overline), accent(a, breve), accent(a, dot), - accent(a, dia), + accent(a, diaer), accent(a, caron), accent(a, arrow) $ diff --git a/tests/typ/math/style.typ b/tests/typ/math/style.typ index 5089610b..4a4cfe16 100644 --- a/tests/typ/math/style.typ +++ b/tests/typ/math/style.typ @@ -2,7 +2,7 @@ #let kinds = (math.serif, math.sans, math.cal, math.frak, math.mono, math.bb) #let modifiers = (v => v, math.italic, math.bold, v => math.italic(math.bold(v))) -#let cells = ([:triangle:nested:], [--], [`italic`], [`bold`], [both]) +#let cells = (sym.triangle.nested, [--], [`italic`], [`bold`], [both]) #for kk in kinds { cells.push(raw(repr(kk).trim(""))) for mm in modifiers { diff --git a/tests/typ/math/syntax.typ b/tests/typ/math/syntax.typ index 186082aa..f18f7edf 100644 --- a/tests/typ/math/syntax.typ +++ b/tests/typ/math/syntax.typ @@ -19,6 +19,6 @@ $ sqrt(x^2) = frac(x, 1) $ $ "profit" = "income" - "expenses" $ $ x < #for i in range(5) [$ #i < $] y $ $ 1 + 2 = #{1 + 2} $ -$ A sub:eq:not B $ +$ A subset.eq.not B $ ``` diff --git a/tests/typ/text/symbol.typ b/tests/typ/text/symbol.typ index f758c779..3b7028e9 100644 --- a/tests/typ/text/symbol.typ +++ b/tests/typ/text/symbol.typ @@ -1,27 +1,18 @@ -// Test symbol notation. +// Test symbols. --- -:face: -:face:unknown: -:woman:old: -:turtle: +#emoji.face +#emoji.woman.old +#emoji.turtle #set text("New Computer Modern Math") -:arrow: -:arrow:l: -:arrow:r:squiggly: -#symbol(("arrow", "tr", "hook").join(":")) +#sym.arrow +#sym.arrow.l +#sym.arrow.r.squiggly +#sym.arrow.tr.hook ---- -Just a: colon. \ -Still :not a symbol. \ -Also not:a symbol \ -:arrow:r:this and this:arrow:l: \ - ---- -#show symbol.where(notation: "my:custom"): "MY" -This is :my:custom: notation. +#sym.arrow.r;this and this#sym.arrow.l; --- -// Error: 1-14 unknown symbol -:nonexisting: +// Error: 13-20 unknown modifier +#emoji.face.garbage -- cgit v1.2.3