
memoir
いくつかのページノート (別名、末尾のノート) をぶら下げインデント リストとしてフォーマットしようとしています。
これが私の MWE です:
\documentclass[a5paper]{memoir}
\usepackage[nopar]{lipsum}
\makepagenote
\renewcommand*{\pagenotesubhead}[3]{}
\renewcommand{\prenoteinnotes}{\begingroup\par\noindent\hangindent 1em}
\renewcommand{\postnoteinnotes}{\par\endgroup}
\renewcommand*{\notenuminnotes}[1]{\normalfont\hbox to 1em{#1}}
\begin{document}
Lalala%
\pagenote{Hopefully antidisestablishmentarianism antimatter extremely difficult justification challenges}
Lelele%
\pagenote{\lipsum[47]}
\printpagenotes
\end{document}
問題は、動作の仕方により\printpagenotes
、ノート番号とノートテキストの間に余分なスペースが挿入されてしまうことです。さらに、結果に示すように、ここには湿った接着剤もあります。
青い線は、メモのテキストの開始を設定することを希望した場所 (この例では 1em) を示しており、赤い線は「Hope」と「Don」を示しており、接着剤が湿っている証拠です。
これをどう修正したらよいかわかりません。誰か助けていただけませんか?
答え1
\renewcommand\prenotetext{\ignorespaces}
これを見つけるために、私は\tracingall
次のように付け加えました
\prenotetext ->
{blank space }
{the letter H}
したがって、\prenotetext
スペースではないと定義すると問題は解決しますが、スペースを作成すると、\ignorespaces
単に「万全の対策」が必要になります。