![목록 목록에서 들여쓰기를 제거하는 방법](https://rvso.com/image/254686/%EB%AA%A9%EB%A1%9D%20%EB%AA%A9%EB%A1%9D%EC%97%90%EC%84%9C%20%EB%93%A4%EC%97%AC%EC%93%B0%EA%B8%B0%EB%A5%BC%20%EC%A0%9C%EA%B1%B0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%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}