V. Sharma vs272 at cam.ac.uk
Wed Sep 3 15:47:17 CEST 2003


I am using the package fancyhdr in documentclass book(koma-script)onesided:
\documentclass[12pt,oneside,english,liststotoc]{scrbook} I would like to
use \include \input commands for different chapters of the master document
I would like different header styles to each chapter I have some success
but am unable to do it as above I outline my attempt and request the list
to suggest a solution. I have the following preamble

%preamble____________________________________________________
\usepackage{chapterbib}
\usepackage{cite}
\makeatletter\def\@cite#1#2{({#1\if at tempswa,#2\fi})}
\def\@biblabel#1{#1.}
\let\oldthebibliography=\thebi
liography
\renewcommand{\thebibliography}{%
\makeatletter%
\renewcommand{\section}[2]{}%
\renewcommand\@mkboth[2]{}%
\oldthebibliography}
%\usepackage{rotating}%
\usepackage{textcomp}
\usepackage{rotfloat}
%\usepackage{dcolumn}

\usepackage{
ancyhdr}
\pagestyle{fancy}
%\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{#1}}{}}
%\renewcommand{\sectionmark}[1]{\markright{\MakeLowercase{\thesection\ #1}}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{
sectionmark}[1]{\markright{\MakeUppercase{\thesection\ #1}}}
\leftmark} \fancyfoot[C]{\thepage}
\renewcommand{\footrulewidth}{0pt}
}
%________________________________________________________________

I have the above preamble in the master document with chapters as separate
The bibliography goes at the end of the master file.
I then used the following in ERT placed just before the lists to prevent
any header entry on the right side.

%________________________________________________________
%________________________________________________________

I would like to change to the header setting of the chapters to what is set
up in the preamble when the chapter files are inputted. How do I do it? [In
a single Latex file (without any input/include files)placing the following
after the lists does the trick: %change the header on chapter pages
%________________________________________________________ \fancyhf{}
\fancyfoot[C]{\thepage} ____________________________________________

Further placing the following immediately before the \bibliogrpahy command

%change the header on bibliography page
%________________________________________________________
rightmark}
%________________________________________________________]

It maybe more of a question for fancyhdr but I am sure the latex gurus would