![minitoc:没有规则和标题](https://linux22.com/image/359522/minitoc%EF%BC%9A%E6%B2%A1%E6%9C%89%E8%A7%84%E5%88%99%E5%92%8C%E6%A0%87%E9%A2%98.png)
按照下面这个简单的例子,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}