标题:参考文献页码无编号

标题:参考文献页码无编号

我如何确保参考文献页面的标题中没有数字(即,我仍然想要一个标题,但没有数字)。

在此处输入图片描述

MWE 遇到的问题:

\documentclass[]{article}
\usepackage{fancyhdr}
\fancyhf{} % clear the headers
\fancyhead[LE,RO]{%
   % We want italics
   \itshape
   % The chapter number only if it's greater than 0
   \ifnum\value{section}>0  \thesection. \fi
   % The chapter title
   \leftmark}

\fancyfoot[C]{\thepage}

\fancypagestyle{plain}{
  \renewcommand{\headrulewidth}{0pt}
  \fancyhf{}
  \fancyfoot[C]{\thepage}
}

\setlength{\headheight}{14.5pt}
\pagestyle{fancy}
\begin{document}

\section{Example}

\clearpage

\renewcommand{\thepage}{}


\begin{thebibliography}{99}


\end{thebibliography} 


\end{document}

答案1

定义新的页面样式,bib例如

\fancypagestyle{bib}{
  \fancyhf{}
  \fancyhead[LE,RO]{%
   % We want italics
   \itshape
   % The chapter title
   \leftmark}
   \fancyfoot[C]{\thepage}
}

没有章节编号,然后在\begin{thebibliography}{99}发行之前\pagestyle{bib}

代码:

\documentclass[]{article}
\usepackage{fancyhdr}
\fancyhf{} % clear the headers
\fancyhead[LE,RO]{%
   % We want italics
   \itshape
   % The chapter number only if it's greater than 0
   \ifnum\value{section}>0  \thesection. \fi
   % The chapter title
   \leftmark}

\fancyfoot[C]{\thepage}

%%% this is not needed as this does nothing. plain page style is exactly this one.
%\fancypagestyle{plain}{
%  \renewcommand{\headrulewidth}{0pt}
%  \fancyhf{}
%  \fancyfoot[C]{\thepage}
%}

\fancypagestyle{bib}{
  \fancyhf{}
  \fancyhead[LE,RO]{%
   % We want italics
   \itshape
   % The chapter title
   \leftmark}
   \fancyfoot[C]{\thepage}
}

\setlength{\headheight}{14.5pt}
\pagestyle{fancy}
\begin{document}

\section{Example}

\clearpage

%\renewcommand{\thepage}{}
\pagestyle{bib}

\begin{thebibliography}{99}


\end{thebibliography}


\end{document}

在此处输入图片描述

相关内容