diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/suite/text/shift.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/text/shift.typ')
| -rw-r--r-- | tests/suite/text/shift.typ | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/suite/text/shift.typ b/tests/suite/text/shift.typ new file mode 100644 index 00000000..090f6ee8 --- /dev/null +++ b/tests/suite/text/shift.typ @@ -0,0 +1,19 @@ +// Test sub- and superscipt shifts. + +--- sub-super --- +#table( + columns: 3, + [Typo.], [Fallb.], [Synth], + [x#super[1]], [x#super[5n]], [x#super[2 #box(square(size: 6pt))]], + [x#sub[1]], [x#sub[5n]], [x#sub[2 #box(square(size: 6pt))]], +) + +--- sub-super-non-typographic --- +#set super(typographic: false, baseline: -0.25em, size: 0.7em) +n#super[1], n#sub[2], ... n#super[N] + +--- super-underline --- +#set underline(stroke: 0.5pt, offset: 0.15em) +#underline[The claim#super[\[4\]]] has been disputed. \ +The claim#super[#underline[\[4\]]] has been disputed. \ +It really has been#super(box(text(baseline: 0pt, underline[\[4\]]))) \ |
