Headers in toc pages not uniform with the rest of document
- From: Tariq <tariq.perwez@xxxxxxxxx>
- Date: Fri, 14 Sep 2007 11:04:31 -0700
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
.
- Prev by Date: Re: extra space before 'aligned' environment
- Next by Date: Re: extra space before 'aligned' environment
- Previous by thread: extra space before 'aligned' environment
- Next by thread: Moving the ledmac textblock
- Index(es):
Relevant Pages
|