\hangparas 在 Memoir 中不起作用

\hangparas 在 Memoir 中不起作用

我试图在我的回忆录文档中添加悬挂段落。但不起作用。下面的 MWE 不会导致错误,但段落没有缩进。例如,单词“that”直接位于 Definition 中的 D 下。我希望它稍微缩进一点。

MWE 开始

\documentclass[11pt, statementpaper]{memoir}
\title{Interesting words}
\author{Peter Flom}

\usepackage[T1]{fontenc}
\usepackage{lmodern}


\usepackage{leading}
\leading{14pt}

\setlrmarginsandblock{0.75in}{*}{*}
%\setulmarginsandblock{0.75in}{0.75in}{*}

\setsubsecheadstyle{\scshape\raggedright}


%\newcommand{\entry}[2]{\medskip\noindent{\Large\textbf{#1} (#2)\par}}
\newcommand{\entry}[2]{\medskip\noindent{\Large\textbf{#1} \normalsize{#2} \par}}



\newcommand{\sclabel}[1]{\leavevmode{\normalfont\scshape #1}}
%% Less spacing around lists
\firmlists

\begin{document}
\begin{hangparas}{.2in}{1}

\entry{antipelargy}{Presumably it rhymes with can tie del urge see} \index{antipelargy}
      \begin{flexlabelled}{sclabel}{0pt}{0.5em}{0.5em}{*}{\leftmargin}
         \item[Definition]
         Reciprocal love or kindness, especially that between parents and children. \cite{OED1971} The adjectival form is \emph{antipelargic}.
         \item[Etymology]
         From Greek \emph{antipelargia} (mutual love) via Latin and French \emph{antipelargie} (same meaning). The root is with stork (the bird) which was believed (by the Greeks) to be particularly affectionate (this may be the origin of the notion that storks deliver babies).
         \item[Usage]
         How odd that we have no other word for this and that this word is so rare. It isn't even in most dictionaries.
         \item[Examples] \leavevmode
         \begin{quote}
           Antipelargy is key to the survival of the species.
         \end{quote}
         \item[Frequency]
         There were no uses of \emph{antipelargy} in Google Ngram Viewer.
      \end{flexlabelled} \vspace{0.5in}


\end{hangparas}
\end{document}

MWE 结束

答案1

的定义flexlabelled

% memoir.cls, line 4739:
\newenvironment{flexlabelled}[6]%
  {\list{}{\nametest{#2}{*}%
           \ifsamename\else \labelwidth #2  \fi
           \nametest{#3}{*}%
           \ifsamename\else \labelsep #3 \fi
           \nametest{#4}{*}%
           \ifsamename\else \itemindent #4 \fi
           \nametest{#5}{*}%
           \ifsamename\else \leftmargin #5 \fi
           \nametest{#6}{*}%
           \ifsamename\else  \rightmargin #6 \fi
           \def\m@malabel{\@nameuse{#1}} \let\makelabel\m@malabel}}%
  {\endlist}

这意味着环境基于list,即设置

\parshape \@ne \@totalleftmargin \linewidth

每一个它排版的段落直到被覆盖或者在环境结束时设置被取消。

TeX 在排版段落时,\parshape如果其值非零,则使用 ,否则\hangindent,如果其值非零,则使用 。

因此,list内部hangparas会覆盖 的值。如果您打算在 内部使用 ,那么\hangindent您也应该根据 定义您的环境。listflexlabelled

相关内容