I use the following code for my letter:
\documentclass[a4paper, 11pt]{letter}
\usepackage{fontspec}
\usepackage{fancyhdr}
\newcommand{\DocumentTitle}{Motivation Letter}
\newcommand{\Author}{Johm Smith}
\setmainfont{Times New Roman}
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\linespread{1.3}
\pagestyle{fancy}
\fancyhf{} % clear all header and footers
\fancyhead[L]{\DocumentTitle \\ \Author}
\fancyhead[R]{\thepage}
\fancyfoot[L]{\DocumentTitle \\ \Author}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\thispagestyle{fancy}
\begin{document}
\begin{letter}{ }
\signature{\Author}
\opening{To Whom It May Concern,}
\closing{Respectfully,}
\end{letter}
\end{document}
But there is no these header and footer on the first page. How to change this behavior?
\thispagestyle{fancy}
.letter
class. So, while code snippets are useful in explanations, I recommend you compose a fully compilable MWE that illustrates the problem including the\documentclass
and the appropriate packages so that those trying to help don't have to recreate it.