For all sections (or even subsections) in my document (beamer presentation), I want to show the page number only relative to the (sub)section, and also the total number of pages per (sub)section. So in the end, in my footer, I can show sth like:
"Sec 1.2 page 3 / 10"
I found this to reset the page number per section. This does not work for Beamer, though. But I think the resetting of the page number is not too difficult to fix. I guess I could just use \AtBeginSubsection
in some way.
I don't really know how to count the pages per each (sub)section, though. Is it possible to create a separate counter per (sub)section? How? And then I would need to collect all these counters, and store their last value to a file, and import that file. Sounds reasonably simple, but my Latex knowledge is lacking too much.
This would do it manually for two sections. But I need to have it automatically for any number of (sub)sections. (Or maybe I misunderstand the answer?)
Here are a lot of references how to count page numbers, and many packages on CTAN are linked, like totcount, pageslts, totpages, lastpage, etc, but from looking through them, it doesn't look like they help me (or at least I don't know how).