Como posso remover o número de uma única página, mas ainda manter o cabeçalho inalterado? Quero remover o número e, de todas as maneiras que tentei, o cabeçalho também foi removido ou o cabeçalho foi substituído pelo número da página.
Estou usando fancyhdr
para definir meu cabeçalho e rodapé em geral.
\documentclass{article}
\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\lhead{name}
\chead{}
\rhead{affiliation}
\lfoot{}
\cfoot{}
\rfoot{\thepage}
\begin{document}
\thispagestyle{empty} %removes both header and footer (dont want that)
\newpage
\pagestyle{headings} %footer is gone, but header shows the page number,
and not what i have set the header to be
\end{document}
Responder1
Você pode definir um novo estilo de página com o pé vazio:
\documentclass{article}
\usepackage{fancyhdr,lipsum}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\lhead{name}
\chead{}
\rhead{affiliation}
\lfoot{}
\cfoot{}
\rfoot{\thepage}
\fancypagestyle{zzz}{
\lhead{name}
\chead{}
\rhead{affiliation}
\lfoot{}
\cfoot{}
\rfoot{}
}
\begin{document}
\thispagestyle{zzz} % empty foot
\lipsum
\newpage
and not what i have set the header to be
\end{document}