Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing "Contents" into "Table of Contents" using tocloft package

1,252 views
Skip to first unread message

Fawzi Sdudah

unread,
Aug 3, 2007, 9:16:20 PM8/3/07
to
Hi,

I searched the archive for an example on using tocloft package to
change the Heading "Contents" into "Table of Contents" but did not
find much info. All the stuff I found were related to changing
spacings, etc.

I looked through the docs but I think I did not make much use of it.

Any help would be appreciated,

Fawzi Sdudah

Fawzi Sdudah

unread,
Aug 3, 2007, 9:55:09 PM8/3/07
to

Thank ALLAH,

I have found the solution. You have to put the following <<tocloft
package>> command

\renewcommand{\contentsname}{Table of Contents}

which changes the standard Latex "Contents" title into "Table of
Contents"

Also, if you have the following command

\addcontentsline{toc}{chapter}{Contents}

You may want to change it into

\addcontentsline{toc}{chapter}{Table of Contents}


for all time newbies like me, do not forget to add
\usepackage{tocloft} before your thesis style file if you are a
graduate student
You have to get your hands dirty at times to use Latex,

-Fawzi Sdudah

José Carlos Santos

unread,
Aug 4, 2007, 7:01:20 AM8/4/07
to
On 04-08-2007 2:55, Fawzi Sdudah wrote:

>> I searched the archive for an example on using tocloft package to
>> change the Heading "Contents" into "Table of Contents" but did not
>> find much info. All the stuff I found were related to changing
>> spacings, etc.
>>
>> I looked through the docs but I think I did not make much use of it.
>>
>> Any help would be appreciated,
>

> I have found the solution. You have to put the following <<tocloft
> package>> command
>
> \renewcommand{\contentsname}{Table of Contents}
>
> which changes the standard Latex "Contents" title into "Table of
> Contents"
>
> Also, if you have the following command
>
> \addcontentsline{toc}{chapter}{Contents}
>
> You may want to change it into
>
> \addcontentsline{toc}{chapter}{Table of Contents}
>
>
> for all time newbies like me, do not forget to add
> \usepackage{tocloft} before your thesis style file if you are a
> graduate student
> You have to get your hands dirty at times to use Latex,

This has nothing to do with the tocloft package. It would have worked
without it.

Besides, you could have found the answer to your question at the FAQ:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixnam

Best regards,

Jose Carlos Santos

Fawzi Sdudah

unread,
Aug 4, 2007, 12:50:48 PM8/4/07
to
On Aug 4, 7:01 am, José Carlos Santos <jcsan...@fc.up.pt> wrote:
> On 04-08-2007 2:55, Fawzi Sdudah wrote:
>
>
>
> >> I searched the archive for an example on using tocloft package to
> >> change the Heading "Contents" into "Table of Contents" but did not
> >> find much info. All the stuff I found were related to changing
> >> spacings, etc.
>
> >> I looked through the docs but I think I did not make much use of it.
>
> >> Any help would be appreciated,
>
> > I have found the solution. You have to put the following <<tocloft
> > package>> command
>
> > \renewcommand{\contentsname}{Table of Contents}
>
> > which changes the standard Latex "Contents" title into "Table of
> > Contents"
>
> > Also, if you have the following command
>
> > \addcontentsline{toc}{chapter}{Contents}
>
> > You may want to change it into
>
> > \addcontentsline{toc}{chapter}{Table of Contents}
>
> > for all time newbies like me, do not forget to add
> > \usepackage{tocloft} before your thesis style file if you are a
> > graduate student
> > You have to get your hands dirty at times to use Latex,
>
> This has nothing to do with the tocloft package. It would have worked
> without it.
You are right. As a Google user, and unless you have good Latex Jargon
and macro skills, you have to search for keywords like "Contents" and
"Table of Contents" to look for the answer which in this case produced
no significant results. However, this approach requires no much of
Latex skills.

The other option is to cram so much pages/articles/docs to know the
answer, or wait for the answer from helpful people like you. Some
times I cannot wait.

>
> Besides, you could have found the answer to your question at the FAQ:
>
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixnam

This link is very useful. I would try next time (if needed) to check
the FAQ. Every now and then I find something useful mentioned there.
>
> Best regards,
>

By the way, tocloft package is mentioned in my University thesis in
the context of changing "Contents", but since the notes are slim I
could not figure out what they meant. Also, I have found the clue
using tocloft documentation. The macro,\contentsname , was first
mentioned there. I had to jump off to Google thereafter.

> Jose Carlos Santos

Thank you

-Fawzi Sdudah

0 new messages