So I'm using the fancyhdr package and compiling my code and it gives me no error whatsoever but it's not working, it does not display any header or footer and keeps giving me number on the bottom center of the page...
I don't understand what is wrong.
Here is my code below:
\documentclass[10pt,twoside]{report}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\fancyfoot[RO,LE]{\thepage}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\graphicspath{{Images/}}
\begin{document}
\chapter*{Acknowledgements}
\thispagestyle{empty}
\pagenumbering{arabic}
\tableofcontents
\addcontentsline{toc}{chapter}{\listfigurename}\addcontentsline{toc}chapter}{\listtablename}
\pagenumbering{roman}
\setcounter{page}{1}
\listoffigures
\listoftables
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introduction}
\input{chapter/introduction.tex}
\chapter{Bibliography work}
\input{chapter/bib_work.tex}
\chapter{Material and methods}
\input{chapter/mat_and_meth}
\chapter{Results}
\input{chapter/results}
\chapter{Discussion}
\input{chapter/discussion}
\chapter{Conclusion}
\input{chapter/conclusion}
\pagebreak
\nocite{benkaddour_salinite_2011}
\nocite{fetouani_assessing_2008}
\nocite{kihumba_modelling_2016}
\nocite{mattern_bayesian_2012}
\bibliographystyle{plain}
\bibliography{mybib}
\chapter*{Appendix}
\end{document}
\inputstatements, for files we can't access!\pagenumbering{...}always resets the page counter to1, no need to\setcounter{page}{1}... and\chapter*before\begin{document}does not work! – Jan 02 '17 at 16:48\input{Ishouldlearnhowtomakeanmwe}... ;-) – Jan 02 '17 at 16:51addcontentsline{toc}chapter}{\listtablename}!!! It should readaddcontentsline{toc}{chapter}{\listtablename}` – Jan 02 '17 at 16:55