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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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: 10348
- 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}