我怎样才能让作者在目录中排在第一位(在 scrbook 类中 - 我确实找到了似乎适用于其他类的解决方案......),同时不改变标题等任何内容,这样效果很好?可能有一个简单的解决方案,但我没有看到!谢谢你的帮助!
这是我的最小示例:
\documentclass[paper=A4, 10pt, headings=small, toc=index, listof, toc=flat]{scrbook}
\usepackage[papersize={17.0cm, 24cm},left=2.2cm, right=2.8cm, top=2.6cm, bottom=0.8cm, includefoot]{geometry}
\usepackage{fontspec}
\usepackage[utf8]{luainputenc}
\setmainfont[Ligatures=TeX]{texgyrepagella-regular.otf}[BoldFont = texgyrepagella-bold.otf , ItalicFont = texgyrepagella-italic.otf , BoldItalicFont = texgyrepagella-bolditalic.otf ]
\setkomafont{disposition}{\normalcolor\bfseries\centering}
\setkomafont{sectioning}{\rmfamily\normalfont\bfseries}
\setkomafont{pagehead}{\rmfamily\scshape\small}
\addtokomafont{chapterentry}{\normalfont}
\usepackage[greek,ngerman]{babel}
\usepackage{luatex85}
\usepackage{tocbasic}
\usepackage{blindtext}
\usepackage{textcomp}
\linespread{1.1}
%%%%%%%%%%%%%%
\usepackage{suffix}
\newcommand{\chapterauthor}[1]{\authortoc{#1}\printchapterauthor{#1}\markright{#1}}% setting \markright to author
\usepackage{scrlayer-scrpage}
\clearpairofpagestyles
\renewcommand{\chaptermarkformat}{}
\cohead{\small{\leftmark}}
\cehead{\small{\rightmark}}
\cfoot*{\pagemark}
\makeatletter
\newcommand{\printchapterauthor}[1]{%
{\centering\vspace*{10pt}%
\linespread{1.1}\large\scshape#1%
\par\nobreak\vspace*{30pt}}
\@afterheading%
}
\newcommand{\authortoc}[1]{%
\addtocontents{toc}{\vskip-10pt}%
\addtocontents{toc}{%
\protect\contentsline{chapter}%
{\mdseries\scshape\protect\normalsize#1}{}{}}
\addtocontents{toc}{\vskip5pt}%
}
\makeatother
\begin{document}
\tableofcontents
\addchap{\centering Überlegungen zu allem Möglichen}
\chapterauthor{Mirijam Mustermann}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\addchap{\centering Fiktion und Fakten}
\chapterauthor{Eva Mustermann}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\end{document}