Beamer 标题页具有特定的背景,其余帧的背景不同

Beamer 标题页具有特定的背景,其余帧的背景不同

我有以下代码,将徽标设置在标题页的左上角,但是,我想将标题页的整个背景更改为新的 UDBackground2.jpg 图形。如何实现这一点。

对于其余的帧,我希望背景是重复的名称 \author。我尝试了几次,但没有成功,非常感谢您的帮助。

\documentclass[9pt,aspectratio=169,xcolor=table]{beamer}
\setbeamerfont{title}{series=\bfseries, parent=structure}
\institute{UUUUUU}
\titlegraphic{\hfill\includegraphics[height=1.1in]{logo}}   
\title{\color{black}XXXXXX }
\author[\underline{{\calligra \color{black} {yyyyy}}}] {yyyy }
 
\addtocounter{framenumber}{-1}
\renewcommand{\familydefault}{\rmdefault}
\setbeamercolor{section number projected}{fg=}
\makeatletter
\AtBeginPart{%
\beamer@tocsectionnumber=0\relax
\setcounter{section}{0}%
}
\setbeamercolor{frametitle}{fg=black}

\pgfdeclareimage[width=\paperwidth]{mybackground}{UDBackground2.jpg}
\begin{document}

 \defbeamertemplate*{title page}{customized}[1][]
{

\hfill \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic \par \bigskip
  \usebeamerfont{title}\inserttitle \par
  \usebeamerfont{subtitle}\usebeamercolor[black]{subtitle}
  \color{black}{ \rule{\paperwidth}{1.4pt} }\\
  \color{black}
  \usebeamerfont{author}\insertauthor\par
%  \usebeamerfont{institute}\insertinstitute\par
%  \usebeamerfont{date}\insertdate\par
  
}
  \maketitle
  
   %% defines the header \hrule
 
\setbeamertemplate{frametitle}[default][left,leftskip=0.8cm]


\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(0.9\textwidth,-0.7cm)
{\transparent{0.8}\includegraphics[height=1cm,width=1cm]{logo}}
\end{textblock*}   \par\hspace*{-\dimexpr0.5\paperwidth-0.5\textwidth}\color{black}\rule{\paperwidth}{1.4pt}}



\begin{frame}

\end{frame}

\end{document}

答案1

如果您对标题框周围的组内的背景进行更改,则其他框的背景将保持不变:

\documentclass{beamer}

\begin{document}

\begingroup
  \setbeamertemplate{background canvas}{\includegraphics[width=\paperwidth,height=\paperheight]{example-image-duck}}
  \begin{frame}
    \titlepage
  \end{frame}   
\endgroup

\begin{frame}
content...
\end{frame}
    
\end{document}

相关内容