
Quiero dividir el título de mi fotograma en la clase beamer en dos columnas iguales, de modo que en el lado izquierdo aparezca el título de la sección y en el lado derecho aparezca el título de la subsección (si existe). Además, estaría bien tener diferentes colores para los laterales.
Estoy intentando usar:
\useoutertheme{split}
\setbeamertemplate{headline}[split]
Pero crea todas las secciones y subsecciones del título, sin nombrarlas. Sólo quiero los actuales.
Respuesta1
En este caso, debe redefinir el título usted mismo. Simplemente copié el tema dividido y reemplacé las barras de navegación con \insertsection
y \insertsubsection
respectivamente.
Para configurar el color tienes que usar los siguientes \setbeamercolor{}
comandos:
\setbeamercolor{section in head/foot}{fg=white, bg=red}
\setbeamercolor{subsection in head/foot}{fg=white, bg=blue}
Ejemplo completo:
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{section in head/foot}%
\hfill\insertsection\hspace*{1em}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{subsection in head/foot}%
\hspace*{1em}\insertsubsection%
\end{beamercolorbox}%
}
\setbeamercolor{section in head/foot}{fg=white, bg=red}
\setbeamercolor{subsection in head/foot}{fg=white, bg=blue}
\begin{document}
\section{My Section 1}
\subsection{My Subsection 1}
\begin{frame}{Frametitle}
Frame Content
\end{frame}
\subsection{My Subsection 2}
\begin{frame}{Frametitle}
Frame Content
\end{frame}
\section{My Section 2}
\subsection{My Subsection 1}
\begin{frame}{Frametitle}
Frame Content
\end{frame}
\subsection{My Subsection 2}
\begin{frame}{Frametitle}
Frame Content
\end{frame}
\end{document}
Producción: