Das gleiche mit \setcounter{tocdepth}{0}
Wie kann ich das so definieren, dass das funktioniert?
\documentclass[paper=A4, headings=small, toc=listof]{scrbook}
\usepackage[papersize={17.0cm,24cm}, left=2.2cm, right=2.8cm, top=2.6cm, bottom=0.8cm, includefoot]{geometry}
\usepackage[german]{varioref}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\usepackage[utf8]{luainputenc}
\usepackage{graphicx}
\usepackage{float}
\usepackage{luatex85}
\usepackage{tocbasic}
\setkomafont{disposition}{\normalcolor\bfseries}
\setkomafont{pagehead}{\small\emph}% Kopf in \small
\addtokomafont{chapterentry}{\normalfont}
\addtokomafont{caption}{\centering\footnotesize}
\renewcommand*{\raggedsection}{\centering}
\usepackage{ragged2e}
\setcaptionalignment{C}
\usepackage{scrlayer-scrpage}
\automark{chapter}
\renewcommand*{\chaptermark}[1]{
\markright{#1}
}
\clearpairofpagestyles
\chead{\headmark}
\ofoot*{\pagemark}
\setcounter{secnumdepth}{-\maxdimen}% Gliederungsbefehle ohne Nummern
% Neuen Verzeichniseintragstyp chapterauthor definieren.
\DeclareTOCStyleEntry[%
level=\chaptertocdepth,
beforeskip:=chapter,
indent=0pt,
numwidth=0pt,
entryformat=\scshape,
linefill=\hfill,
pagenumberbox=\gobble,
]{tocline}{chapterauthor}
\newcommand*{\gobble}[1]{}
\DeclareTOCStyleEntry[beforeskip=0pt]{chapter}{chapter}% Kein Abstand mehr vor Kapiteleinträgen im Inhaltsverzeichnis
\newcommand*{\chapterauthor}[1]{%
\cleardoublepage
\addchapterauthortocentry{}{#1}%
\markleft{#1}
\setchapterpreamble{%
\centering\usekomafont{chapterauthor}{#1}\par
\vspace{2\baselineskip}%
}%
}
\newkomafont{chapterauthor}{\large\scshape}
\newcommand{\addchapterauthortocentry}[2]{%
\addtocentrydefault{chapterauthor}{#1}{#2}%
}
\setcounter{tocdepth}{\sectiontocdepth} %Dieser Befehl wirkt nicht nur auf das Inhaltsverzeichnis, sondern auch auf das Abbildungsverzeichnis, sodass, wenn ich \chaptertocdepth eingebe, im Abbildungsverzeichnis alle Einträge verschwinden.
\flushbottom
\begin{document}
\tableofcontents
\listoffigures
\chapterauthor{Max Mustermann}
\addchap{Das eine zweifelhafte Bild}
\blindtext
\addsec{Über ein anderes zweifelhaftes Bild}
\blindtext
\addsec{Und noch ein zweifelhaftes Bild}
\blindtext
\begin{figure}
\centering
\includegraphics[width=0.9\linewidth]{Abbildungen/ABB01}
\caption[Cousine Rosi]{Cousine Rosi, Öl auf Leinwand, ca. 1760.}
\label{fig:abb01}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=0.9\linewidth]{Abbildungen/ABB04}
\caption[Cousin Leopold]{Cousin Leopold, Öl auf Leinwand, ca. 1766.}
\label{fig:abb04}
\end{figure}
\end{document}

ABB04:

Vielen Dank für eure Hilfe!

