0

I'm trying to recreate the level system in these 2 images in my document This level system I can't seem to create the one above because I don't know the command that created "Chapter 1" and this one

I can't seem to create the one above because I don't know how to go beyond "subsubsection" so how is it possible to create a fourth level?

PS. I'm using \documentclass[]{article}

  • How about using e.g. a book document class, which has chapters? – user121799 Jun 11 at 16:47
  • @marmot can you show a small example of you recreating the above. because if it can then it might just be what im looking for – Zyzzx Jun 11 at 16:57
  • \documentclass{book} \setcounter{secnumdepth}{3} \begin{document} \chapter{Introduction} \section{Introduction} \subsection{Background} \subsubsection{GUI} \end{document} – user121799 Jun 11 at 17:01
  • 1
    @marmot I did not see your comment until I created my answer. – Dr. Manuel Kuehner Jun 11 at 17:04
3

For your next question, have a look at I've just been asked to write a minimal example, what is that?!

Solution 1

Changing the number of numbered levels (down to \paragraph).

\documentclass{article}
\setcounter{secnumdepth}{4}

\begin{document}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\paragraph{paragraph}
\end{document}

You may have a look at the titlesec package if you want to change the formatting of the \paragraph heading level.

Solution 2

Using a different document class (book) which provides an additional level (\chapter).

\documentclass{book}
\setcounter{secnumdepth}{4}

\begin{document}
\chapter{chapter}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\end{document}
  • does this recreate the numbering system above? can you provide the compilation of the above with the same things I provided in my question, please? note that all sections below chapter have to follow the same numbering as a chapter please also note that my questions may seem rudimentary but that's because I've never used the document type book before. – Zyzzx Jun 11 at 17:07
  • @Zyzzx You can test it yourself :) (I do not have time now at the moment, but I am pretty sura that this is what you want). Normally you should provide the code that is necessary to reproduce your problem, have a look at tex.meta.stackexchange.com/questions/228. – Dr. Manuel Kuehner Jun 11 at 17:09
  • 1
    @Zyzzx The book class works exactly the same way as article, except you get the extra top level \chapter macro. For example you make a collection of articles into a book, just by dong something like \chapter{one} \input article1.tex \chapter{two} \input article2.tex etc. – alephzero Jun 11 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.