リストのリストのインデントを削除する方法

リストのリストのインデントを削除する方法

リスト ( から\lstlistoflistings) は、テーブルのリスト ( \listoftables) と比較してインデントされています。余分なインデントを削除するにはどうすればよいでしょうか。

\documentclass{memoir}
\usepackage{listings}

\begin{document}

\listoftables
\lstlistoflistings

\chapter{The chapter}

\begin{table}[h]
\caption{Table}
\end{table}

\begin{lstlisting}[caption={List}]
\end{lstlisting}

\end{document}

答え1

listings'のインデントは\lstlistoflistings、標準クラスの LoF/LoT のインデントに似ています。 の適応は次のとおりですmemoir

\documentclass{memoir}

\usepackage{listings}

\makeatletter
\renewcommand*{\l@lstlisting}{\@dottedtocline{1}{0em}{2.3em}}
\makeatother

\begin{document}

\listoftables

\lstlistoflistings

\chapter{The chapter}

\begin{table}[h]
\caption{Table}
\end{table}

\begin{lstlisting}[caption={List}]
\end{lstlisting}

\end{document}

ここに画像の説明を入力してください

関連情報