# How do I prevent “listoffigures” from appearing twice in the header? [closed]

\documentclass[12pt,a4paper]{article}
\usepackage[top=1.15in, bottom=1.2in, left=1.2in, right=.8in]{geometry}

%setspace package is used to set linespacing in the document
\usepackage{setspace}

%fancyhdr is a package used for doing modification in header and footer.

%For page layout setting refer: http://en.wikibooks.org/wiki/LaTeX/Page_Layout
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{alltt}
\usepackage{amsmath}
\usepackage{color}

\begin{document}
\onehalfspacing

%---------------------------------------------------Styling for first 3 pages.

\pagestyle{empty}

%-------------------------------------.--------------------------

%: ----------------------- acknowledgement ----------------------
\pagestyle{fancy}
\include{report/acknowledgement}
\newpage

%: ----------------------- acknowledgement-----------------------

%: ----------------------- abstract -----------------------------
\include{report/abstract}
\newpage
%: ----------------------- abstract-----------------------------
\makeatletter
\renewcommand\tableofcontents{%
\section*{\contentsname
\@mkboth{%
%           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% DELETED
\@starttoc{toc}%
}
\makeatother

%: ----------------------- contents ----------------------------
\include{report/contents}
\newpage
%: ----------------------- contents------------------------------

%: ----------------------- listoffigures ------------------------
\include{report/figures}
\newpage
%: ---------------------listoffigures--------------------------

\definecolor{hfcolor}{gray}{.40}
\pagestyle{fancy}
%\rfoot{\textcolor{hfcolor}{\fancyplain{}{\small \thepage}}}
\lhead{\textcolor{hfcolor}{\textit{ {\tiny Implementation of mobile platform using qt and opencv for image processing applications }}}}
\lfoot{\textcolor{hfcolor}{\textit{\small College of Engineering,Chengannur}}}
\footskip=.4in

%: ----------------------- introduction--------------------------
\setcounter{page}{1}
\include{report/introduction}
\newpage
%: ----------------------- introduction--------------------------

%: ----------------------- detailed description------------------
\include{report/detailed}
\newpage
%: ----------------------- detailed description------------------

%: ----------------------- conclusion------------------
\include{report/conclusion}
\newpage
%: ----------------------- conclusion------------------

%:--------------------------reference-----------------------------
\include{report/reference}
\newpage
%:--------------------------reference-----------------------------

\end{document}

-
Welcome to TeX.sx! – Kurt Oct 14 '12 at 19:10
Welcome to TeX.sx. In its current form, your question might not receive many answers. Please take a look at the How to Ask-page and try to improve your question according to the guidance found there. This may require you to show some effort on your part in terms of attempting a solution. If you have questions about what to do or if you don't quite understand what this means, please ask for clarification using the add comment function. – Qrrbrbirlbel Oct 14 '12 at 19:11
In particular: Don't post your whole document. Reduce it to a minimal working example (MWE) that still highlights your problem. (Do we need all those \includes? What is actually in report/figures.tex?) – Qrrbrbirlbel Oct 14 '12 at 19:13
Your given MWE shows no result so we can't see what's your problem. Please provide a complete, compiling MWE as @Qrrbrbirlbel requested. – Kurt Oct 14 '12 at 19:32

## closed as too localized by lockstep, doncherry, Kurt, Stefan Kottwitz♦Oct 30 '12 at 4:53

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.