How can I change the settings of my table of contents, so that the sections and subsections are not indented as shown in the second picture. I would also like to center the title of the Contents. I am using the
This is an approach which uses the »tocstyle« package with the
You can compare with the
N.B.: You will get a warning about the alpha status of the package. So far is has not caused any major problems for me.
Here's a solution using
I have also used the command
to center the table of contents title.
Here's the code:
For further reading, see How to modify the indentation before sectioning titles in the table of contents?.