alexanderdavide / slidev-theme-academic

Academic presentations with Slidev made simple 🎓
https://slidev-theme-academic.alexeble.de
MIT License
99 stars 31 forks source link

pagination doesn't work when exporting #17

Open hzkonor opened 10 months ago

hzkonor commented 10 months ago

Hello

When running slidev export or npx slidev export, pagination doesn't work : it's always displaying "1/" on every slide. It works well when running locally or with vercel.

Thanks for your help (and for this template)

ozfox commented 10 months ago

Hi @hzkonor

Stumbled across the same problem right now. This themes components/Pagination.vue makes use of slidev's builtin components SlideCurrentNo and SlidesTotal. It seems it is not a bug of this theme but a problem of the slidev export.

Maybe you can use the slidev export --per-slide option which fixes the pagination for me but will break cross slide links and TOC in PDF according to the help.

alexanderdavide commented 10 months ago

Hey @hzkonor,

thanks for bringing this issue to my attention.

My first thoughts match with what @ozfox said. Thanks for jumping in. With the current implementation, I probably can't do anything about this. I'll investigate alternatives when I find the time for it. Actually, this should be soon.

alexanderdavide commented 9 months ago

Hey @hzkonor and @ozfox,

which version of of @slidev/cli are you using? Does the issue still persist with v0.46.1? I've just tried to reproduce but found the export to be working fine.

hzkonor commented 9 months ago

which version of of @slidev/cli are you using? Does the issue still persist with v0.46.1? I've just tried to reproduce but found the export to be working fine.

I used the example template of the repository to test and the issue still persist with v0.46.1, the workaround with slidev export --per-slide works though (even if it breaks TOCs links).