diff options
Diffstat (limited to 'tests/suite/math/text.typ')
| -rw-r--r-- | tests/suite/math/text.typ | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/suite/math/text.typ b/tests/suite/math/text.typ new file mode 100644 index 00000000..760910f4 --- /dev/null +++ b/tests/suite/math/text.typ @@ -0,0 +1,45 @@ +// Test that setting font features in math.equation has an effect. + +--- math-font-fallback --- +// Test font fallback. +$ よ and 🏳️🌈 $ + +--- math-text-color --- +// Test text properties. +$text(#red, "time"^2) + sqrt("place")$ + +--- math-font-features --- +$ nothing $ +$ "hi ∅ hey" $ +$ sum_(i in NN) 1 + i $ +#show math.equation: set text(features: ("cv01",), fallback: false) +$ nothing $ +$ "hi ∅ hey" $ +$ sum_(i in NN) 1 + i $ + +--- math-optical-size-nested-scripts --- +// Test transition from script to scriptscript. +#[ +#set text(size:20pt) +$ e^(e^(e^(e))) $ +] +A large number: $e^(e^(e^(e)))$. + +--- math-optical-size-primes --- +// Test prime/double prime via scriptsize +#let prime = [ \u{2032} ] +#let dprime = [ \u{2033} ] +#let tprime = [ \u{2034} ] +$ y^dprime-2y^prime + y = 0 $ +$y^dprime-2y^prime + y = 0$ +$ y^tprime_3 + g^(prime 2) $ + +--- math-optical-size-prime-large-operator --- +// Test prime superscript on large symbol +$ scripts(sum_(k in NN))^prime 1/k^2 $ +$sum_(k in NN)^prime 1/k^2$ + +--- math-optical-size-frac-script-script --- +// Test script-script in a fraction. +$ 1/(x^A) $ +#[#set text(size:18pt); $1/(x^A)$] vs. #[#set text(size:14pt); $x^A$] |
