
Список (из \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}