I want to create a document with both header and footer. So far the footer has been working fine but not the header, which is missing for some reason. Do anyone have a clue as to why it happens?
%!TEX TS-program = xelatex
\documentclass[12pt]{article}
%opening
\title{Example}
\usepackage[margin = 1.0in]{geometry}
\usepackage{fancyhdr}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage{braket}
\usepackage{fontspec}
\pagestyle{fancy}
\fancyhf{}
\rhead{Not working}
\rfoot{\thepage}
\setmainfont{Times New Roman}
\newcommand{\bd}{\textbf}
\begin{document}
\maketitle
\bibliographystyle{APA}
\bibliography{bibliography.bib}
\end{document}


\maketitlewith thearticleclass the page styleplainis used. See e.g. https://tex.stackexchange.com/a/30230/82917 – campa Mar 09 '21 at 09:58