0

I want to use section numbers with the following sequence:

1 Section

1.1 Sub Section

1.1.1 Sub Sub Section

1.1.1.1 Sub Sub Sub Section

I have found a way to do this using the following code but when I am getting to the 1.1.1.1 level the text is following on from the title rather than below it. I'm guessing it is to do with the fact i use \paragraph to get the section numbering I want but I don't know how to fix it.

I have tried adding various \vspace commands in but nothing I have tried has worked so far.

\documentclass{article}
\usepackage[utf8]{inputenc}

\setcounter{secnumdepth}{5} %allows for sections 1.x where x = {x}
\begin{document}
\section{Section}
Some text.
\subsection{Sub Section}
Some text.
\subsubsection{Sub Sub Section}
Some text.
\paragraph{Sub Sub Sub Section}
Some text.

\end{document}

JM1553
  • 13
  • 1
    The last one is a paragraph, not a section, that's why. For the sections it doesn't happen. What a \paragraph precisely does depends on the document class, and on the packages you load. –  Nov 14 '19 at 15:06
  • Thanks @campa, I had searched but hadn't come across this! That's fixed it. – JM1553 Nov 14 '19 at 15:18

0 Answers0