在题词之间添加垂直间距

在题词之间添加垂直间距

我正在写一篇论文,想在章节开始处的 \begin{epigraphs} 环境中的题词之间添加一些垂直间距。

梅威瑟:

\documentclass{report}
\usepackage{setspace}
\usepackage{epigraph}
\setlength{\epigraphrule}{0pt}
\onehalfspacing
\begin{document}
\chapter{Introduction}
\setlength{\epigraphwidth}{.95\textwidth}
\begin{epigraphs}
\qitem{``It's a poor sort of memory that only works backwards.'' \\*%
The White Queen to Alice}%
{--\textsc{Lewis Carroll} $\sim$ Through the Looking Glass}
\qitem{\textbf{Science is}, I believe, \textbf{nothing} but \emph{trained and organised common sense}, differing from the latter only as a veteran may differ from a raw recruit: and its methods differ from those of common sense only so far as the guardsman's cut and thrust differs from the manner in which a savage wields his club.}%
{---\textsc{Aldous Huxley}}
\end{epigraphs}
\end{document}

答案1

环境epigraphs是根据 定义的list;所以

\begin{epigraphs}\setlength{\itemsep}{<dimen>}

将会做你所希望的事。

\itemsep要为所有epigraphs环境设置值,请写入

\usepackage{etoolbox}
\patchcmd{\epigraphs}{\qitemlabel}{\qitemlabel\itemsep=<dimen>}{}{}

加载后epigraph(我们在 的定义中的适当位置添加设置\epigraphs,这是 LaTeX 看到 时执行的命令\begin{epigraphs})。

相关内容