How can I make the paragraph following one with a dropcap respect the first line indent setting?

A while back I asked for help to create a global rule for dropcaps using the Droplet package, which was solved for me by @vmartel08. However, when using it in my project, I found that the first-line indent on the following paragraph was not respected. Here’s an MWE:

set page(paper: "a7")
#import "@preview/droplet:0.3.1": dropcap
#set par(first-line-indent: 1em, spacing: 0.65em, justify: true)

// Keep original dropcap
#let orig-dropcap = dropcap

// My dropcap with my defaults
#let dropcap(body) = orig-dropcap(
  height: 3,
  gap: 1pt,
  hanging-indent: 0em,
  body,
)

= Heading
#dropcap[#lorem(20)]

#lorem(13)

#lorem(20)

How can the code be modified so that the second paragraph has the first-line indent like the third (and subsequent) paragraphs.

Many thanks.

:slight_smile:
Mark

Try

= Heading
#dropcap[#lorem(20)]

#h(2em) #lorem(13))

#lorem(20)

From How to have first line indent in a new paragraph after a math block? - #2 by miles-1

This Paragraph Function – Typst Documentation may be the reason:

  • Certain paragraph styling like first-line-indent will only apply to proper paragraphs, not any text. Similarly, par show rules of course only trigger on paragraphs.
1 Like