Please how can I get to use fancyhdr package with natbib package. It happens that I can't use the two in my document, what can be wrong? and how can I correct that, please?

\documentclass[12pt, a4paper]{report}



\fancyhead{} % This clears whatever was there before
\renewcommand{\headrulewidth}{0pt} % Set to 0 if you don't want a bar at the bottom.
\fancyhead[RE, RO]{\thepage} % Right even, right odd pages.
\fancyhead[LE, LO]{\textsc \rightmark} % Right even, right odd pages.

\renewcommand{\footrulewidth}{0pt} % Set to 0 if you don't want a bar at the bottom.




\Large{\textsc{By}} \\


\Large{\sc{A project in the department of mathematics, submitted in partial fulfillment of the requirements for the award of bachelor of science (mathematics), \\ }}
\Large{\textsc{April, 2023.}}

\chapter*{\center \Huge \textbf{CERTIFICATION}}
We certify that this project was carried out by \textbf{}, in the Department of Mathematics, Faculty of Science,, under my supervision.





Ordinary differential equations (ODEs) are commonly employed to represent the behavior of dynamic systems in various fields of science and engineering. However, ODEs have certain limitations when it comes to describing dynamics that involve discontinuities, impulses, and uncertain behaviors. Consequently, ordinary differential inclusions (ODIs) have been successfully employed as a useful approach to model such systems.\\

The concept of differential inclusion was studied broadly by Jean-Pierre Aubin, a mathematician from France, during the early 1980s. Differential inclusion is a versatile mathematical tool that extends the scope of differential equations and is utilized to represent diverse phenomena in both physical and social sciences. ODIs have applications in many fields, including control theory, economics, and population dynamics, physics, etc.\\[5pt]
In recent times, ODIs have gained considerable attention, and researchers have increasingly shown interest in exploring the characteristics of the solution set of ODIs, such as their properties of boundedness, uniqueness, and existence.\\[5pt]
The objective of this study is to examine and review the set of solutions for ordinary differential inclusions (ODIs) and establish criteria for the existence of solutions.\\[5pt]
Additionally, we apply our findings to a diverse range of examples in fields such as control theory, economics, and biology.



  • 2
    Please provide what you believe to be evidence for the claim that one "can't use the two [packages] in my document".
    – Mico
    Commented Jan 13 at 16:32
  • Can I get your mailing address? I can mail the MWE to you, sir.
    – Memristor
    Commented Jan 13 at 16:40
  • 2
    We do not have the file MyReferences.bib, so we cannot see, if there is a problem with the bibliography. Please try to extend it to a minimal working example with bibliography. As it is, I do not get any error message. However there are several problems with the shown code:
    – cabohah
    Commented Jan 13 at 17:07
  • Note: \Large isn't a command with argument but a font switch. So \Larger{…} does not make sense, but should be {\Larger …\par}
    – cabohah
    Commented Jan 13 at 17:08
  • 1
    You don't need our mailing addresses to show a MWEB. And in most cases, I have briefly explained how to eliminate the other impurities. If you need more help, either have a look into already available questions like: When to use \par and when \\, \newline, or blank lines, or ask new questions with appropriate minimal working examples.
    – cabohah
    Commented Jan 13 at 17:30

1 Answer 1


Your presumption, that you cannot use packages fancyhdr and natbib together is surely wrong. A lot of documents are using both packages, for example:

  author={Pieter van Ostrum},
  title={{\textsc{fancyhdr}}---Extensive control of page headers and footers in {\LaTeXe}},
  author={Patrick W. Daly},
  title={{\textsc{natbib}}---Flexible bibliography support},


\usepackage[nottoc]{tocbibind}% bibliography entry (an others) to the ToC
%\usepackage{parskip}% Try this, if you want paragraph distance instead of first line indent.

\usepackage{mwe}% Useful for dummy text in minimal working examples.

\fancyhead[RE]{\scshape\nouppercase \leftmark}% makes sense only with class option twoside
\fancyhead[LO]{\scshape\nouppercase \rightmark}
\fancyhead[RO,LE]{\thepage}% LE makes sense only with class option twoside

\bibliographystyle{apalike}% simply an author-year-style but without any relation to APA

\title{Demonstration of Package Combination}

\chapter{Using packages \textsc{natbib} and \textsc{fancyhdr} together}
There isn't a real problem in using packages \textsc{natbib}
\citep{pkg:natbib} and \textsc{fancydr} \citep{pkg:fancyhdr} together. Indeed
these packages are independent and usually do not influence each other.

\section{Only a demonstration section}


If there would be additional entries in the bibliography, so that it would
need more than one page, you would get the same page header on even
bibliography pages like on this page.
If there would be additional entries in the bibliography, so that it would
need more than two pages, you would get the same page header on odd
bibliography pages like on this page.


title page

pages 2&3

pages 4&5

pages 6&7

So I guess your problem is not the combination of these packages but another one. But unfortunately your question does neither tell us the problem nor the expected result. I therefore have little hope that this answer will tell you more than that your basic assumption that the two packages are incompatible is not correct.

Not the answer you're looking for? Browse other questions tagged .