Text Formattingtableofcontents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

tableofcontents

Post by strongstorm »

i want to dot points appears in the table of contents
how we could do that ....when i use \tableofcontents

it will appears chapters and sections with page number without dot point
Last edited by Johannes_B on Thu Dec 10, 2015 11:17 am, edited 1 time in total.
Reason: Reverting fonts to the default

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

tableofcontents

Post by Johannes_B »

Any reason for using a bigger font and bold it?

Instead of putting energy in stuff like that, provide a minimal working example so that we know what is going on.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: tableofcontents

Post by Stefan Kottwitz »

Welcome to the forum!

That's easy. But we need to know something about your document, such as the document class you are using. That's what Johannes meant with the minimal example (click that link). Show your document code situation, then we can easily help.

Stefan
LaTeX.org admin
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

tableofcontents

Post by strongstorm »

thanks for all
this is the latex code ..i want all table of contents are dotted
(Abstract ,Acknowledgements,Table of Contents, List of Figures,
List of Tables should be dotted)..pleas help me:

Code: Select all

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[titles]{tocloft}
\newlength\mylength
\renewcommand\cftchappresnum{\chaptername~}
\renewcommand\cftchapaftersnum{:}
\settowidth\mylength{\cftchappresnum\cftchapaftersnum\quad}
\addtolength\cftchapnumwidth{\mylength}
 \renewcommand*{\contentsname}{Table of Contents}
\begin{document}
\pagenumbering{roman}
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
 \chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
\tableofcontents
\addcontentsline{toc}{chapter}{Table of Contents}
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage
\pagenumbering{arabic}
\chapter{Introduction}
 \section{Section one}
 \chapter{Second Chapter}
 \section{Another section}
 \end{document} 
Post Reply