I'm trying to add unnumbered subsubsections to my ToC while keeping it properly indented and without removing the title numbers within the text. Here is the example and code of what I have but don't want:
\documentclass[11pt]{article}
\usepackage{tocloft}
\begin{document}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\cftpagenumbersoff{part} % suppress page number in toc for parts
\tableofcontents
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\renewcommand{\thesubsection}
{\arabic{subsection}}
\renewcommand{\thesubsubsection}
{\Alph{subsubsection}}
\newpage
\part*{Part}
\addcontentsline{toc}{part}{Part}
\section{Section1}
\section{Section2}
\subsection{Subsection1}
\subsubsection{SubsubsectionA}
\subsubsection{SubsubsectionB}
\section{Section3}
\end{document}
When I remove the subsubsection numbering with \setcounter{secnumdepth}{2}
, it also removes the indent, flushing it even with the subsection. Below is that result.
I'd also like to avoid the above solution as it removes the title numbers within the text, which I want to keep. Below is the ideal solution I'd like to achieve: A properly indented ToC that includes the subsubsection without section number BUT still includes the section number within the text.
If that's impossible or too difficult, then simply changing the indent space between the subsubsection number and the title would be fine, as in:
or