목차에 "목차" 항목 추가

목차에 "목차" 항목 추가

이 닫힌 질문과 같은 문제가 있을 수 있습니다.목차에 목차 추가

내 목차에 페이지 번호 등과 함께 "목차" 줄을 표시하고 싶습니다.

나는 결과없이 명령 \addcontentsline{toc}{chapter}{Table of contents}아래에 넣으려고했습니다 .\tableofcontents

여기 내 MWE가 있습니다

\documentclass{report}

\begin{document}

\tableofcontents
\addcontentsline{toc}{chapter}{Table of contents}

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}

\end{document}

답변1

\documentclass{report}
\usepackage{tocbasic}
\setuptoc{toc}{totoc}
\begin{document}

\listoftoc[Something like the Table of \contentsname]{toc}

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}

\end{document}

Something like the Table of \contentsname" "를 목차 제목으로 바꿀 수 있습니다 . 제목을 변경한 후에는 LaTeX를 두 번 이상 실행해야 합니다.

관련 정보