I am new to LaTeX and I am writing my thesis atm.
I want to have a separate title page for each new section where it states the Section number, title and a few lines explaining the contents of the section. I have google'd around but can only find solutions for people using documentclass book/report. But I am using documentclass article. I have also tried using \usepackage{titlesec}.
I want to have it like this: Chapter's title page before every chapter, and every chapter with its title
I have tried using the following code in my main.tex but it gave error as I could not use the \chapter commands and I tried to substitute them with \section but it did not work.
\titleclass{\chapter}{page}
\assignpagestyle{\chapter}{empty}
\titleformat{\chapter}
[display]
{\centering\Huge\bfseries}
{\chaptername\ \thechapter}
{0pt}
{\huge}
[\clearpage]
Help is much appreciated!
\documentclassand ending with\end{document}which reproduces the problem? – Bernard Mar 09 '20 at 21:25bookis a much better choice of document class than article. In you insist on using\documentclass{article}but please post a minimal working example so that people can see your setup. – Mar 10 '20 at 01:12book class (book, scrbook, memoir) and change\sections to\chapters and\subsections to\sections`, ... and probably use also \part for the first level. – Fran Mar 10 '20 at 04:19\documentclass[a4paper, 12pt, titlepage]{article} \usepackage[utf8]{inputenc} \usepackage[swedish]{babel} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[export]{adjustbox} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{nameref} \usepackage{enumitem}
– bakayaru Mar 10 '20 at 20:03