我在文中加入了边注,以帮助读者找到文中的重要术语。
现在,我应该把 marginpar 放在哪里才能与 term 保持一致?
Let us define \marginpar{Ipsum}\emph{Ipsum}: ...
或者
Let us define \emph{Ipsum}\marginpar{Ipsum}: ...
(补充:把它放在冒号后面会不会弄乱什么?)
Let us define \emph{Ipsum}:\marginpar{Ipsum} ...
答案1
我刚刚尝试过实验,尽管我的实验可能过于简单,但只要项目和边距之间没有空格,我就无法检测到这三种情况的任何差异。
我的实验是以下代码:
\documentclass{article}
\newlength\shove
\setlength{\shove}{23.57pt}
\begin{document}
How much is that doggie in the window?\hspace{\shove}
The one with the waggly tail?
How much is that doggie in the window?
I do hope that doggie's for sale!
How much is that doggie in the window?\hspace{\shove}
The one with the waggly tail?\marginpar{That's ``tail'' not ``tale''}
How much is that doggie in the window?
I do hope that doggie's for sale!
How much is that doggie in the window?\hspace{\shove}
The one with the waggly \marginpar{That's ``tail'' not ``tale''}tail?
How much is that doggie in the window?
I do hope that doggie's for sale!
How much is that doggie in the window?\hspace{\shove}
The one with the waggly tail\marginpar{That's ``tail'' not ``tale''}?
How much is that doggie in the window?
I do hope that doggie's for sale!
\end{document}
通过反复试验,\shove
可以在此处添加的最大空间是多少,而不会将“尾巴?”推到下一行。这三个在定位和间距方面看起来完全相同。
(当然,关于把它放在哪里,可能存在争议。语义原因,但我会把这个问题留给别人,因为我不知道在这种情况下适用的硬性规定,所以我的意见只是:一种意见。)