diff options
| author | damaxwell <damaxwell@alaska.edu> | 2023-06-26 03:51:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-26 13:51:27 +0200 |
| commit | 9eb350d7deadd59efba50b0e33acfd0967b8d0a6 (patch) | |
| tree | d3a96e090bca97fb207c583ea4991ed26e939de3 /tests | |
| parent | 1861ceb1792d2a42979dff2fa721246ada922a42 (diff) | |
support optical sizes for script/scriptscript when available (#1580)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/math-realize.png | bin | 21147 -> 21228 bytes | |||
| -rw-r--r-- | tests/ref/compiler/content-field.png | bin | 2502 -> 2423 bytes | |||
| -rw-r--r-- | tests/ref/layout/enum-numbering.png | bin | 18891 -> 19079 bytes | |||
| -rw-r--r-- | tests/ref/math/accent.png | bin | 7994 -> 8038 bytes | |||
| -rw-r--r-- | tests/ref/math/attach.png | bin | 28331 -> 28615 bytes | |||
| -rw-r--r-- | tests/ref/math/cancel.png | bin | 24698 -> 24765 bytes | |||
| -rw-r--r-- | tests/ref/math/cases.png | bin | 3134 -> 2947 bytes | |||
| -rw-r--r-- | tests/ref/math/content.png | bin | 8357 -> 7883 bytes | |||
| -rw-r--r-- | tests/ref/math/delimited.png | bin | 22993 -> 23111 bytes | |||
| -rw-r--r-- | tests/ref/math/frac.png | bin | 24197 -> 24117 bytes | |||
| -rw-r--r-- | tests/ref/math/matrix.png | bin | 25677 -> 25872 bytes | |||
| -rw-r--r-- | tests/ref/math/multiline.png | bin | 13698 -> 13479 bytes | |||
| -rw-r--r-- | tests/ref/math/numbering.png | bin | 12028 -> 12019 bytes | |||
| -rw-r--r-- | tests/ref/math/op.png | bin | 6817 -> 6730 bytes | |||
| -rw-r--r-- | tests/ref/math/opticalsize.png | bin | 0 -> 6897 bytes | |||
| -rw-r--r-- | tests/ref/math/root.png | bin | 12274 -> 12575 bytes | |||
| -rw-r--r-- | tests/ref/math/spacing.png | bin | 17618 -> 18271 bytes | |||
| -rw-r--r-- | tests/ref/math/style.png | bin | 27879 -> 23804 bytes | |||
| -rw-r--r-- | tests/ref/math/syntax.png | bin | 4850 -> 4977 bytes | |||
| -rw-r--r-- | tests/ref/math/unbalanced.png | bin | 2482 -> 2443 bytes | |||
| -rw-r--r-- | tests/ref/math/underover.png | bin | 4819 -> 4797 bytes | |||
| -rw-r--r-- | tests/ref/meta/figure.png | bin | 59579 -> 49894 bytes | |||
| -rw-r--r-- | tests/typ/math/op.typ | 1 | ||||
| -rw-r--r-- | tests/typ/math/opticalsize.typ | 30 |
24 files changed, 31 insertions, 0 deletions
diff --git a/tests/ref/bugs/math-realize.png b/tests/ref/bugs/math-realize.png Binary files differindex 4f5b887e..2a17f629 100644 --- a/tests/ref/bugs/math-realize.png +++ b/tests/ref/bugs/math-realize.png diff --git a/tests/ref/compiler/content-field.png b/tests/ref/compiler/content-field.png Binary files differindex d2f696b4..cef3274a 100644 --- a/tests/ref/compiler/content-field.png +++ b/tests/ref/compiler/content-field.png diff --git a/tests/ref/layout/enum-numbering.png b/tests/ref/layout/enum-numbering.png Binary files differindex 28755dcb..e1b2103b 100644 --- a/tests/ref/layout/enum-numbering.png +++ b/tests/ref/layout/enum-numbering.png diff --git a/tests/ref/math/accent.png b/tests/ref/math/accent.png Binary files differindex 11de9e28..5a963b38 100644 --- a/tests/ref/math/accent.png +++ b/tests/ref/math/accent.png diff --git a/tests/ref/math/attach.png b/tests/ref/math/attach.png Binary files differindex 894f553f..9d01e7bf 100644 --- a/tests/ref/math/attach.png +++ b/tests/ref/math/attach.png diff --git a/tests/ref/math/cancel.png b/tests/ref/math/cancel.png Binary files differindex 96b29c45..571edcc2 100644 --- a/tests/ref/math/cancel.png +++ b/tests/ref/math/cancel.png diff --git a/tests/ref/math/cases.png b/tests/ref/math/cases.png Binary files differindex c9eca24c..c824a801 100644 --- a/tests/ref/math/cases.png +++ b/tests/ref/math/cases.png diff --git a/tests/ref/math/content.png b/tests/ref/math/content.png Binary files differindex f7af513b..ce727e66 100644 --- a/tests/ref/math/content.png +++ b/tests/ref/math/content.png diff --git a/tests/ref/math/delimited.png b/tests/ref/math/delimited.png Binary files differindex e9f6e2c1..31d15b41 100644 --- a/tests/ref/math/delimited.png +++ b/tests/ref/math/delimited.png diff --git a/tests/ref/math/frac.png b/tests/ref/math/frac.png Binary files differindex a116c876..80327578 100644 --- a/tests/ref/math/frac.png +++ b/tests/ref/math/frac.png diff --git a/tests/ref/math/matrix.png b/tests/ref/math/matrix.png Binary files differindex d3d2681c..bf90e712 100644 --- a/tests/ref/math/matrix.png +++ b/tests/ref/math/matrix.png diff --git a/tests/ref/math/multiline.png b/tests/ref/math/multiline.png Binary files differindex ae847434..84dcb87d 100644 --- a/tests/ref/math/multiline.png +++ b/tests/ref/math/multiline.png diff --git a/tests/ref/math/numbering.png b/tests/ref/math/numbering.png Binary files differindex 6256310f..3952dea0 100644 --- a/tests/ref/math/numbering.png +++ b/tests/ref/math/numbering.png diff --git a/tests/ref/math/op.png b/tests/ref/math/op.png Binary files differindex 08d8b93b..15c7329d 100644 --- a/tests/ref/math/op.png +++ b/tests/ref/math/op.png diff --git a/tests/ref/math/opticalsize.png b/tests/ref/math/opticalsize.png Binary files differnew file mode 100644 index 00000000..9fec5520 --- /dev/null +++ b/tests/ref/math/opticalsize.png diff --git a/tests/ref/math/root.png b/tests/ref/math/root.png Binary files differindex 8a6a6e13..017582a4 100644 --- a/tests/ref/math/root.png +++ b/tests/ref/math/root.png diff --git a/tests/ref/math/spacing.png b/tests/ref/math/spacing.png Binary files differindex 2fd30e53..abcfae80 100644 --- a/tests/ref/math/spacing.png +++ b/tests/ref/math/spacing.png diff --git a/tests/ref/math/style.png b/tests/ref/math/style.png Binary files differindex 39ecc441..cec04ba5 100644 --- a/tests/ref/math/style.png +++ b/tests/ref/math/style.png diff --git a/tests/ref/math/syntax.png b/tests/ref/math/syntax.png Binary files differindex 3d09723d..028e21d6 100644 --- a/tests/ref/math/syntax.png +++ b/tests/ref/math/syntax.png diff --git a/tests/ref/math/unbalanced.png b/tests/ref/math/unbalanced.png Binary files differindex 5b4d7736..de0ee1db 100644 --- a/tests/ref/math/unbalanced.png +++ b/tests/ref/math/unbalanced.png diff --git a/tests/ref/math/underover.png b/tests/ref/math/underover.png Binary files differindex 5c825b18..24c96b21 100644 --- a/tests/ref/math/underover.png +++ b/tests/ref/math/underover.png diff --git a/tests/ref/meta/figure.png b/tests/ref/meta/figure.png Binary files differindex 524f6cfd..90f59d14 100644 --- a/tests/ref/meta/figure.png +++ b/tests/ref/meta/figure.png diff --git a/tests/typ/math/op.typ b/tests/typ/math/op.typ index 08395de0..2a0f84fc 100644 --- a/tests/typ/math/op.typ +++ b/tests/typ/math/op.typ @@ -11,6 +11,7 @@ $ &sin x + log_2 x \ --- // Test scripts vs limits. +#set page(width: auto) #set text(font: "New Computer Modern") Discuss $lim_(n->oo) 1/n$ now. $ lim_(n->infinity) 1/n = 0 $ diff --git a/tests/typ/math/opticalsize.typ b/tests/typ/math/opticalsize.typ new file mode 100644 index 00000000..c96e4a32 --- /dev/null +++ b/tests/typ/math/opticalsize.typ @@ -0,0 +1,30 @@ +// test optical sized variants in sub/superscripts + +--- + +// Test transition from script to scriptscript. +#[ +#set text(size:20pt) +$ e^(e^(e^(e))) $ +] +A large number: $e^(e^(e^(e)))$. + +--- +// 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) $ + +--- +// Test prime superscript on large symbol +$ scripts(sum_(k in NN))^prime 1/k^2 $ +$sum_(k in NN)^prime 1/k^2$ + +--- +// Test script-script in a fraction. +$ 1/(x^A) $ +#[#set text(size:18pt); $1/(x^A)$] vs. #[#set text(size:14pt); $x^A$] + |
