![表格列表中的距离较小](https://linux22.com/image/424290/%E8%A1%A8%E6%A0%BC%E5%88%97%E8%A1%A8%E4%B8%AD%E7%9A%84%E8%B7%9D%E7%A6%BB%E8%BE%83%E5%B0%8F.png)
如何设置表格(图表等)列表中各节编号之间的距离。我希望 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}