Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overleaf - Set header for only first page (and not all pages)

Tags:

latex

I only want to set a header for only my first page. This is within overleaf.

My Attempt:

\fancyhead[L]{}

\fancyhead[R]{ \includegraphics[width=4cm]{logo.png}}

\renewcommand{\headrulewidth}{0pt}

This issue is that this sets the header for all pages.

How do I set the header to only be applicable for the first page and not all the pages?

like image 236
Lewis Avatar asked Sep 12 '25 06:09

Lewis


1 Answers

Define a custom style. Here with the name firstpage:

\fancypagestyle{firstpage}
{
    \fancyhead[L]{}    
    \fancyhead[R]{ \includegraphics[width=4cm]{logo.png}}
}

Then use it on desired page:

\thispagestyle{firstpage}
like image 111
Andronicus Avatar answered Sep 13 '25 18:09

Andronicus