Skip to content

Commit

Permalink
Add workaround for Typst with punctuation in hanging indent
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Biedert <github@ericbiedert.de>
  • Loading branch information
alerque and EpicEricEE committed Dec 30, 2023
1 parent 5fb0196 commit e45360c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data/dropcaps/typst.typ
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.
]

// Unable to complete per https://github.com/EpicEricEE/typst-plugins/issues/2
// Letter workaround per https://github.com/EpicEricEE/typst-plugins/issues/2
#dropcap(
justify: true,
hanging-indent: 0pt,
transform: letter => [#place(dx: -0.4em, sym.quote.l)#letter]
)[
N#smallcaps[ope says the typesetter]," dropcaps must be characters.
See upstream issue.
N#smallcaps[ever say never]," the saying goes.
Someday your dropcap may include leading punctuation _and_ a hanging indent.
No worries.
All you have to do is guess and fudge.
]

#dropcap(
Expand Down

0 comments on commit e45360c

Please sign in to comment.