定义标题和脚注的正确字体大小和样式

定义标题和脚注的正确字体大小和样式

我正在尝试根据我所在大学的博士论文指南来格式化我的论文标题和脚注。该指南对普通文本、标题和脚注有一些明确的规范:

  • 正常文本大小:13pt
  • 字体:Calibri(所有文本)
  • 标题 1:18pt
  • 标题 2:16pt
  • 标题 3:14pt
  • 脚注:12pt
  • 缩进:4mm

除了指定的格式指南之外,格式还应遵循相关研究领域的正常指南,就我而言,格式指南如下:APA 格式

根据此描述,标题应如下所示。(此外,标题应为未编号在此处输入图片描述

我找到了部分解决方案这里,但它没有很好地解释我如何定义字体大小和缩进。我设置了缩进长度\setlength\parindent{4mm}。这适用于段落,但我不确定它是否适用于标题。下面我添加了一个文档设置示例,显示了可能与此相关的内容。

\documentclass[twoside, open=right, fontsize=13pt, DIV=calc, chapterprefix=true]{scrreprt}

\usepackage[a4paper,width=170mm,top=20mm,bottom=20mm,headsep=1em,footskip=2em,hcentering,bindingoffset=6mm]{geometry}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{subcaption}% loads package caption
\usepackage[footsepline,headsepline,manualmark]{scrlayer-scrpage}% sets page style scrheadings automatically
\usepackage{scrhack}% added
\usepackage{setspace}
\usepackage{microtype}% added
\usepackage[hidelinks]{hyperref}

%Styles
\usepackage{lmodern}
\setmainfont{Calibri}
\setsansfont{Calibri}% added
\onehalfspacing 
%\renewcommand*\chaptermark[1]{\markboth{\Ifnumbered{chapter}{\chaptermarkformat}{}}{}}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\AfterTOCHead{\markboth{}{}}
\clearpairofpagestyles
\setlength\parindent{4mm}

答案1

以下是针对最新 KOMA-Script 版本 3.29 的建议:

\documentclass[twoside, open=right, fontsize=13pt, DIV=calc, chapterprefix=true]{scrreprt}
\usepackage{lipsum}% only for dummy text
\usepackage[a4paper,width=170mm,top=20mm,bottom=20mm,headsep=1em,footskip=2em,hcentering,bindingoffset=6mm]{geometry}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{subcaption}
\usepackage[footsepline,headsepline,manualmark]{scrlayer-scrpage}% sets page style scrheadings automatically
\usepackage{scrhack}
\usepackage{setspace}
\usepackage{microtype}
\usepackage[hidelinks]{hyperref}

\usepackage{lmodern}
\setmainfont{Calibri}
\setsansfont{Calibri}
\onehalfspacing 

\AfterTOCHead{\markboth{}{}}
\clearpairofpagestyles

\setcounter{secnumdepth}{\numexpr\partnumdepth-1\relax}% all section levels should be unnumbered
\counterwithout{figure}{chapter}% figure number without chapter number
\counterwithout{table}{chapter}% table number without chapter number
\setparsizes{4mm}{0pt}{0pt plus 1fil}% change parindent

\renewcommand\raggedchapter{\centering}% center chapter titles

\RedeclareSectionCommand[
  font=\fontsize{18pt}{21.6pt}\selectfont,
  beforeskip=\dimexpr3.3\baselineskip+\parskip\relax,
  afterindent=true
]{chapter}
\RedeclareSectionCommand[
  font=\fontsize{16pt}{19.2pt}\selectfont,
  beforeskip=3.5ex plus 1ex minus .2ex,
  afterindent=true
]{section}
\RedeclareSectionCommand[
  font=\itshape\fontsize{14pt}{16.8pt}\selectfont,indent=\the\parindent,
  beforeskip=3.25ex plus 1ex minus .2ex,
  afterindent=true
]{subsection}
\RedeclareSectionCommand[
  font=\normalsize,
  beforeskip=1em plus .3ex minus .1ex,
  indent=\the\parindent,
  runin=true,
  afterskip=1ex
]{subsubsection}
\RedeclareSectionCommand[
  font=\mdseries\itshape,
  beforeskip=1ex plus .15ex minus .1ex,
  indent=\the\parindent,
  runin=true,
  afterskip=1ex
]{paragraph}

\makeatletter
\renewcommand\sectionlinesformat[4]{%
  \@hangfrom{\hskip#2#3}{#4\Ifstr{#1}{subsection}{.}{}}% dot after title for level=3 (subsection)
}
\makeatother
\renewcommand\sectioncatchphraseformat[4]{\hskip#2#3#4.}% dot after title for level≥4 (subsubsection, parargraph, ...)

\addtokomafont{footnote}{\fontsize{12pt}{14.4pt}\selectfont}

\begin{document}
\tableofcontents
\chapter{Level 1}
\lipsum[1-2]\footnote{Footnote text}
\section{Level 2}
\lipsum[3-4]
\subsection{Level 3}
\lipsum[5-6]
\subsubsection{Level 4}
\lipsum[7-8]
\paragraph{Level 5}
\lipsum[9-10]
\end{document}

结果:

在此处输入图片描述

相关内容