Как удалить номер с одной страницы, но при этом оставить заголовок неизменным? Я хочу удалить номер, и все способы, которые я пробовал, удаляют также и заголовок, или заменяют его на номер страницы.
Я использую его fancyhdr
для определения верхнего и нижнего колонтитула в целом.
\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}
решение1
Вы можете определить новый стиль страницы с пустым полем:
\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}