我的文档的第一页显示了一个目录。但是,我想在每个\part
标题后显示一个计划。我完全不知道该怎么做。我应该\tableofcontents
再次使用吗?
\documentclass{memoir}
\begin{document}
\tableofcontents
\part{Part ONE}
%HERE : show ONLY the plan iof the part ONE, that is to say chapter one + its section and Chapter two
\chapter{Chapter ONE of PART ONE}
\section{Section}
\chapter{Chapter TWO of PART ONE}
\part{Part TWO}
%HERE : show ONLY the plan iof the part TWO, that is to say chapter one + its section and Chapter two
\chapter{Chapter ONE of PART TWO}
\section{Section}
\chapter{Chapter TWO of PART TWO}
\end{document}
谢谢
答案1
使用minitoc
包和宏\doparttoc
和\partdoc
(在应该出现的位置),可以轻松实现:
\documentclass{memoir}
\usepackage{minitoc}%
\doparttoc% Prepare minitoc package for part tocs usage
\begin{document}
\tableofcontents
\part{Part ONE}
\parttoc % Enable for the first part
\chapter{Chapter ONE of PART ONE}
\section{Section}
\chapter{Chapter TWO of PART ONE}
\part{Part TWO}
\parttoc % Enable for the second part etc.
\chapter{Chapter ONE of PART TWO}
\section{Section}
\chapter{Chapter TWO of PART TWO}
\end{document}
屏幕截图仅显示第一部分的目录