![如何在每部分之后展示我的计划(\part)?(回忆录类)](https://linux22.com/image/297136/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%AF%8F%E9%83%A8%E5%88%86%E4%B9%8B%E5%90%8E%E5%B1%95%E7%A4%BA%E6%88%91%E7%9A%84%E8%AE%A1%E5%88%92%EF%BC%88%5Cpart%EF%BC%89%EF%BC%9F%EF%BC%88%E5%9B%9E%E5%BF%86%E5%BD%95%E7%B1%BB%EF%BC%89.png)
我的文档的第一页显示了一个目录。但是,我想在每个\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}
屏幕截图仅显示第一部分的目录