
La paleta de arriba tiene un salto bajo que se ve feo. ¿Cómo podemos agregar un poco de relleno como el que obtenemos con los títulos de una línea?
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{seahorse}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\newlength{\widthTextMarginLeft}
\setlength{\widthTextMarginLeft}{1.5mm}
\newlength{\widthTextMarginRight}
\setlength{\widthTextMarginRight}{2mm}
\setbeamersize{text margin left=\widthTextMarginLeft, text margin right=\widthTextMarginRight}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.3\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
\begin{document}
\begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
\end{frame}
\end{document}
Respuesta1
El "problema" es que la última línea de su primer título "One Slide" no contiene letras descendentes, mientras que "Uncovering Contents" tiene la "g" como letra descendente. Si desea que todos los títulos se comporten como el segundo caso, puede agregar un \strut
después \insertframetitle
en la definición de la plantilla:
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{seahorse}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\newlength{\widthTextMarginLeft}
\setlength{\widthTextMarginLeft}{1.5mm}
\newlength{\widthTextMarginRight}
\setlength{\widthTextMarginRight}{2mm}
\setbeamersize{text margin left=\widthTextMarginLeft, text margin right=\widthTextMarginRight}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.3\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
\makeatletter
\setbeamertemplate{frametitle}{%
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\begin{beamercolorbox}[sep=0.3cm,left,wd=\the\@tempdima]{frametitle}
\usebeamerfont{frametitle}%
\vbox{}\vskip-1ex%
\if@tempswa\else\csname beamer@fteleft\endcsname\fi%
\strut\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
\end{beamercolorbox}%
}
\makeatother
\begin{document}
\begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
\end{frame}
\end{document}
Respuesta2
Al ejecutar su código, obtengo el relleno adecuado. Sin embargo puedes utilizar \vspace
al final del contenido:
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{seahorse}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\newlength{\widthTextMarginLeft}
\setlength{\widthTextMarginLeft}{1.5mm}
\newlength{\widthTextMarginRight}
\setlength{\widthTextMarginRight}{2mm}
\setbeamersize{text margin left=\widthTextMarginLeft, text margin right=\widthTextMarginRight}
\newlength{\sidebarWidth}
\setlength{\sidebarWidth}{0.3\paperwidth}
\setbeamersize{sidebar width left=\sidebarWidth, sidebar width right=0cm}
\begin{document}
\begin{frame}{Uncovering Contents When They Cannot Fit in One Slide\vspace{0.2cm}}
\end{frame}
\end{document}