我需要在跳转环境旁边放置一个边距注释。如果我尝试在环境中使用\marginpar,我会得到一个错误:LaTeX Error: Not in outer par mode.
我曾尝试将\marginpar放在环境的\begin之前,但它最终与上一段的最后一行对齐,而不是与跳转环境的第一行对齐。
在下面的示例中,第一个页边距注释在制表符文本上方对齐,第二个在下方对齐。我尝试使用\vspace将顶部注释向下移动,除非在跳转环境和前面的段落之间发生分页--然后页边距注释和跳转文本出现在不同的页面上,否则效果很好。
你有什么办法让页边距注释与跳格文本的顶部对齐吗?
\documentclass{memoir}
\begin{document}
Now is the time for all good men to come to the aid of their country.
\marginpar{a margin note}\begin{tabbing}
tabbing text a\\
tabbing text b\\
\end{tabbing}\marginpar{another margin note}
Now is the time for all good men to come to the aid of their country.
\end{document}
发布于 2011-10-17 15:35:09
marginnote
package提供了解决此问题的方法:
\documentclass{memoir}
\usepackage{marginnote}% http://ctan.org/pkg/marginnote
\begin{document}
Now is the time for all good men to come to the aid of their country.
\begin{tabbing}
tabbing text a \marginnote{a margin note} \\
tabbing text b
\end{tabbing}
Now is the time for all good men to come to the aid of their country.
\end{document}
https://stackoverflow.com/questions/2968079
复制相似问题