단일 페이지에서 번호를 제거하고 헤더는 그대로 유지하려면 어떻게 해야 합니까? 번호를 제거하고 싶은데 제가 시도한 모든 방법으로 헤더도 제거되거나 헤더가 페이지 번호로 대체됩니다.
나는 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}