[Tex/LaTex] How to add more indentation for section in table of contents

horizontal alignmentindentationtable of contents

I would like to move sections in my TOC more to the right =) The picture will explain all:

enter image description here

Here is my code so far (This code will give me the upper part in the picture):

\newgeometry{hmargin={3cm,3cm},vmargin={3cm,4cm}}
% SISÄLLYSLUETTELO

\setlength{\cftsecindent}{2cm}
\dottedcontents{section}[1.5em]{}{1.3em}{.6em}
\renewcommand{\contentsname}{Sisällysluettelo}

\doublespacing
\large \tableofcontents
\singlespacing

\restoregeometry 

Now even if I try to modify the length in \setlength{\cftsecindent}{2cm} the section stays where it is…any ideas why? What am I doing wrong x) Thank you for your help! =)

UPDATE =) If I remove the \dottedcontents{section}[1.5em]{}{1.3em}{.6em} from the code above, I get this:

enter image description here

Now the subsections stay where they are and section goes to bold :/

Best Answer

\documentclass{article}
\usepackage{titletoc,tocloft}
\setlength{\cftsubsecindent}{2cm}
\setlength{\cftsubsubsecindent}{4cm}
\dottedcontents{section}[1.5em]{}{1.3em}{.6em}

\begin{document}
\tableofcontents
\section{foo}
\subsection{bar}
\subsubsection{baz}
foobar
\end{document}

enter image description here

Related Question