I would like to create a table of contents:
1 - Titulo Tal
1.1 - Subtitulo
1.1.2 - outro
2 - Outro titulo
2.1 - subtitulo
etc...
I'd like something automatic, but I have no idea where to start. Could someone give me an idea or direction for me to study and try to do?