General ⇒ how to reset custom counter for every page
how to reset custom counter for every page
Currently I'm editing the package sides. I want to number the lines in the
script like this <page>.<lineN> where page of course is the standard page counter
and lineN my own, already implemented counter of lines.
The thing is that I'd like lineN to reset to 1 at the start of every new page in the
output document.
I've looked at \numberwithin, but I never got it to work and a package named chappg
but it seems to do the opposite - reset page in every chapter.
Any suggestions?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
how to reset custom counter for every page
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10