문제
다음과 같은 두 개의 내용 테이블이있는 라텍스 문서를 만들고 싶습니다.
내용 개요
- 1. 소개
- 2- 솔루션
자세한 내용
- 1. 소개
- 1.1- 문제
- 1.2- 왜?
- 2- 솔루션
- 2.1- 단계 a
- 2.2- 단계 b
나는 함께 시도했다
\setcounter{tocdepth}{1}
\tableofcontents
\setcounter{tocdepth}{2}
\tableofcontents
그러나 이것은 필요에 따라 첫 번째 목차 만 표시됩니다. 두 번째 내용 테이블은 비어 있습니다 ... (두 번째 목차는 실제로 두 가지 없이도 비어 있습니다. \setcounter
윤곽.)
(관련 질문 : 목차 제목을 변경하는 방법 (기본 내용과 다른 것으로)?)
해결책
당신은 시도 했습니까? 단장 패키지?
다른 팁
RenewCommand를 사용하여 TOC의 이름을 변경할 수 있습니다.
\renewcommand{\contentsname}{My New Table Of Contents}
예시:
\documentclass{amsart}
\usepackage{hyperref}
\renewcommand{\contentsname}{My New Table of Contents}
\begin{document}
\setcounter{tocdepth}{3}
\tableofcontents
\newpage
\newpage
\section{Section a}
Some a text.
\subsection{Subsection b}
Some b text.
\subsubsection{Subsubsection c}
Some c text.
\newpage
\section{Section d}
Some d text.
\subsection{Subsection e}
Some e text.
\end{document}
Maketitle 명령의 모양을 renewCommand를 사용하여 사용자 정의 했으므로 renging tableOfContents를 살펴 보겠습니다.
제휴하지 않습니다 StackOverflow