书目和参考书目

书目和参考书目

我使用 titlesec 将章节标题大写并显示在中间。一切都很好,直到我到达参考书目时,“bibliography”一词才大写。以下是一个例子

\documentclass[a4paper, 12pt]{report}
\usepackage{cite}

\usepackage{titlesec}
 \titlespacing*{\chapter}{0pt}{1in}{20pt}
 \titleformat{\chapter}[display]
   {\centering\normalfont\normalsize}{\MakeUppercase{\chaptertitlename} \thechapter}{0pt}{\small}

 \titleformat{\section}
     {\normalfont\normalsize\bfseries}{\thesection}{1em}{}
 \titleformat{\subsection}
     {\normalfont\normalsize\bfseries}{\thesubsection}{1em}{}
 \titleformat{\subsubsection}
     {\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}

\begin{document}
\chapter{Chapter 1}
This is a workingn example
\begin{thebibliography}{100}

\bibitem{Niesen}
Niesen, Social networks/blogs now account for one in every four and a half
  minutes online,
  http://blog.nielsen.com/nielsenwire/global/social-media-accounts-for-22-perc%
ent-of-time-online/, report (June 2010).

\bibitem{AirwideSolutions}
AirwideSolutions, Mobile social networking and the rise of the smart machines -
  2015ad,
  http://www.airwidesolutions.com/whitepapers/MobileSocialNetworking.pdf, white
  paper (November 2010).
\end{thebibliography}

\end{document}

谢谢。

答案1

您的设置中没有理由将“Bibliography”大写。您只应用于\MakeUppercase\chaptername即“Chapter”一词),而不应用于实际标题。如果您想将“Bibliography”一词大写,可以使用软件包etoolbox修补\thebibliography命令:

\documentclass[a4paper, 12pt]{report}
\usepackage{cite}
\usepackage{etoolbox}

\patchcmd{\thebibliography}{\chapter*{\bibname}}{\chapter*{\MakeUppercase{\bibname}}}{}{}

\usepackage{titlesec}
 \titlespacing*{\chapter}{0pt}{1in}{20pt}
 \titleformat{\chapter}[display]
   {\centering\normalfont\normalsize}{\MakeUppercase{\chaptertitlename} \thechapter}{0pt}{\small}

 \titleformat{\section}
     {\normalfont\normalsize\bfseries}{\thesection}{1em}{}
 \titleformat{\subsection}
     {\normalfont\normalsize\bfseries}{\thesubsection}{1em}{}
 \titleformat{\subsubsection}
     {\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}

\begin{document}
\chapter{Chapter 1}
This is a workingn example
\begin{thebibliography}{100}

\bibitem{Niesen}
Niesen, Social networks/blogs now account for one in every four and a half
  minutes online,
  http://blog.nielsen.com/nielsenwire/global/social-media-accounts-for-22-perc%
ent-of-time-online/, report (June 2010).

\bibitem{AirwideSolutions}
AirwideSolutions, Mobile social networking and the rise of the smart machines -
  2015ad,
  http://www.airwidesolutions.com/whitepapers/MobileSocialNetworking.pdf, white
  paper (November 2010).
\end{thebibliography}

\end{document}

在此处输入图片描述

相关内容