I am working on a presentation on beamer and i used the theme Madrid but i am obliged to use the title page ppt template given by my institution, how do i have the first page as the template and the rest of the presentation following the theme ?

- 1
- 1
1 Answers
Here is a sketch of the solution using a backgroundimage:
\documentclass[11pt]{beamer}
\usepackage{graphicx}
%Global Background must be put in preamble
\usebackgroundtemplate%
{%
% to scale the image such that it fills the entire slide
\includegraphics[width=\paperwidth,height=\paperheight]{ARlys.png}%
% alternative: scale the image such that the it fits best into the
% slide without changing the aspect ratio
%\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{ARlys.png}%
}
\begin{document}
\begin{frame}%{First slide}
This is the content of the first slide
\end{frame}
\begin{frame}%{Second slide}
This is the content of the second slide
\end{frame}
\end{document}
You should adjust the background image to your own specs. With the given image this looks like this:
If you want to have the background image only for a specific frame, you simply wrap the whole begin-end frame block in curly braces. In between { and \begin{frame} you can insert the \usebackgroundtemplate{...} command. This then acts only locally for the frame inside the curly braces.
This is should be enough to give you the idea ;)
- 578
-
Probably from the second slide onwards the background image is no longer needed. – Marijn Nov 12 '23 at 16:11
-
That's an easy one: you simply wrap the whole begin-end frame block in curly braces. In between
{and\begin{frame}you can insert the\usebackgroundtemplatecommand. This then acts only locally for the frame inside the curly braces. I've added this to my answer as well. – BanDoP Nov 12 '23 at 16:18 -
+1, with one minor suggestion: I would add
keepaspectratioto avoid distorting the header. – samcarter_is_at_topanswers.xyz Nov 13 '23 at 15:33 -
you're right,
keepaspectratiocan be useful but usually I'd rather risk a little bit of difference in scaling along x and y direction than leaving a white margin somewhere. In any case, good idea -- I'll write a short comment on that. – BanDoP Nov 13 '23 at 15:43

\setbeamertemplate{title page}{...}to customize the title page. But the code for...is not quite easy. – Stephen Nov 12 '23 at 13:37