
假設我有 2 個部分,並且我不想在目錄中為每個部分顯示相同級別的詳細資訊。是否可以差異化設定 TOC 的深度?
更新:這是一個 MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\title{Specifying locally TOC depth}
\begin{document}
\maketitle
\tableofcontents
\part{first part}
\chapter{first chapter}
\section{first section}
\subsection{subsection}
\part{second part}
\chapter{second chapter}
\section{second section}
\subsection{subsection}
\end{document}
例如,我想要的是第一部分的目錄顯示章節、章節和小節,而第二部分僅顯示章節、章節。是否可以 ?
答案1
嘗試https://www.ctan.org/pkg/tocvsec2應該按原樣工作應該為每個部分的目錄深度提供更多功能。