1

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?

enter image description here

My code for for the table of contents is:

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



    \newpage


    \listoffigures

    \listoftables\numberline{}


        \pagenumbering{roman}
        \cleardoublepage

Thank you.

2

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}}.

enter image description here

\documentclass{article}

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

\usepackage[titles]{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}

\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}
1

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}

enter image description here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.