MHB Leader Dots in the Table of Contents

  • Thread starter Thread starter A.Magnus
  • Start date Start date
  • Tags Tags
    Table
Click For Summary
SUMMARY

The discussion centers on resolving the absence of leader dots in the Table of Contents (ToC) of a LaTeX document. The user, identified as MA, is utilizing a LaTeX template for their thesis but encounters formatting issues with the ToC. The solution involves ensuring the correct use of the \tableofcontents command and potentially adjusting the ToC settings in the LaTeX preamble. Users are encouraged to provide specific code snippets to assist in troubleshooting the issue.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Understanding of LaTeX packages such as 'geometry' and 'babel'
  • Basic knowledge of LaTeX commands for formatting documents
  • Experience with LaTeX document classes, specifically 'article'
NEXT STEPS
  • Research the use of the \tableofcontents command in LaTeX
  • Explore the 'tocloft' package for customizing Table of Contents formatting
  • Learn about the \addcontentsline command for adding entries to the ToC
  • Investigate common LaTeX formatting issues and their solutions
USEFUL FOR

Students, researchers, and academics using LaTeX for thesis or dissertation writing, particularly those needing assistance with Table of Contents formatting.

A.Magnus
Messages
138
Reaction score
0
I am writing a thesis using a LaTex template given to me by my school. Everything looks fine, except there is an issue with the table of content. As you could see from the attached image, it is missing the leader dots connecting the title names to their respective page numbers. Unfortunately, the folks at my school do not know how to fix it. I am quite adept in using LaTex but I am not a guru. I would therefore love to have some of you telling me on how to fix the problem. Thank you beforehand for your gracious helping hand and time spent. ~MA

PS. The codes are also attached here, let me know if you need additional info on code. In the meantime, Happy Holidays!

View attachment 6302

Code:
\documentclass[12pt]{article}
\usepackage{times}
\usepackage[margin=2in,left=1in,right=1in,bottom=1in,includefoot]{geometry}
\usepackage{setspace}
\usepackage{array}
\usepackage{amsthm,amsmath,amssymb}
\usepackage[english]{babel}
\addto\captionsenglish{%
  \renewcommand{\contentsname}{\centerline{\normalsize \normalfont TABLE OF CONTENTS}}%
}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{changepage}

\begin{document}

}
\addcontentsline{toc}{section}{\numberline{}\normalfont ABSTRACT}
\pagenumbering{roman}
\setcounter{page}{3}
\cleardoublepage
}

\end{document}

View attachment 6300
 

Attachments

  • ScreenShot_LaTex-TOC.PNG
    ScreenShot_LaTex-TOC.PNG
    9.5 KB · Views: 161
Physics news on Phys.org
You could try using
Code:
\tableofcontents
maybe. See here.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
12K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K