목차의 문제 목록(목록 목록)

목차의 문제 목록(목록 목록)

Latex를 사용하여 문서를 작성하고 있습니다. 내 문서에 그룹 pf 코드가 있는데 이를 목차 목록에 표시하고 싶습니다. 그렇게 했지만 (코드 목록) 외에 추가 테이블에 (내용)이 계속 표시됩니다. 내가 사용한 것을 아래에서 찾을 수 있습니다.

\documentclass[11pt, oneside]{Thesis} % The default font size and one-sided printing (no margin offsets)
\begin{document}
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
\setstretch{1.3} % Line spacing of 1.3
\begin{titlepage}
\begin{center}
\lhead{\emph{Contents}} % Set the left side page header to "Contents"
\tableofcontents % Write out the Table of Contents
\lhead{\emph{List of Figures}} % Set the left side page header to "List of Figures"
\listoffigures % Write out the List of Figures
\lhead{\emph{List of Tables}} % Set the left side page header to "List of Tables"
\listoftables % Write out the List of Tables
\lhead{\emph{List of Listings}}
\addcontentsline{toc}{chapter}{Listings} %to show the listings as a chapter.
\lstlistoflistings
\end{center}
\end{titlepage}
\end{document} 

문서 제출 기한이 있으므로 이 문제를 파악하는 데 도움을 주십시오.

답변1

더 명확히 하기 위해 문제는 생성된 목록 목록이 다음과 같이 ToC에 포함된다는 것입니다.내용물대신에목록 목록. 해결책은 다음과 같습니다. 첫 번째 단계는 추가하는 것입니다.

\renewcommand\lstlistlistingname{List of Listings}

서문에서 이름을 변경하려면내용물에게목록 목록, 문서 내부 (뒤 \begin{document})에는 다음이 포함됩니다.

\addcontentsline{toc}{chapter}{\lstlistlistingname}{\lstlistoflistings}

원하는 위치에. 답변이 도움이 되기를 바랍니다.

관련 정보