
목록( \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}