Table of contents difficulty


I created a table of contents page and I wanted the chapters to have the chapter number and the underlying subchapters to have their page number listed. However, I’m unable to get this to work correctly. The <$p> just prints the current page number meaning that if the content page is number eight, all of them will have the number eight. If I change the chapters to <$n>, the chapters will number themselves one through whatever as expected. But the subchapters will remain with the page number eight.

I don’t know why they are not listing with the correct page number.

I hope this is understandable. Would appreciate any help.

Thank you.