
私は、より幅の広いサイドバーを備えた Beamer Berkeley テーマを使用しています。タイトル ページとセクション ページの情報を水平方向に中央揃えにしたいと考えています。
それを実現するために、フレームにプレーンオプションを使用しています。ただし、プレーンモードのためサイドバー自体は非表示になっているものの、タイトルなどの位置やセクション名はサイドバーを基準にしているようです。どうすれば要件を満たすことができますか? ありがとうございます。
MWE は以下のとおりです。
\documentclass{beamer}
\usetheme[width=2cm]{Berkeley}
\AtBeginSection[]{
\begin{frame}[plain]
\vfill
\centering
\begin{beamercolorbox}
[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\thesection. \insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
\title{Title Title Title Title Title Title Title Title Title}
\author{Author Author Author}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
\begin{frame}{Frame 1}
Frame 1
\end{frame}
\section{Section Section Section Section Section}
\begin{frame}{Frame 2}
Frame 2
\end{frame}
\begin{frame}{Frame 3}
Frame 3
\end{frame}
\end{document}
答え1
タイトル ページとセクション ページをサイドバーの幅の半分だけ左に移動できます。
\documentclass{beamer}
\usetheme[width=2cm]{Berkeley}
\AtBeginSection[]{
{
\hoffset=-.5\beamersidebarwidth
\begin{frame}[plain]
\vfill
\centering
\begin{beamercolorbox}
[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\thesection. \insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
}
\title{Title Title Title Title Title Title Title Title Title}
\author{Author Author Author}
\begin{document}
{
\hoffset=-.5\beamersidebarwidth
\begin{frame}[plain]
\maketitle
\end{frame}
}
\begin{frame}{Frame 1}
Frame 1
\end{frame}
\section{Section Section Section Section Section}
\begin{frame}{Frame 2}
Frame 2
\end{frame}
\begin{frame}{Frame 3}
Frame 3
\end{frame}
\end{document}
タイトル ページとセクション ページのスペースを広くしたい場合は、タイトルをサイドバーの幅いっぱい左に移動し、テキストの幅を広げます。
\documentclass{beamer}
\usetheme[width=2cm]{Berkeley}
\AtBeginSection[]{
{
\hoffset=-\beamersidebarwidth
\advance\textwidth\beamersidebarwidth
\hsize\textwidth
\columnwidth\textwidth
\begin{frame}[plain]
\vfill
\centering
\begin{beamercolorbox}
[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\thesection. \insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}
}
\title{Title Title Title Title Title Title Title Title Title}
\author{Author Author Author}
\begin{document}
{
\hoffset=-\beamersidebarwidth
\advance\textwidth\beamersidebarwidth
\hsize\textwidth
\columnwidth\textwidth
\begin{frame}[plain]
\maketitle
\end{frame}
}
\begin{frame}{Frame 1}
Frame 1
\end{frame}
\section{Section Section Section Section Section}
\begin{frame}{Frame 2}
Frame 2
\end{frame}
\begin{frame}{Frame 3}
Frame 3
\end{frame}
\end{document}