![リストのリストのインデントを削除する方法](https://rvso.com/image/254686/%E3%83%AA%E3%82%B9%E3%83%88%E3%81%AE%E3%83%AA%E3%82%B9%E3%83%88%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%87%E3%83%B3%E3%83%88%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95.png)
リスト ( から\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}