図表目次における異なる章の図名間の垂直間隔

図表目次における異なる章の図名間の垂直間隔

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}

関連情報