如何使“参考”一词加粗,同时保持所需的字体

如何使“参考”一词加粗,同时保持所需的字体

我希望所有章节标题都加粗,同时保留所需的字体。但是,使用以下代码时会自动添加“参考”一词,并且不是粗体。请问如何更改?谢谢!

\documentclass[english,  bibliography=totocnumbered]{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}

\setkomafont{disposition}{\normalfont}
\usepackage{graphicx}
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}

\begin{document}

\title{The Law of Iterated Logarithm}
\date{\today}
\maketitle

\tableofcontents
\section{Introduction, Definitions and Notations}
\section{Proof of the Hartman-Wintner Theorem (Two Special Cases)}
\subsection{Outline of Proof}
\subsection{Case One: Standard Linear Brownian Motion}
\subsection{Case Two: Simple Random Walk}
\bibliographystyle{plain}
\bibliography{\jobname}

\end{document}

答案1

正如其他人所说,您的问题不太清楚。因此,我非常怀疑这是否能回答您的问题。但是,对于评论来说,这太长了,也许它可以帮助您澄清您的问题。(此时,我可以根据需要更改或删除此答案。)

我稍微整理了一下你的 MWE,以便它包含一些实际生成参考书目所必需的内容,并包含较少的与问题无关的内容。当我这样做并删除告诉类用于\normalfont章节标题的命令时,我得到了默认的粗体标题:

默认粗体标题带 Koma

\documentclass[bibliography=totocnumbered]{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
  @article{article,
    title   =   {Title},
    author  =   {Author, A. N.},
    year    =   1962,
    journal =   {Journal},
    pages   =   {33-76},
    volume  =   2,
    number  =   5}
\end{filecontents}

\begin{document}

  \title{The Law of Iterated Logarithm}
  \date{\today}
  \maketitle

  \tableofcontents
  \section{Introduction, Definitions and Notations}
  \section{Proof of the Hartman-Wintner Theorem (Two Special Cases)}
  \subsection{Outline of Proof}
  \subsection{Case One: Standard Linear Brownian Motion}
  \subsection{Case Two: Simple Random Walk}
  \nocite{*}
  \bibliographystyle{plain}
  \bibliography{\jobname}

\end{document}

你发布的原因可能是为了\normalfont避免标题被排版成字体。如果是这样,你可能想试试这一行:

\setkomafont{disposition}{\normalfont\bfseries}

正常大小的粗体衬线部分标题

相关内容