![Como remover o recuo na lista de listagem](https://rvso.com/image/254686/Como%20remover%20o%20recuo%20na%20lista%20de%20listagem.png)
A lista (de \lstlistoflistings
) é recuada em comparação com a lista de tabelas ( \listoftables
). Como posso remover os recuos extras?
\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}
Responder1
O recuo em listings
' \lstlistoflistings
se assemelha ao do LoF/LoT nas classes padrão. Aqui está a adaptação para 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}