Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing Numbers are not unique (+ solution) #43

Open
f4lco opened this issue Jul 30, 2019 · 1 comment
Open

Listing Numbers are not unique (+ solution) #43

f4lco opened this issue Jul 30, 2019 · 1 comment

Comments

@f4lco
Copy link
Contributor

f4lco commented Jul 30, 2019

An exemplary "list of listings" using the current template appears as follows:

image

The listing numbering is restarted per chapter, however, the chapter number is not part of the counter. Hence, there are two listings with identifier "1".
The reader should be able to tell apart different listings by their number:

image

I worked around this issue the following way:

\usepackage{chngcntr}

\begin{document}

\counterwithin{lstlisting}{chapter}
...

and think this would be a nice addition to the template, but I am not sure how to integrate it.
With the change, the numbering of listings is consistent with the numbering of figures and tables.

@krono
Copy link
Owner

krono commented Jun 11, 2024

There's a assumption in the code at some point where the couter is specifically set up that way. I ought to probably fix that somewhen ( it bit @onsetsu already)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants