I have (sub)section numbers in the \frametitle
, and I want an indentation if the frame title is too long to fit in one line (similar to default LaTeX behavior).
I fiddeled around with adding \hangindent=3em
to the \frametitle
argument but this does not help.
Example:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{1.1 A long frametitle that produces a linebreak line line line line line}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
\end{frame}
\end{document}
The desired outcome would be something like:
1.1 A long frametitle that produces a linebreak
line line line line line
instead of
1.1 A long frametitle that produces a linebreak
line line line line line
Background: The whole \frametitle
command with (sub)section number and actual (sub)section heading is generated by the following command:
\newcommand{\frametitledef}{\frametitle{
\ifnum\value{subsection}=0
\thesection{} \insertsection{}
\else
\ifnum\value{subsubsection}=0
\thesection{}.\thesubsection{} \insertsubsection{}
\else
\thesection{}.\thesubsection{}.\thesubsubsection{} \insertsubsubsection{}
\fi
\fi
}}
Best Answer
Perhaps something like this is what you are looking for:
Here's an image of the second frame showing the indentation for the second line of the title: