回忆录:在页码条目目录下设置章节标题

回忆录:在页码条目目录下设置章节标题

我正在尝试创建一个目录,其中章节号和页码在一行上,章节的简短摘要在下面的段落中。像这样:

Chapter 1 .................... 1
    In which the main character
    does this and that.
Chapter 2 .................... 23
    In which the main character
    continues  to  do  this and
    that.
Chapter 3 .................... 38
    In which the main character
    encounters an obstacle.

摘要文本(即“其中...”)已用作整个文档中的章节标题(即\chapter{In which...})。我该如何实现此效果?我正在使用类memoir

答案1

Memoir 提供了三个命令来实现这一点。在写有 的地方和目录中\chapterprecis{text}打印,仅在写有 的地方打印,仅在目录中打印。这三个命令的一个例子是text\chapterprecishere{text}text\chapterprecistoc{text}text

\documentclass[article]{memoir}

\begin{document}
\tableofcontents*

\chapter{First chapter}
\chapterprecis{In which the main character does this and that.}

\chapter{Second chapter}
\chapterprecishere{In which the main character continues  to  do  this and}

\chapter{Third chapter}
\chapterprecistoc{In which the main character encounters an obstacle.}
\end{document}

在此处输入图片描述

相关内容