-
Notifications
You must be signed in to change notification settings - Fork 844
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
Make plain frame command another instance of frame? #11
Comments
plain
frame command another instance of frame?
Sounds like a good idea!
Me neither. So do you want to continue or should I investigate at some point? |
I can at least provide some extra information after the presentation I'm using the theme for is done :) |
What is meant by "Beamer frame syntax"? If you just want \begin{plainframe}{...title...}
...
\end{plainframe} we should be able to accomplish this using |
I've finally done some research into this long-standing issue. I believe I originally misunderstood @talexand's request; by "matching frame syntax", he means implementing the standout plain slides as an optional argument to \begin{frame}[standout]
Questions?
\end{frame} (Obviously, we couldn't use As I understand it, doing this would allow users of emacs org-mode to generate the above frame using something like the following input. (Note: I have not actually tested it.)
AdvantagesMoving to an optional frame argument offers a couple mild advantages in addition to emacs org-mode compatibility.
DisadvantagesThe main disadvantage of this proposal is that I don't see a way of implementing the ImplementationTo implement the optional argument, we just have to move all the code from (This code is all executed before the frame is fully set up, so adding a \providebool{metropolis@standout}
\define@key{beamerframe}{standout}[true]{%
\booltrue{metropolis@standout}
\begingroup
\setkeys{beamerframe}{c}
\setkeys{beamerframe}{noframenumbering}
\ifbeamercolorempty[bg]{palette primary}{
\setbeamercolor{background canvas}{
use=palette primary,
bg=-palette primary.fg
}
}{
\setbeamercolor{background canvas}{
use=palette primary,
bg=palette primary.bg
}
}
\centering
\usebeamercolor[fg]{palette primary}
\usebeamerfont{plain title}
} Then, we just need to end the group after the standout slide is finished in order to restore the colours and fonts for the rest of the presentation. Unfortunately, the obvious solution — \apptocmd{\beamer@reseteecodes}{%
\ifbool{metropolis@standout}{
\endgroup
\boolfalse{metropolis@standout}}{}
} DiscussionThe primary question we should answer here is do we want to implement plain slides as an optional argument to |
Thanks for looking into this further. I haven't been able to get to this but I still think it would be a good feature. |
Tough call. However, for the sake of the listed advantages I'd support your proposal for the |
If the
\plain{[title]}{body}
command for dark frames matched Beamer frame syntax, it would allow Beamer exporters like emacs org-mode to reference it using existing templates.I can come up with something but I need a little bit of a sketch on defining frames in LaTeX style files as I've never done it before.
The text was updated successfully, but these errors were encountered: