我想将 \bibname 改为 \LARGE References。但是当我使用
\documentclass[a4paper, 11pt, oneside]{memoir}
\renewcommand{\bibname}{\LARGE References}
\begin{document}
\tableofcontents
\chapter{first chapter}
\section{first section}
\nocite{*}
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
答案1
不要在 的重新定义中使用 fontsize 命令\bibname
。也许它在文档的其他地方使用。
使用memoir
类,您可以重新定义\bibsection
以获取所需的参考标头:
\documentclass[a4paper, 11pt, oneside]{memoir}
\bibliographystyle{unsrt}
\renewcommand*{\bibname}{Reference}
\renewcommand{\bibsection}{%
\let\origchaptitlefont\chaptitlefont
\renewcommand*\chaptitlefont{\origchaptitlefont\LARGE}%
\chapter*{\bibname}
\bibmark
\ifnobibintoc\else
\phantomsection
\addcontentsline{toc}{chapter}{\bibname}
\fi
\prebibhook
}
\begin{document}
\tableofcontents
\chapter{first chapter}
\section{first section}
\nocite{*}
\bibliography{sample}
\end{document}
答案2
希望以下代码能帮助您满足您的要求:
\documentclass[a4paper, 11pt, oneside]{memoir}
\begin{document}
\tableofcontents
\chapter{first chapter}
\section{first section}
\nocite{*}
\bibliographystyle{unsrt}
\renewcommand{\bibname}{\LARGE References}
\nobibintoc% this trick helps not to include reference head in TOC by auto
\addcontentsline{toc}{chapter}{References}%%added the reference head in TOC
\bibliography{sample}
\end{document}