Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footline Missing When Storing Frame in a Box #893

Open
EagleoutIce opened this issue Apr 17, 2024 · 3 comments
Open

Footline Missing When Storing Frame in a Box #893

EagleoutIce opened this issue Apr 17, 2024 · 3 comments

Comments

@EagleoutIce
Copy link

I (rather naively) tried to store a complete beamer frame in a box so that i can re-use important slides of my presentation together on one summary slide. However, no matter how I store the respective frame, the footline (and potentially other things I haven't found yet) are missing when using the box.

For example, the following:

\begin{frame}[label=hey]{Hey}
	Sample frame!
\end{frame}

\newsavebox\foo
\setbox\foo=\hbox{\vbox{%
	\againframe{hey}%
}}%

\begin{frame}{ho}
	\fboxsep0pt
	\fbox{\scalebox{.5}{\usebox\foo}}
\end{frame}

recreates "hey" correctly (regarding the title and framecontent), however, the footline is missing (no matter how i define the footline template).

I can (re-)create the footline manually like this:

\setbox\foo=\hbox{\vbox{%
	\againframe{hey}%
	\usebeamertemplate{footline}%
}}%

But now, the bounding box is wrong and the leftmargin of the text is ignored (generally it appears to me that the box has the bounding box of the text content, ignoring the title/headline as well).

I can fix this (hopefully correctly) by adding the \beamer@leftmargin:

\makeatletter
\setbox\foo=\hbox{\vbox{\hspace*{\beamer@leftmargin}\hbox{\vbox{%
	\againframe{hey}%
}}\usebeamertemplate{footline}}}%

While the frame "seems" correct to me, I have no idea

  1. why the footline is missing when the frame is reused in a box and if this is to be considered a bug or if this is the result of my ignorance
  2. if this is the "intended" way to re-create the frame
  3. if other things will break when i do this (i have already found that tikzpictures using overlay and remember picture weirdly attach to the parent frame and i am not sure how to fix this).

I tried various other variations (with lrbox, adjustbox etc.) but none of them worked. Googling (and using ChatGPT) did not result in anything usable for me. Sorry to bother.

@samcarter
Copy link
Collaborator

IMHO, the safest way to re-use frames is to make a copy of the pdf and include the frames as images. This can even be automated, see e.g. https://tex.stackexchange.com/a/71003/36296

@EagleoutIce
Copy link
Author

Thank you very much for pointing that out i didn't find this while searching. However, is there a reason for why exactly the footer does not show automatically when used this way?

@samcarter
Copy link
Collaborator

samcarter commented Apr 20, 2024

I didn't test because there is no compilable example and I didn't fancy puzzling the code fragments together, but if I had to guess: it is the same as #485 (comment)

(while yours isn't on the note page, it seems to be the same situation as yours is also within the page and thus the page decoration with header and footer won't kick in)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants