更改 Beamer (LaTeX) 中注释的文本宽度
我一直在使用 Beamer 类在 LaTeX 中创建演示文稿,我喜欢它。最近,我开始使用 \note 命令在我的讲义中添加注释,以便我有一个打印版本,其中包含一些提示,以提醒自己在讲座中想说的事情。
我对笔记环境中的较长行有疑问,因为它们似乎溢出了页面的右端而没有正确格式化。我不知道这是否是有原因的,但无论如何,我想知道如何改变它。显然,我不想在任何地方更改文本的宽度,而只想在注释环境中更改。
这是一个最小的示例:
\documentclass[beamer]{beamer}
\title{An example of itemize in notes not working in beamer}
\usetheme{Boadilla}
\setbeameroption{show notes}
\begin{document}
\begin{frame}
$$ e^{i\pi}+1=0$$
\end{frame}
\note[itemize]{
\item At vero eos et accusamus et iusto odio dignissimos ducimus qui blandiis pra
}
\end{document}
如果没有 [itemize] 选项,它可以正常工作,但是如果您手动放置 \begin{itemize}...\end{itemize} 环境,结果是相同的。
有什么想法吗?
谢谢
I've been using the beamer class to create presentations in LaTeX and I love it. Recently I started using the \note command to add notes to my handout so that I have a printed version with some pointers to remind myself of things I want to say in the lecture.
I have a problem with the longer lines in the notes environment as they seems to spill of the right end of the page without formatting correctly. I don't know if this is so for a reason, but in any case, I would like to find out how to change it. Clearly, I do not want to change the width of the text everywhere, only in the note environment.
Here is a minimal example:
\documentclass[beamer]{beamer}
\title{An example of itemize in notes not working in beamer}
\usetheme{Boadilla}
\setbeameroption{show notes}
\begin{document}
\begin{frame}
$ e^{i\pi}+1=0$
\end{frame}
\note[itemize]{
\item At vero eos et accusamus et iusto odio dignissimos ducimus qui blandiis pra
}
\end{document}
Without the [itemize] option it works fine, but if you put a \begin{itemize}...\end{itemize} environment manually the result is the same.
Any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我终于找到了一个很好的答案,通过重新发布 TeX.SE。事实证明,有一个小 bug 在 Beamer 中负责此行为。 TeX.SE 站点中给出了解决方法。希望解决方法或真正的修复将包含在下一个 Beamer 版本中,正如目前计划的那样。
干杯。
I finally found a good answer, by re-posting on TeX.SE. It turns out that there's a small bug in Beamer that is responsible for this behavior. A workaround is given in the TeX.SE site. Hopefully, the workaround or a real fix will be included in the next Beamer release, as is currently planned.
Cheers.
我遇到了同样的问题,所以我在序言中创建了一个命令,为我的笔记页面定义了新的样式,并且我还稍微更改了笔记的模板。这就是我所拥有的(就在 \begin{document} 之前:
因此,我没有在文档中使用 \note,而是调用 \notepage,并且注释将按照我之前定义的方式进行格式化。尝试这种格式,如果您不喜欢,您可以更改页边距、缩进和段落之间跳过的值以满足您的需要。
顺便说一句,我不明白你为什么使用
我这样做的方法是根据我的需要提供三个选项并注释/取消注释:
I had the same problem, so I created a command in the preamble which defined a new style for my note page, and I also changed the template of the notes a bit. This is what I have (just before the \begin{document}:
So instead of using \note in the document, I call \notepage, and the note will be formatted the way I defined before. Try this formatting and if you don't like you can change the values of the margins, indentation and skip between paragraphs to suit your needs.
By the way, I don't understand why you are using
The way I do it is to have the three options and comment/uncomment according to what I need:
在采取更严厉的措施之前尝试改变主题。
我注意到将主题从 Boadilla 更改为其他主题,或者完全删除对主题的引用,解决了问题。 FWIW,我用来测试的两个主题是华沙和柏林。
我发现上述情况适用于以下版本的 Beamer:3.07-2 和 3.10-2。
Try changing the theme before going to more drastic measures.
I noticed that changing the theme from Boadilla to something else, or deleting the reference to a theme altogether, solved the problem. FWIW, the two themes I used to test this were Warsaw and Berlin.
I found the above to be true for the following versions of Beamer: 3.07-2 and 3.10-2.