GeneralCentered ToC Heading

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
waelyafooz
Posts: 7
Joined: Fri Dec 06, 2013 2:46 pm

Centered ToC Heading

Post by waelyafooz »

Hi to all,

I face a problem with table of content , i need it to be in center and without dots. I used the following code.

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}

\usepackage{amsfonts}
\usepackage{amssymb}
\renewcommand*{\contentsname} {\centering \large TABELE OF CONTENTS} % to change the table of content 
\renewcommand{\listfigurename}{\large\centering LIST OF FIGURES}
\usepackage{tocloft}  % use for th next command in order to remove dots
\renewcommand{\cftdot}{} % remove dots of table of content
\usepackage{indentfirst} % to make indent from first paragraph

\begin{document}
\tableofcontents
This is the introduction 
\end{document}


My regards to you.

Recommended reading 2024:

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

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

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Centered ToC Heading

Post by tom »

Hello!

The same question was discussed here. I added a minimal example based on your code below.

Code: Select all

\documentclass{article}
\usepackage{tocloft}
\renewcommand{\contentsname} {TABELE OF CONTENTS} % to change the table of content 
\renewcommand{\cfttoctitlefont}{\hfil\Large}
\renewcommand{\cftdot}{}

\begin{document}
\tableofcontents
\section{Introduction}
\subsection{Some subsection}
\subsubsection{Some subsubsection}
\end{document}
Post Reply