in the report class I structured my document in chapters, sections and subsections. All my sections are called "Task [number]".
At the moment all my sections headings are like "Task 2" and I want them to be that way. But I use \section*{}
so they are not automatically numbered. Otherwise it looks strange to have the heading "1.2 Task 2". Also the sections are not in the table of content.
Do you have any idea how to not show the chapter counter in the heading and put the section counter behind the section title? And also how to show that in the table of contents?
I suppose it works with \renewenvironment{section}
somehow but this also changes the default font and text size.
\thesection
inside arguments of\titleformat
), but since the description of the desired result isn't very precise...