
我正在嘗試在我的回憶錄文件中添加懸掛段落。它不起作用。下面的 MWE 不會導致錯誤,但段落沒有縮排。例如,「that」一詞位於「定義」中 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
。list
如果您打算flexlabelled
在其中使用,您也應該根據環境來定義。