Beamer プレゼンテーションのタイトルページで、タイトルの前にサブタイトルを配置するにはどうすればよいですか?

Beamer プレゼンテーションのタイトルページで、タイトルの前にサブタイトルを配置するにはどうすればよいですか?

デフォルトでは、タイトルページでは、サブタイトルはタイトルの後に配置されます。しかし、特定の Beamer プレゼンテーションでは、サブタイトルをタイトルの前に配置する必要があります。明らかに、プリアンブルで \subtitle を \title の前に記述しても機能しません。強制的な解決策としては、タイトルとサブタイトルのフォント サイズを変更して、それらの役割が入れ替わっているように見せることです。しかし、これを行うにはもっと良い方法があるはずです。

私のMWE:

\documentclass{beamer}
\begin{document}
    \subtitle{Today we remember \ldots}
    \title{C. F. Gauss (1777-1855)}   
    \author{The author} 
    \date{\today} 
    \begin{frame}
        \titlepage
    \end{frame}
    \begin{frame}
        \frametitle{Carl Friedrich Gauss}
        Some text.
    \end{frame}
\end{document}

出力(タイトルページのみ): ここに画像の説明を入力してください

答え1

beamer v3.70 以降では、title次のようにテンプレートを再定義できます。

\documentclass{beamer}

\makeatletter
\setbeamertemplate{title}{%
  \begin{beamercolorbox}[sep=8pt,center]{title}
    \ifx\insertsubtitle\@empty%
    \else%
      {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
      \vskip0.25em%
    \fi%       
    \usebeamerfont{title}\inserttitle\par%
  \end{beamercolorbox}%
}
\makeatother

\subtitle{Today we remember \ldots}
\title{C. F. Gauss (1777-1855)}   
\author{The author} 
\date{\today} 

\begin{document}

    \begin{frame}
        \titlepage
    \end{frame}

\end{document}

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

関連情報