ビーマータイトルページ画像

ビーマータイトルページ画像

以下のように、Beamer のタイトルページのタイトルの前に 2 つの画像を追加できるようにしたいと思います。

ここに画像の説明を入力してください

このコマンドを使用しました\titlegraphic{\includegraphics[height=4cm]{Picture}}が、目標に到達できませんでした

\documentclass{beamer}
\titlegraphic{\includegraphics[height=4cm]{picture1}}
\titlegraphic{\includegraphics[height=4cm]{picture2}}
\title{TITLE}
\subtitle{\textbf{Subtitle}}
\author{Author}
\institute{University }

\setbeamercolor{title}{bg=orange,fg=white}


\begin{document}

\maketitle


\end{document}

答え1

簡単なワンライナーソリューションとしては、次のものを使用します。

\addtobeamertemplate{title page}{\includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion}}{}

つまり、次のようになります。

\documentclass{beamer}

\addtobeamertemplate{title page}{\includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion}}{}

\title{TITLE}
\subtitle{subtitle}
\author{Author}
\institute{University}

\setbeamercolor{title}{bg=orange,fg=white}

\begin{document}
\maketitle
\end{document}

ここに画像の説明を入力してください

マクロでは実現できないカスタマイズが必要な場合はaddtobeamertemplate、カスタムtitle pageテンプレートを作成する必要があります。defaultテンプレートは にbeamerinnerthemedefault.styあり、要求された変更を加えると次のようになります。

\makeatletter
\setbeamertemplate{title page}
{
  \includegraphics[scale=.05]{lion} \hfill \includegraphics[scale=.05]{lion} % new code
  \vbox{}
  \vfill
  \begingroup
    \centering
    \begin{beamercolorbox}[sep=8pt,center]{title}
      \usebeamerfont{title}\inserttitle\par%
      \ifx\insertsubtitle\@empty%
      \else%
        \vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
      \fi%
    \end{beamercolorbox}%
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center]{author}
      \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center]{institute}
      \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
    \begin{beamercolorbox}[sep=8pt,center]{date}
      \usebeamerfont{date}\insertdate
    \end{beamercolorbox}\vskip0.5em
  \endgroup
  \vfill
}
\makeatother

適切な変更を加えることで、垂直方向のスペースを追加したり、画像の位置を変更したり、好きなように行うことができます。

答え2

私もよくこれを実行する必要があります。 を使用する代わりに\titlegraphic、通常は次のアプローチを使用します。

\begin{frame}
  \begin{columns}
    \column{0.5\textwidth}
    \flushleft
    \includegraphics{leftpicture}
    \column{0.5\textwidth}
    \flushright
    \includegraphics{rightpicture}
  \end{columns}
  \titlepage
\end{frame}

あるいは

\begin{frame}
  \hbox to \textwidth{
    \includegraphics{leftpicture}
    \hfill
    \includegraphics{rightpicture}
  }
  \titlepage
\end{frame}

関連情報