I use this document class: \documentclass[a4paper,12pt]{article}
.
Can someone please help me to form such style of table of contents.
I need:
- the arabic numbering everywhere in the toc (now "parts" are roman)
- resetting of section number counter in each part (now they just keep getting incremented)
- to make part number with a dot to preceed the section number (now only sections numbers are displayed)
- indentation of sections relative to parts, identation of subsections relative to sections (now sections are directly under the parts)
It should look like this:
1 Part Name
1.1 Section Name
1.2 Section Name
2 Part Name
2.1 Section Name
2.2 Section Name
2.3 Section Name
2.3.1 Subsection Name
Best Answer
There are a couple of problems here:
\chapter
instead of\part
and a lot of your problems with disappear.\part
with the base LaTeX article class. If you want to stick with the base LaTeX document classes, use report rather than article if the document truly does contain parts. You can use the report class for a document that does not contain parts (highest entity is a\chapter
).