Text Formatting ⇒ tableofcontents
-
- Posts: 6
- Joined: Tue Nov 25, 2014 10:29 am
tableofcontents
how we could do that ....when i use \tableofcontents
it will appears chapters and sections with page number without dot point
Reason: Reverting fonts to the default
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
Instead of putting energy in stuff like that, provide a minimal working example so that we know what is going on.
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: tableofcontents
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
-
- Posts: 6
- Joined: Tue Nov 25, 2014 10:29 am
tableofcontents
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}