[size=14.5455px]I'm using the report document class. Here's my code:
[size=14.5455px]On running this, I get a lot of errors like the following:
[size=14.5455px]But when I change the ordering of some lines to the following:
[size=14.5455px]There are no errors but of course the \contentsname has not been changed before adding to thetoc