Headers in toc pages not uniform with the rest of document



Hi,

I am using book class of LaTeX and have macros to typeset chapter
titles and headers a certain way. I am using hooks available from
fancyhdr and titlesec packages. All my headers are being typeset as I
meant them to, except that the headers of Table of Contents are being
typeset in some default fashion. By this I mean that although the
title page of toc shows the titlle "Contents" in the same format as
other chapter titles BUT the header on subsequent pages of toc does
not follow the format as in the rest of the document. What do I need
to do to affect the header format of toc? Following are macros from
fancyhdr and titlesec packages that I am using:

% Following macros are from fancyhdr package %
\renewcommand{\chaptermark}[1]{%
\markboth{\itshape\chaptername
\ \thechapter\ \ \ $\diamond$ \ \ #1}{}}
%
%%% Redefinition of chapter titles; These commands are from titlesec
package %%%%
%%
\renewcommand{\thechapter}{\arabic{chapter}}
\titleformat{\chapter}[display]
{\sffamily\Huge}
{\vskip -1in\filleft\MakeUppercase{\huge\sffamily\bfseries
\chaptertitlename}\hspace{.5cm}\chapnumber\thechapter}
{3.5ex}
{\titlerule[0pt]
\vspace{.5ex}%
\filleft\MakeUppercase}
[\vspace{2.5ex}%
%\titlerule\hrule height 2pt
]
%%%%%%%%%%%%% These macros are from titlesec package %%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Following is redifinition of part %%%%%%%%%%%%%%
\renewcommand{\thepart}{\Alph{part}}
\titleformat{\part}[display]
{\centering\sffamily\Huge}
{\MakeUppercase{\Huge\sffamily\bfseries\partname} \partnumber\thepart}
{2ex}
{\centering\titlerule[0pt]
\vspace{.5ex}%
}
[\vspace{2.5ex}%
%\titlerule\hrule height 2pt
]
%%
%%% Re-defining the names of Chapters and Contents etc
\renewcommand{\chaptername}{Experiment}
\renewcommand{\contentsname}{Contents}
%%

In my document, I am using \tableofcontents as:


\documentclass[one-sided,openany]{book}

\begin{document}
%
\frontmatter
\maketitle
\tableofcontents
:
:
:
\end{document}
%

Apparently I need to fiddle with something to get the headers in toc
properly typeset. Would someone be able to help me with this?
Apparently, \tableofcontents is taking up my other re-finition of
chapter titles fine because the title page of toc is typeset like
other chapter titles.

I would appreciate any help I can get. Regards,

Tariq

.



Relevant Pages

  • Re: Programming in standard c
    ... is it non-standard? ... decided for some bizarre reason to avoid using the macros. ... without access to the headers and it was easiest to plug in these constants. ... My assumption is the file is in binary mode; and my wrapper of the fopen ...
    (comp.lang.c)
  • Re: 128 bit integers
    ... bit machines around when we wrote it". ... appropriate macros would be adequate. ... namespace in those headers. ...
    (comp.std.c)
  • Re: typical practise for #includes
    ... > I wonder are there any typical, common used practises to organize all ... > and also some macros, variables, types. ... > some of these headers might be useless in other translation units, ... Depends if your compiler supports this method or not. ...
    (comp.lang.c)
  • Re: isascii???
    ... >Section 7.26.2 of the C standard reserves all external names that ... >additionally defined as macros. ... functions to be macros, and indeed, some c library headers use inline ...
    (microsoft.public.vc.stl)
  • Re: Headers and Footers
    ... Why can't column headings and titles, dates, etc. just appear in the ... In list views or list-based reports, headers and footers are needed to ...
    (comp.databases.filemaker)