[Tugindia] Help with headers

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

\makeatletter\def\@cite#1#2{({#1\if at tempswa,#2\fi})}

%\renewcommand{\sectionmark}[1]{\markright{\MakeLowercase{\thesection\ #1}}}
sectionmark}[1]{\markright{\MakeUppercase{\thesection\ #1}}}
\fancyhf{} \fancyhead[RO]{\tiny\rightmark} \fancyhead[LO]{\small
\leftmark} \fancyfoot[C]{\thepage}
eadheight}{0.5pt} \fancypagestyle{plain}{

I have the above preamble in the master document with chapters as separate
files added as \include{chapter1} etc.
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.

\fancyhf{} %\fancyhead[RO]{\tiny\rightmark}
\fancyhead[LO]{\small \leftmark} \fancyfoot[C]{\thepage}

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{} 
\fancyhead[RO]{\tiny\rightmark} \fancyhead[LO]{\small \leftmark} 
\fancyfoot[C]{\thepage} ____________________________________________

Further placing the following immediately before the \bibliogrpahy command
prevents the right header

%change the header on bibliography page
\fancyhf{} %\fancyhead[RO]{\tiny
\fancyhead[LO]{\small \bibname} \fancyfoot[C]{\thepage}

It maybe more of a question for fancyhdr but I am sure the latex gurus would
have an answer to this

Thanks for your help


More information about the tugindia mailing list