I don't get page numbers of sections in the table of content correctly when I use the package lstlisting. I'm using the documentclass article. I need to use this class, not report.
Any ideas how this can be fixed?
|
I don't get page numbers of sections in the table of content correctly when I use the package Any ideas how this can be fixed? |
||||
| show 1 more comment |
|
Based on the comments I suspect that you are not running latex enough times. Compiling the example below the first time produces:
But upon subsequent run (assuming that you do not delete the temporary files that are generated upon the first run) you get:
|
|||||
|
latexa few times? – Kerrek SB Jan 6 '12 at 3:04latex. As such, it usually takes (at least) two separate runs in order for the entries to be there and correct. If this is not the case, edit your post and include a minimal working example (MWE) that illustrates your problem. – Werner Jan 6 '12 at 18:46