如何设置表格(图表等)列表中各节编号之间的距离。我希望 1.x 和 2.x 之间留出较小的距离...还有 2.x 和 3.x 等等...谢谢!
\documentclass[12pt,listof=entryprefix]{scrartcl}
\usepackage[T1]{fontenc} % Aktiviert EC-Schriftarten
\usepackage[utf8]{inputenc} % Dateikodierung
\usepackage[ngerman]{babel} % Deutsche Einstellung
\usepackage{lmodern} % Latin Modern
\BeforeStartingTOC[lot]{\renewcommand*\autodot{:}}
\renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcommand*\listoflotentryname{\bfseries\tablename}
\counterwithin{table}{section}
\begin{document}
\listoftables \newpage
\section{First Section}
\begin{table}[htb]
\caption{Test}
\end{table}
\begin{table}[htb]
\caption{Test}
\end{table}
\section{Second Section}
\begin{table}[htb]
\caption{Test}
\end{table}
\begin{table}[htb]
\caption{Test}
\end{table}
\end{document}
答案1
一种可能性是:
\documentclass[12pt,listof=entryprefix]{scrartcl}[2020/01/24]
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}% only needed with older TeX distributions
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\BeforeStartingTOC[lot]{\renewcommand*\autodot{:}}
\renewcaptionname{ngerman}{\tablename}{Tab.}
\renewcommand*\listoflotentryname{\bfseries\tablename}
\counterwithin{table}{section}
\newcommand*{\sectionlistsgap}{10pt}
\makeatletter
\newcommand*{\addsectionlistsgap}[1]{%
\doforeachtocfile[float]{%
\addtocontents{\@currext}{\protect\addvspace{\sectionlistsgap}}%
}%
}
\makeatother
\AddtoDoHook{heading/branch/nostar/section}{\addsectionlistsgap}
\begin{document}
\listoftables \clearpage
\section{First Section}
\begin{table}[htb]
\caption{Test}
\end{table}
\begin{table}[htb]
\caption{Test}
\end{table}
\section{Second Section}
\begin{table}[htb]
\caption{Test}
\end{table}
\begin{table}[htb]
\caption{Test}
\end{table}
\end{document}