My subsection title continues in the 2nd line with an indent in the beginning. I want it to be aligned with the first line of the subsection title. Any suggestions?

Solution should not contain \usepackage{tocloft} since this interferes with previous settings


 \renewcommand*\contentsname{Table of Contents}

 \subsection{Long title that spans over two lines}


2 Answers 2


According to ToC: How to no-indent the second line of large entries? :


\renewcommand*\contentsname{Table of Contents}



 \subsection{Long title that spans over two lines Long title that spans over two lines}

  • This works, however I do not want the title of the TOC to be left aligned, which happens if using this command. Is there any other possibility to change it only for the content of toc and not the title?
    – Peter
    Aug 14, 2018 at 13:39
  • Can't you use this trick : tex.stackexchange.com/questions/142445/… ?
    – tobiasBora
    Aug 14, 2018 at 13:59
  • since titles are already centered, because of the apa6 document class, i am searching for a solution which does not interfere with my previous settings. Thanks though for the suggestion!
    – Peter
    Aug 14, 2018 at 14:16
  • Ok, sorry I don't know the apa6 document class, and I don't manage to compile your MWE on my distribution because I get an error ERROR: Undefined control sequence. <argument> \@shorttitle ... Sorry
    – tobiasBora
    Aug 14, 2018 at 17:22
   \ifnum \c@tocdepth >\z@
   \addvspace{1.0em \@plus\p@}%
    \parindent \z@ \rightskip \@pnumwidth
    \parfillskip -\@pnumwidth
    \leavevmode \bfseries
     \hskip -\leftskip
     #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .