typst/tests/typ/text/shift.typ

20 lines
566 B
Plaintext
Raw Normal View History

// Test sub- and superscipt shifts.
---
2022-11-18 17:33:06 +03:00
#table(
columns: 3,
[Typo.], [Fallb.], [Synth],
2023-02-12 20:58:39 +03:00
[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))]],
)
---
#set super(typographic: false, baseline: -0.25em, size: 0.7em)
2022-11-18 17:33:06 +03:00
n#super[1], n#sub[2], ... n#super[N]
---
#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\]]))) \