Overleaf - 仅为第一页(而不是所有页面)设置页眉

Lew*_*wis 3 latex

我只想为我的第一页设置标题。这是在背面。

我的尝试:

\fancyhead[L]{}

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

\renewcommand{\headrulewidth}{0pt}
Run Code Online (Sandbox Code Playgroud)

这个问题是这设置了所有页面的标题。

如何将标题设置为仅适用于第一页而不适用于所有页面?

And*_*cus 10

定义自定义样式。这里有名字firstpage

\fancypagestyle{firstpage}
{
    \fancyhead[L]{}    
    \fancyhead[R]{ \includegraphics[width=4cm]{logo.png}}
}
Run Code Online (Sandbox Code Playgroud)

然后在所需的页面上使用它:

\thispagestyle{firstpage}
Run Code Online (Sandbox Code Playgroud)