圖表中不同章節的圖名稱之間的垂直間距

圖表中不同章節的圖名稱之間的垂直間距

我正在使用該chngcntr包來防止在我的scrreprt.看一下下面的程式碼:

\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{footnote}{chapter}

雖然編號沒有中斷,但有時,我會在圖表中的參考文獻之間留出一點垂直空間,這再次起到了來自不同章節的圖之間除數的作用。有辦法擺脫它嗎?

在我的.lof圖表檔案中,這些線條恰好是造成此垂直空間的原因:

\addvspace {10\p@ }
\defcounter {refsection}{0}\relax
\addvspace {10\p@ }

編輯:範例程式碼來說明我的意思:

\documentclass[a4paper,fontsize=11pt,oneside,parskip=half]{scrreprt} 

\usepackage[demo]{graphicx}

\usepackage{scrhack} 

\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{footnote}{chapter}

\begin{document}

\listoffigures


\clearpage

\chapter{Chapter}

\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig1}
\end{figure}
\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig2}
\end{figure}
\chapter{Chapter}
\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig3}
\end{figure}
\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig4}
\end{figure}

\chapter{Chapter}
\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig5}
\end{figure}
\begin{figure}[htb]
\includegraphics{image}
\caption{First Figure}
\label{fig6}
\end{figure}

\end{document}

在此輸入影像描述

答案1

好吧,確實沒有必要在這裡深入源碼衝浪。

\KOMAoption{chapteratlists}{0pt}

將設定章節間隙至零點。由套件控制的所有清單tocbasic都會受到影響。

或者,您可以使用\KOMAoption{listof}{nochaptergap}.

相關內容