Problem with numbering of listings in a book
Posted by
siddjain on
URL: https://discuss.asciidoctor.org/Problem-with-numbering-of-listings-in-a-book-tp7663.html
I am writing a book. I use source code blocks as described here:
https://asciidoctor.org/docs/asciidoc-writers-guide/#listing-and-source-code-blocksbut their numbering does not reset when I begin a new chapter.
In every chapter preface I have a
:listing: 0
Is there some other attribute I need to set to reset the counter of code blocks?