With a regular article/report/… class, you can use the showframe
package to draw outlines of where the various regions of the page lie. I cannot get the same functionality with beamer
, however. Using geometry
with its showframe
option similarly does not work.
How can I get this functionality with beamer
?
MWE:
\documentclass{beamer}
%\usepackage[showframe]{geometry} % Doesn't work
\usepackage{showframe} % Doesn't work
\begin{document}
\begin{frame}{Slide Title}
\centering
Centered Text
\end{frame}
\end{document}
Edit:
A similar question is posed here that asks for a diagram depicting the layout of the page with lengths of various parameters given. The \layout
package gives this output when applied to the MWE:
While this output gives margin information and general layout information, it does not give the visual output that I am looking for, with boxes overlaid on my own content.
I am less interested in seeing the value of margins and other lengths than I am in visualizing the fit of my own content on the slide and seeing how close the boxes actually are to content. This is why I desire functionality more close to what the showframe
package would provide.
Best Answer
I applied to
beamer
the answer at Displaying layout marks in a document set with different layouts, which gives some of the information you seek. It shades the main text block, that margin block, the header block, and the footer block.However, the beamer frame sits atop the underlying page dimensions, and so things like the frame title are not captured by the normal page text blocks. Further, things like
\marginpar
s can be done inbeamer
, but not inside aframe
. Lastly, there are some page dimensions such as\textheight
which could not be set in the preamble without being immediately overwritten. Interestingly, I discovered that when not in aframe
,beamer
will page break and move residual text to the next page (something it does not do inside aframe
).This is a slide within a frame:
This is the next slide, not in a frame:
EDITED to account for the 2018.12.01 TeX kernel changes to
\smash
.