numeración de subsección en título con tema de barra suave

numeración de subsección en título con tema de barra suave

Con el tema exterior de la barra suave (usado por Darmstadt), me gusta el título de la subsección, pero quiero imprimir la sección y el número de la subsección antes.

Intenté modificar la plantilla del título agregando \thesection.\thesubsection\la línea con \insertsubsectionhead, pero los números también están en la página de título o en el resumen, lo cual no quiero.

Intenté usarlo \insertsubsectionheadnumbertambién, pero no funciona :(.

MWE:

\documentclass{beamer}

\useoutertheme{smoothbars}

\makeatletter
\setbeamertemplate{headline}{%
\pgfuseshading{beamer@barshade}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-7ex%
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
    \insertnavigation{\paperwidth}
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
    \usebeamerfont{subsection in head/foot}\thesection.\thesubsection\ \insertsubsectionhead
\end{beamercolorbox}%
\fi%
}%
\makeatother

\AtBeginSection[]{
\begin{frame}
    \tableofcontents[currentsection]
\end{frame} 
}

\begin{document}
\begin{frame}{Summary}
\tableofcontents%[pausesections]
\end{frame}

\section{section 1}
\subsection{sub 1}
\frame{}
\end{document}

Respuesta1

No estoy totalmente seguro de haber entendido correctamente su pregunta, pero ¿solo desea ocultar las \thesection.\thesubsection\diapositivas con la subsección vacía?

\documentclass{beamer}

\useoutertheme{smoothbars}
\usepackage{etoolbox}

\makeatletter
\setbeamertemplate{headline}{%
\pgfuseshading{beamer@barshade}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
\vskip-7ex%
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
    \insertnavigation{\paperwidth}
\end{beamercolorbox}%
\ifbeamer@sb@subsection%
\begin{beamercolorbox}[ignorebg,ht=2.125ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
    \usebeamerfont{subsection in head/foot}
    \ifx\insertsubsection\empty\else%
    \ifdefempty{\subsecname}{\relax}{%
        \thesection.\thesubsection\ \insertsubsectionhead%
    }%
    \fi
\end{beamercolorbox}%
\fi%
}%
\makeatother

\AtBeginSection[]{
\begin{frame}
    \tableofcontents[currentsection]
\end{frame} 
}

\begin{document}
\begin{frame}{Summary}
\tableofcontents%[pausesections]
\end{frame}

\section{section 1}
\subsection{sub 1}
\frame{}
\end{document}

ingrese la descripción de la imagen aquí

información relacionada