From here, I have the fakesection, like this
\newcommand{\fakesection}[1]{%
\par\refstepcounter{section}% Increase section counter
\sectionmark{#1}% Add section mark (header)
\addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}% Add section to ToC
% Add more content here, if needed.
}
which servers the purpose of not having the section tile.
MWE
\documentclass[a4paper,12pt]{article}
\usepackage{hyperref}
\newcommand{\fakesection}[1]{%
\par\refstepcounter{section}% Increase section counter
%\sectionmark{#1}% Add section mark (header)
\addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}% Add section to ToC
% Add more content here, if needed.
}
\begin{document}
\tableofcontents
\part{ Basic }
\fakesection{My section 08}
\fakesection{My section 09}
\fakesection{My section 10}
\fakesection{My section 11}
\part{ Intermediate }
\fakesection{My section 08}
\fakesection{My section 09}
\fakesection{My section 10}
\fakesection{My section 11}
\part{ Advanced }
\fakesection{My section 08}
\fakesection{My section 09}
\fakesection{My section 10}
\fakesection{My section 11}
\end{document}
How can I remove the section counters in the toc too? (keeping the title)
That is, the table of contents page should look like this, without the 1,2,3,4,etc...
Thanks.
\protect\numberline{....}, play with it. – daleif Jul 29 '18 at 16:04