
저는 더 넓은 사이드바가 있는 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}