This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-07-26 11:55:16 +02:00

898 B

sidebar_position
sidebar_position
1

Touying Counters

The utils of Touying are placed under the utils namespace, including all counters.

Slide Counter

You can access the slide counter using utils.slide-counter and display the current slide number with utils.slide-counter.display().

Last-Slide Counter

In some cases, we may need to add an appendix to slides, leading to the requirement to freeze the last-slide counter. Therefore, a second counter is maintained here.

You can use utils.last-slide-number to display the number of the last slide before the appendix.

Progress

You can use

#utils.touying-progress(ratio => ..)

to show the current progress.

Appendix

You can use

#show: appendix

= Appendix

appendix

syntax to enter the appendix.

Additionally, label <touying:unoutlined> can be used to hide the appendix section from the outline.