我正在尝试让下面的代码运行,但我不确定我做错了什么。
\section*{ASTERISK SECTION}
\mtcaddsection[ASTERISK SECTION]
我可以\mtcaddchapter[ASTERISK CHAPTER]
按照自己的意愿将其添加到主目录中,而无需添加数字或影响章节数量:
如何在 中获取minitoc
未编号条目的条目\section*{ASTERISK SECTION}
?
这是我当前的 MWE:
\documentclass[11pt,oneside]{book} % [text size]{document type}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr, blindtext} %for testing
\usepackage{minitoc} % Get chapter level TOC
\renewcommand{\mtctitle}{TABLE OF CONTENTS}
\setcounter{parttocdepth}{4} % set minitoc sublevel
\setcounter{secnumdepth}{4} % to get X.X.X.X
\mtcsetrules{*}{off}
\dominitoc
\begin{document}
\dominitoc
\tableofcontents
\chapter{FIRST CHAPTER}\label{ch5}
\minitoc{\protect\thispagestyle{fancy}}\newpage
\section{Minitoc C1 S1}
\blindtext \blindtext
\subsection{C1 SS1}
\blindtext \blindtext
\subsection{C1 SS2}
\blindtext \blindtext
\subsection{C1 SS3}
\blindtext \blindtext
\subsubsection{C1 SS3 S1}
\blindtext \blindtext
\section{Minitoc Section 2}
\blindtext \blindtext
\subsection{My Section 2 Subsection 1}
\blindtext \blindtext
\subsection{My Section 2 Subsection 2}
\blindtext \blindtext
\subsection{My Section 2 Subsection 3}
\blindtext \blindtext
\subsubsection{My Section 2 Subsection 3 Subsubsection 1}
\blindtext \blindtext
\section*{ASTERISK SECTION}
% \mtcaddsection[ASTERISK SECTION]
\mtcaddchapter[ASTERISK CHAPTER]
\blindtext \blindtext
\chapter{SECOND CHAPTER}
\blindtext \blindtext
\end{document}