小節未顯示在目錄中

小節未顯示在目錄中

我將章節(由節和小節組成)包含在主文件中,然後從那裡編譯整個文件。我正在使用"thesis.cls"提供給我的文件。唯一的問題是章節內的小節不會顯示在目錄中,而所有節都會顯示在目錄中(introduction是一章並且內部有小節)。現在,我已經確保這些小節沒有*(即 subsection*{methods})%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%

問題:

嗨...有人可以幫助我如何讓小節的字體大小與節的字體大小相同嗎?我的論文需要始終使用相同的字體......再次非常感謝

答案1

取出tocnosub第一行:

\documentclass[noragright,centerchapter,12pt]{thesis}
\usepackage[margin=1in]{geometry}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\author{cat}
\title{cat}
\adviser{cat}
\begin{document}

\maketitle

\parindent 1em%

\frontmatter
\tableofcontents

\chapter{cats}
\section{cats}
\subsection{cats}

\end{document}

相關內容