Heydo!
I need to include the first pages to TOC and NOT include page numbers. How I can I achieve this? \listoffigures and \listoftables makes a dotted line and a page number to TOC which I want to get rid of. I've searched for a number of questions but I always find answers to remove page number IN toc, which I have done already.
My table of contents should look like this:
ABSTRACT
LIST OF FIGURES
LIST OF TABLES
CONTENTS
CHAPTER 1...................................6
CHAPTER 2...................................7
Minimal working example:
% docmentclass
\documentclass[12pt]{article}
% table of contents package
\usepackage{tocloft}
% package to enable commands after pages
\usepackage{afterpage}
% dots to TOC
\AtBeginDocument{
\renewcommand{\cftsecleader}{\cftdotfill{\cftsecdotsep}}
\renewcommand\cftsecdotsep{\cftdot}
\renewcommand\cftsubsecdotsep{\cftdot}
\renewcommand{\cftfigleader}{\cftdotfill{\cftsecdotsep}}
\renewcommand{\cfttableader}{\cftdotfill{\cftsecdotsep}}
}
%remove incremental number from TOC
\let\oldsection\section
\newcommand{
\abstractsection}[1]{
\newpage
\oldsection*{#1}
\addcontentsline{toc}{section}{#1}
}
%for captions to show up in lof and lot
\usepackage{caption}
\begin{document}
%frontcover
\begin{center}
\vspace*{5cm}
\normalsize{Tuomas-Matti Soikkeli} \\
\large{Front Cover}
\vfill{}
\end{center}
%abstract
\abstractsection{ABSTRACT}
Some abstract content
\newpage
%list of figures and list of tables
\listoffigures
\addcontentsline{toc}{section}{LIST OF FIGURES}
\listoftables
\addcontentsline{toc}{section}{LIST OF TABLES}
\newpage
%ToC
\tableofcontents
\addcontentsline{toc}{section}{CONTENTS}
\newpage
%contents
\section{FIRST CHAPTER}
\begin{figure}[H]
figure
\caption[EXAMPLE FIGURE]{example figure}
\end{figure}
\section{SECOND CHAPTER}
\begin{table}[h]
table
\caption[EXAMPLE TABLE]{example table}
\end{table}
\end{document}
Ends up being: