按照下面这个简单的例子,minitoc 规则和标题被隐藏了(即使有)\mtcrule
。然而根据 minitoc 文档,给定书籍文档类,默认会显示出来。
\documentclass[
11pt,
a4paper,
twoside,
openright
]{book}
\usepackage{minitoc}
\title{My title}
\author{You and me}
\dominitoc
\mtcrule
\begin{document}
\chapter{Introduction}
\minitoc
\section{Motivation and Challenges}
\section{Hypothesis and Objectives}
\section{Contributions}
\section{Outline of the Dissertation}
\end{document}
我遗漏了什么吗?
答案1
你必须\dominitoc
向后移动\begin{document}
(参见表 1.1-1.3手册minitoc
)也可以使用\tableofcontents
或\faketableofcontents
。您不需要\mtcrule
:
\documentclass[
11pt,
a4paper,
twoside,
openright
]{book}
\usepackage{minitoc}
\title{My title}
\author{You and me}
\begin{document}
\dominitoc
\tableofcontents% or \faketableofcontents
%\mtcrule
\chapter{Introduction}
\minitoc
\section{Motivation and Challenges}
\section{Hypothesis and Objectives}
\section{Contributions}
\section{Outline of the Dissertation}
\end{document}