首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >latex中具有note键环境的页边距注释

latex中具有note键环境的页边距注释
EN

Stack Overflow用户
提问于 2010-06-04 00:54:26
回答 1查看 2.1K关注 0票数 4

我需要在跳转环境旁边放置一个边距注释。如果我尝试在环境中使用\marginpar,我会得到一个错误:LaTeX Error: Not in outer par mode.

我曾尝试将\marginpar放在环境的\begin之前,但它最终与上一段的最后一行对齐,而不是与跳转环境的第一行对齐。

在下面的示例中,第一个页边距注释在制表符文本上方对齐,第二个在下方对齐。我尝试使用\vspace将顶部注释向下移动,除非在跳转环境和前面的段落之间发生分页--然后页边距注释和跳转文本出现在不同的页面上,否则效果很好。

你有什么办法让页边距注释与跳格文本的顶部对齐吗?

代码语言:javascript
运行
复制
\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}
EN

回答 1

Stack Overflow用户

发布于 2011-10-17 15:35:09

marginnote package提供了解决此问题的方法:

代码语言:javascript
运行
复制
\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}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2968079

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档