# How can I add a dotted horizontal line for a section on my content page?

I would like to add a dotted line after my "List of Figures" , "List of Tables" , "Discussion" , "Conclusion"... like there is for subsections 1.1. How can I achieve this?

% Table of contents
\tableofcontents\numberline{}
\thispagestyle{empty}

\newpage

\listoffigures

\listoftables\numberline{}

\pagenumbering{roman}
\cleardoublepage


Thank you.

I would like to add a dotted line after my "List of Figures" , "List of Tables", "Discussion", "Conclusion"...

You should (a) load the tocloft package with the option titles and (b) issue the instruction \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}.

\documentclass{article}

\usepackage[nottoc]{tocbibind} % make LoF and LoT show up in ToC

\usepackage[titles]{tocloft}

\begin{document}
\pagenumbering{roman}

\tableofcontents
\listoffigures
\listoftables

\clearpage
\pagenumbering{arabic}

\section{Theory and Objectives}
\subsection{Theory}
\subsection{Objectives}
\section{Procedure, Materials and Methods}

\clearpage
\section{Results\slash Data}
\section{Calculations}

\end{document}


Only if you can use the KOMA-Script class scrartcl: There is an option to add the list of tables and the list of figures to the ToC and another option to get the dotted line for section entries:

\documentclass[
listof=totoc,% lists in toc
toc=sectionentrywithdots% dotted line for sections in toc
]{scrartcl}

\begin{document}
\pagenumbering{roman}
\tableofcontents
\clearpage
\listoffigures
\listoftables

\cleardoublepage
\pagenumbering{arabic}
\section{Theory and Objectives}
\subsection{Theory}
\subsection{Objectives}
\section{Procedure, Materials and Methods}

\clearpage
\section{Results/Data}
\section{Calculations}
\end{document}


Note, that toc=sectionentrywithdots needs at least KOMA-Script version 3.15 (current Version is 3.19a).