我是 Latex 的新手,读了很多书,所以我开始为我的论文创建一个模板(必须采用 APA 格式)。
我唯一的问题是,我无法配置标题。有人能帮我配置 scrbook-class 的标题以使其符合 APA6th 样式吗?或者已经有解决方案了?
不知道如何转换 \chapter; \section .. 以获得 poper 行为
非常感谢
这是我的设置代码:
\documentclass[12pt,oneside,a4paper, headings=small]{scrbook}
\usepackage[top=25mm, bottom=20mm,left=40mm,right=20mm]{geometry}
\usepackage{scrhack}
\usepackage{caption}
\usepackage{imakeidx}
\usepackage{paralist}
\usepackage{epigraph}
\usepackage[toc, acronym]{glossaries}
\usepackage[automark,headsepline]{scrlayer-scrpage}
\ihead{Das standardisierte Unbewusste}
\chead{}
\ohead{\thepage}
\ifoot*{}
\cfoot[\thepage]{}
\cfoot*{}
\ofoot*{}
\pagestyle{scrheadings}
\renewcommand*{\chapterheadstartvskip}{\vspace*{.25\baselineskip}}
\usepackage[onehalfspacing]{setspace}
\usepackage[stretch=10]{microtype}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{epigraph}
\usepackage[printonlyused]{acronym}
\usepackage{float}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{listings}
\usepackage[table,xcdraw]{xcolor}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[hidelinks,german]{hyperref}
\usepackage{csquotes}
\usepackage[backend=biber, style = apa, language=ngerman]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DeclareFieldFormat{apacase}{#1}
\DeclareLanguageMapping{ngergam}{ngerman-apa}
\addbibresource{references/references.bib}
\begin{document}
please see picture
\end{documet}
非常感谢
答案1
章节标题可以居中
\renewcommand\raggedchapter{\centering}
为了使第一段也能达到预期效果,请使用正值beforeskip
\RedeclareSectionCommand[
beforeskip=.25\baselineskip,
afterskip=1sp plus -1sp minus 1sp
]{chapter}
\RedeclareSectionCommand[
beforeskip=3.5ex plus 1ex minus .2ex,
afterskip=1sp plus -1sp minus 1sp
]{section}
要获取运行标题,请使用负值afterskip
:
\RedeclareSectionCommands[
afterskip=-1em,
indent=2em
]{subsection,subsubsection,paragraph}
要在运行标题末尾插入点,请重新定义\sectioncatchphraseformat
\renewcommand{\sectioncatchphraseformat}[4]{%
\hskip #2#3#4.%
}
例子:
\documentclass[12pt,oneside,a4paper, headings=small]{scrbook}
\usepackage[top=25mm, bottom=20mm,left=40mm,right=20mm]{geometry}
\usepackage{scrhack}
\usepackage{caption}
\usepackage{imakeidx}
\usepackage{paralist}
\usepackage{epigraph}
\usepackage[toc, acronym]{glossaries}
\usepackage[automark,headsepline]{scrlayer-scrpage}
\clearpairofpagestyles
\ihead{Das standardisierte Unbewusste}
\ohead{\thepage}
\cfoot[\thepage]{}
\setcounter{secnumdepth}{-1}
\renewcommand\raggedchapter{\centering}
\RedeclareSectionCommand[
beforeskip=.25\baselineskip,
afterskip=1sp plus -1sp minus 1sp
]{chapter}
\RedeclareSectionCommand[
beforeskip=3.5ex plus 1ex minus .2ex,
afterskip=1sp plus -1sp minus 1sp
]{section}
\RedeclareSectionCommands[
afterskip=-1em,
indent=2em
]{subsection,subsubsection,paragraph}
\renewcommand{\sectioncatchphraseformat}[4]{%
\hskip #2#3#4.%
}
\addtokomafont{disposition}{\rmfamily}
\setkomafont{subsection}{\normalsize}
\setkomafont{subsubsection}{\normalsize\itshape}
\setkomafont{paragraph}{\normalsize\mdseries\itshape}
\usepackage[onehalfspacing]{setspace}
\usepackage[stretch=10]{microtype}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{epigraph}
\usepackage[printonlyused]{acronym}
\usepackage{float}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{listings}
\usepackage[table,xcdraw]{xcolor}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[hidelinks,german]{hyperref}
\usepackage{csquotes}
\usepackage[backend=biber, style = apa, language=ngerman]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DeclareFieldFormat{apacase}{#1}
\DeclareLanguageMapping{ngergam}{ngerman-apa}
\addbibresource{references/references.bib}
\usepackage{blindtext}% only for the example
\begin{document}
\chapter{First Level}
\blindtext
\section{Second Level}
\blindtext
\subsection{Third level}
\blindtext
\subsubsection{Fourth level}
\blindtext
\paragraph{Fifth level}
\blindtext
\end{document}
结果: