knuesel / typst-minideck

Simple dynamic slides for typst
MIT License
9 stars 1 forks source link

#footnote increasing counter for each overlay #1

Open cristobaltapia opened 1 month ago

cristobaltapia commented 1 month ago

Hi, thanks for the nice library!

I have tested both Polylux and Touying, and for some reason I like minideck more. :)

As the title describes it, when using #footnote(...) together with #show: pause the number of the footnote is increased for each overlay. I guess an easy solution is to not use numbers for the footnotes, but was wondering if this is something that can be fixed, so that it works with numbers too?

Cheers!

knuesel commented 1 month ago

Glad you like it! I think there's the same issue for equation numbers, as described in this blog post: https://laurmaedje.github.io/posts/frozen-state/

It seems simple enough to fix in individual cases (for footnotes, for equations...) by saving and restoring counters, but a general solution will have to wait for https://github.com/typst/typst/issues/1841

I'll see if I can put the fix for footnotes and equations in the next release (if the impact on performance is OK).

cristobaltapia commented 1 month ago

Thanks for that reference to the issue in typst. I see that it is a problem that should be best addressed in typst itself. When that issue is resolved, slides will be much better, as there will be less problems with all that is numbered.

I'll see if I can put the fix for footnotes and equations in the next release (if the impact on performance is OK).

Thanks. It is also currently not a big problem for me. I still use beamer for most of my courses at the university, but I hope that I can soon start transitioning to typst (it is so much less time wasted in compilation!).