From: "George D. Greenwade" <bed_gdg@SHSU.edu>
Newsgroups: comp.text.tex
Subject: RE: location of toc title definition
Date: Thu, 19 Nov 1992 09:02:49 CST
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List

In <1eea82INNlah@golem.wcc.govt.nz> (comp.text.tex, 18 Nov 1992 20:49:06 GMT),
Chris Dennis <dennis_c@kosmos.wcc.govt.nz> posted:
> In article <1ee4m9INNkvh@golem.wcc.govt.nz>, wright@med.wcc.govt.nz (Steve
> Wright  Phone +64 04 801 3735) writes:
> >Hi all
> >      Can someone please tell me where I can find the definition for
> >the heading for the table of contents for the article style.
> >
> >Suprise suprise .....   I'd like to change it!!
> >
>
> A quick search through the files art*.sty reveals the following at line 79
> of article.sty:
>
>  \def\tableofcontents{\section*{Contents\@mkboth{CONTENTS}{CONTENTS}}
>
> As a guess, I'd say you need to change all three words 'contents' to
> whatever you want it to say.
>
> Section 5.1.4 of the LaTeX manual talks about changing chapter headings in
> a similar way.

Under earlier version of LaTeX, this was true.  In more recent versions,
look near the start of the major styles (article.sty, book.sty, report.sty,
even letter.sty) for ``internationalized" approaches (really more
appropriately named flexibilitized approaches).  For example, in
article.sty (14 Jan 1992):
 \def\partname{Part}
 \def\contentsname{Contents}
 \def\listfigurename{List of Figures}
 \def\listtablename{List of Tables}
 \def\refname{References}
 \def\indexname{Index}
 \def\figurename{Figure}
 \def\tablename{Table}
 \def\abstractname{Abstract}
These can all be changed via \renewcommand, such as:
 \renewcommand{\contentsname}{Table of Contents}
somewhere in your document prior to the \tableofcontents command.

Your definitioon is then passed to the \tableofcontents command (in
article.sty) as:
 \def\tableofcontents{\section*{\contentsname
         \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
   \@starttoc{toc}}
This command varies by major style.  Nearly everything previously
hard-coded which uses these definitions now uses the default definition,
which can easily be changed.

You may want to modify this to remove the \uppercase strings to retain the
casing of your new command name, but this is the only tweak I am aware that
you might have to make.

The March 1992 version of LaTeX is the most recent I am aware of (but these
changes were introduced prior to this release).  It should be on most
servers and can be retrieved via e-mail with:
 SENDME LATEX
in the body of a mail message to FILESERV@SHSU.BITNET (FILESERV@SHSU.edu). 
It can be retrieved via anonymous ftp from Niord.SHSU.edu (192.92.115.8) in
[FILESERV.LATEX] as individual files in the tree there or in a variety of
compressed archive formats.

Regards,   George
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
George D. Greenwade, Ph.D.                            Bitnet:  BED_GDG@SHSU
Department of Economics and Business Analysis         THEnet: SHSU::BED_GDG
College of Business Administration                    Voice: (409) 294-1266
P. O. Box 2118                                        FAX:   (409) 294-3612
Sam Houston State University              Internet:        bed_gdg@SHSU.edu
Huntsville, TX 77341                      bed_gdg%SHSU.decnet@relay.the.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Newsgroups: comp.text.tex