Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to create my document without header only for chapter pages, but footer is same for all pages...what I need to do for that?

I used \usepackage{fancyhdr} and

\documentclass[12pt,a4paper,oneside]{report}

\begin{document}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{INTRODUCTION }
\lfoot{Department cdo}
\cfoot{}
\rfoot{\thepage}

..........
...........
\end{spacing}
\end{document}
share|improve this question
    
If you use a KOMA-class, chapter pages have the pagestyle \chapterpagestyle which can be modified. –  Marco Daniel Mar 8 '13 at 16:08
add comment

1 Answer

up vote 4 down vote accepted

The standard way would be this one. With \leftmark you refer to the current chapter title. Since you're using 12pt type, also the \headheight needs to be adjusted.

\documentclass[12pt,a4paper,oneside]{report}
\usepackage{fancyhdr}

\setlength{\headheight}{14.5pt}
\pagestyle{fancy}
\fancyhf{}                    % clear all fields
\fancyhead[R]{\leftmark}      % right header
\fancyfoot[L]{Department cdo} % left footer
\fancyfoot[R]{\thepage}       % right footer

\fancypagestyle{plain}{% chapter pages use style plain
  \renewcommand{\headrulewidth}{0pt} % no top rule
  \fancyhf{}%                    clear all fields
  \fancyfoot[L]{Department cdo}% left footer
  \fancyfoot[R]{\thepage}%       right footer
}

\usepackage{lipsum} % mock text

\begin{document}
\chapter{Chapter}
\lipsum
\end{document}

If you want to change the font size in the footer, just use something like

\fancyfoot[L]{\footnotesize Department cdo} % left footer
\fancyfoot[R]{\footnotesize \thepage}       % right footer

in both places.

share|improve this answer
    
It worked.....thank u sooooo much.. –  Emalka Mar 8 '13 at 15:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.