1

I have the following problem. At the moment I have this code:

\documentclass{article}

\begin{document}
\tableofcontents

\subsection{section}
\subsubsection{subsection}
\paragraph{subsubsection}
\subparagraph{paragraph}

\end{document} 

Compiled the toc looks like this:

enter image description here

But I need it like this:

enter image description here

So I want, that the paragraphs list as subsubsections, the subsubsections list as subsections and the subsections list as sections in my toc.

1 Answers1

0

According to Werner's answer, you can redefine your \subsection command

\renewcommand{\thesubsection}{\arabic{subsection}}

and then with

\documentclass{article}

\renewcommand{\thesubsection}{\arabic{subsection}}

\begin{document}

\tableofcontents

\subsection{section}
\subsubsection{subsection}
\paragraph{subsubsection}
\subparagraph{paragraph}

\end{document}

you get

subsection toc

zyy
  • 2,146