Latex:文本应自动填充 Beamer 幻灯片中的框架
在投影仪框架中,我希望内容均匀地分布在框架上。
使用选项 \documentclass[slidestop]{beamer} 我可以轻松地将内容指定为顶部/中心对齐,但是当我幻灯片上只有几个项目符号时,它们会聚集在顶部,我希望投影仪自动决定它们之间的间距使它们均匀分布。
如果不通过反复试验放置vspace,这可能吗?
In beamer frames I want the contents to be spread out evenly across the frame.
Using option \documentclass[slidestop]{beamer} I can easily specify the contents to be top/center aligned but when I have only few bullets on a slide they get clustered together at the top, I want beamer to decide the spacing between them automatically to spread them evenly.
Is this possible without putting vspace by trial and error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为使用 \vfill 会减少试错部分。每个项目符号之间的一个 \vfill 应保证间距均匀。尝试在项目符号之前和/或之后使用 \vfill 来与前面的文本或页面底部分开。我不使用也不了解 Beamer,但我怀疑有一种方法可以将 \vfill 命令放入 Beamer 模板中。
根据您的评论,您可以将 vfill 定义为在主列表项中自动使用,但在子项中没有 vfill 的一种方法。这种方式允许您使用相同的 \item 命令,无论您是在主列表中还是在嵌套列表中,但需要您定义或重新定义环境,并注意何时添加主(即 vfilled)列表当您添加非填充(即嵌套)列表时:
I think using \vfill would reduce the trial and error part. One \vfill between each bullet should guarantee even spacing. Try \vfill before and/or after bullets to get separation from preceding text or from bottom of page. I don't use or know Beamer, but I suspect there's a way to put the \vfill commands into the Beamer template.
Per your comment, here's one way you could define vfill to be automatically used in main list items but have no vfill in subitems. THis way lets you use same \item command regardless of whether you're in main list or in nested list, but requires you to define or redefine environments, and to be aware of when you're adding a main (i.e, vfilled) list and when you're adding a non-vfilled (i.e, nested) list:
此处添加另一个示例,因为第一个答案变得太拥挤。测试了更改标签命令,你知道吗,它似乎有效。不过,它会给出错误,我确信这与将 \vfill 作为标签构造的一部分有关。我很惊讶它似乎确实创建了所需的输出,但该方法需要一些调整才能使其正常工作:
Adding another sample here because first answer getting too crowded. Tested altering the label commands and, what do you know, it seems to work, sort of. It gives errors, though, which I'm sure are related to having the \vfill as part of the label construct. I'm surprised it does seem to create the desired output, but the method would need some tweaking to get it to work without errors: