touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/
MIT License
791 stars 18 forks source link

how to stop slide counting? #87

Closed rveltz closed 1 month ago

rveltz commented 1 month ago

Hi!

How can I stop the slide counter from a specific slide? (say)

Thank you

= Appendix
== Bibliography<touying:hidden>
// stop counting from here
OrangeX4 commented 1 month ago

show: appendix

---Original--- From: "Romain @.> Date: Sun, Sep 29, 2024 20:50 PM To: @.>; Cc: @.***>; Subject: [touying-typ/touying] how to stop slide counting? (Issue #87)

Hi!

How can I stop the slide counter from a specific slide? (say)

Thank you = Appendix == Bibliography<touying:hidden> // stop counting from here
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rveltz commented 1 month ago

It does not make any change:

...

#show: appendix

= Appendix//<touying:hidden>

Please pay attention to the current slide number.

==  Notes<touying:hidden>
bla

== Bibliography<touying:hidden>
#bibliography("hdr.bib", title: none, style: "apa")
rveltz commented 1 month ago
Screenshot 2024-09-29 at 3 27 06 PM
OrangeX4 commented 1 month ago

Can you provide a minimally reproducible example?

rveltz commented 1 month ago

I sent you an email.

OrangeX4 commented 1 month ago

I checked the email you sent and I think it worked correctly.

In touying, only last-slide-counter will be frozen, while slide-counter will not be frozen, which is expected.

Maybe you were confused by your own #utils.slide-counter.update(), I don't quite understand why you need to manually change slide-counter.

rveltz commented 1 month ago

Yes it worked well in the end