10

I'm trying to define a custom template to mimick our organisation style (defined in pptx). I use the Beamer "title page" template to define my title page, works nicely.

However, I would like to define an equivalent for a "final slide" (like for example a copyright page). I can't find it in the manual, but maybe I missed it.

I now define this page in my custom template, but it requires the user of the template to call a custom command "\insertcopyrightpage". It would be much nicer if the template would enforce this.

3
  • 3
    How about using \AtEndDocument or something like it? That should, enforce the final slide. I would have tested it but since you did not provide an MWE, I'll leave the suggestion only. :) Nov 10, 2016 at 11:56
  • @GuilhermeZ.Santos This works, of course. Was thinking so hard in "Beamer" mode that I missed the obvious solutions. If you wish to put this as an answer, I'll vote it up
    – GertVdE
    Nov 10, 2016 at 12:23
  • 1
    Happens to the best of us. Added as an answer as I think this is the simplest way. :D. And btw, you could do the same for the titleslide with \AtBeginDocument... Nov 10, 2016 at 12:41

2 Answers 2

9

To enforce something upon the end of the document you can use \AtEndDocument:

\documentclass{beamer}

\AtEndDocument{\begin{frame}
                  The last slide
               \end{frame}
                }

\begin{document}
\frame{Some slide}
\end{document}

This can be applied to @samcarter's answer as well to obtain the same result:

\documentclass{beamer}

\setbeamertemplate{endpage}{%
    \begin{frame}
        The last slide
    \end{frame}
}

\AtEndDocument{\usebeamertemplate{endpage}}

\begin{document}
\frame{Some slide}
\end{document}
4

You can define whatever templates you like:

\documentclass{beamer}

\setbeamertemplate{endpage}{%
    \begin{frame}
        bla
    \end{frame}
}

\begin{document}

\frame{text}

\usebeamertemplate{endpage}

\end{document}
3
  • 2
    yes, but this would again require "user intervention". I want the final page to be generated by the beamer class/sty not the user.
    – GertVdE
    Nov 10, 2016 at 12:05
  • But the title page requires the same level of intervention? Nov 10, 2016 at 12:26
  • Yes, but that is usually something the user doesn't forget ;-)
    – GertVdE
    Nov 10, 2016 at 12:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .