EpicEricEE / typst-plugins

My plugins and packages for typst
MIT License
28 stars 1 forks source link

Footnotes rendering on wrong pages #6

Closed katharinathoele closed 6 months ago

katharinathoele commented 6 months ago

Hello! I am using droplet to create dropped capitals at the beginning of sections of my document. I don't want to have one every paragraph to have a dropped capital as I feel like that would clutter the page. Now I have noticed that footnotes I insert into the text only appear after the dropcap function has been closed. This results in footnotes appearing on the wrong pages, as shown in Figure 1:

fig 1 Figure 1: Footnote on the wrong page

Corresponding MWE:


#set page("a6")
#show par: set block(spacing: 0.65em)
#set par(first-line-indent: 1em)

#dropcap(
)[foo#footnote[bar] #lorem(50)

#lorem(50)

#lorem(50)
]

I have thought about circumventing this problem by closing the function after the first paragraph however there's two issues with that: A) some paragraphs span multiple pages. B) after a paragraph enclosed in a dropcap function, the paragraph spacing and first line indent do not work as I specified it should in the MWE.

The package is otherwise really good and I'd hate for this to be a blemish on it's otherwise pristine body.

Many thanks in advance

EpicEricEE commented 6 months ago

There is probably not much I can do here, as that's an issue in typst itself, see typst/typst#2449

katharinathoele commented 6 months ago

Ah, sorry to have bothered you then. Thank you regardless for the reply.