[Tex/LaTex] How to have the name of all sections on the top of each page in this Beamer template

beamerpresentations

This TeX should have about 10 sections each of which has a couple of subsections under it. Also, the names of sections are all 2-words. So in this Beamer template, as you can see, the names of all sections should appear in the black stripe on the top of each page. But because the number of my sections are too many, some of them are omitted by the template. How can I fix this so that I have the name of all sections on the top of each page?

 \documentclass[
    aspectratio=169
]{beamer}

\usetheme{Darmstadt}        

\begin{document}

\section{Descriptive Outline 1}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 2}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 3}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 4}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 5 }
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 6}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 7}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 8}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 9}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 10}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}

\end{document}  

Best Answer

Squeezing an elephant into a suitcase is always difficult. One way to get a bit more space in the headline is to use another aspect ratio for the slide, e.g. 16:9.

Some other comments:

  • the \author{hh} in front of the documentclass does nothing, you are overwriting it in your document

  • you don't need \usepackage{graphicx} with beamer

  • please don't load the same package multiple times. Anyway the more beamerish way would be to write \usetheme{Darmstadt}


\documentclass[
    aspectratio=169
]{beamer}

\usetheme{Darmstadt}        

\begin{document}

\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Outline}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}

\end{document}

If the sections still don't fit in the headline, then there is simply not enough space and either another theme should be used or the amount of information in the headline should be reduced.

If the font size is further decreased to accommodate all the sections, it get so small, nobody will be able to read it anyway.

 \documentclass[
    aspectratio=169
]{beamer}


\usetheme{Darmstadt}        

\setbeamerfont{section in head/foot}{size=\fontsize{4pt}{5pt}\selectfont}


\begin{document}

\section{Descriptive Outline 1}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 2}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 3}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 4}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 5 }
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 6}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 7}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 8}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 9}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}
\section{Descriptive Outline 10}
\subsection{Outline}
\begin{frame}
\frametitle{Outline}
\end{frame}

\end{document}