在投影仪中,缩小的文本覆盖脚线
我正在尝试设置自己的主题,但使用我的配置(具有比正常标题更大的标题)和框架中的收缩选项,文本会覆盖脚线。我猜它可能来自内容高度配置。
脚线的配置方式是:
\setbeamertemplate{footline}{
\ifnum\thepage>1\relax%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{title in head/foot}%
\hspace*{2mm}
\usebeamerfont{structure}
\footnotesize\hspace*{16mm} \Ffootline \hspace{6mm}
\vspace*{2mm}
\end{beamercolorbox}
\fi
}
如果有帮助的话。
I'm trying to set up my own theme but with my configuration (with a bigger than normal heading) and with shrink option in frame, the text override the footline. I guess it may come from the content height configuration.
The footline is configured by:
\setbeamertemplate{footline}{
\ifnum\thepage>1\relax%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{title in head/foot}%
\hspace*{2mm}
\usebeamerfont{structure}
\footnotesize\hspace*{16mm} \Ffootline \hspace{6mm}
\vspace*{2mm}
\end{beamercolorbox}
\fi
}
If it can help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题在于,beamer 计算文档开头处的头部/尾部高度。使用您的代码,它认为脚线没有高度,因为此时的页码不> 1。
解决方案 1:
要解决此问题,请仅更改标题页的脚行,而不是所有页面的脚行。 1. 您可以使用 https://topanswers.xyz/tex?q= 中类似的方法1004#a1198
解决方案 2:
使用与 https://topanswers.xyz/tex?q=1397#a1642
解决方案 3:
喜欢您建议你自己,确保你的头/脚线始终具有相同的高度,即使在不可见的页面上
更新:
使用 当前的beamer开发版本(应包含在beamer v3.70或更高版本中),beamer现在重新计算每个开始处的头高和脚高框架,这使得各种解决方法变得不必要。
The problem is that beamer calculates the height of head/footline at the start of the document. With your code, it thinks that the footline has no height, because the pagenumber at this point is not >1.
Solution 1:
To fix this, change the footline only for the title page, not for all pages < 1. You can use a similar approach as in https://topanswers.xyz/tex?q=1004#a1198
Solution 2:
Manually force a recalc using the same technique as https://topanswers.xyz/tex?q=1397#a1642
Solution 3:
Like you proposed yourself, make sure that your head/footline always has the same height, even on the page where it is not visible
Update:
With the current beamer development version (should be included in beamer v3.70 or newer), beamer now recalculates the head- and footheight at the start of each frame, this making the various workarounds unnecessary.