2

My presentation is consisted of 4 consecutive slides. I want to divide them in 2 sections. My code:

    \documentclass{beamer}
            \mode<presentation>
                    {\usetheme{Frankfurt}
                     \usecolortheme{lily}
                     \usefonttheme{professionalfonts}}
    \usepackage[english]{babel}
    \beamertemplatenavigationsymbolsempty
    \setbeamerfont{page number in head/foot}{size=\tiny}
    \setbeamertemplate{footline}[frame number]

    \begin{document}

    \section{Numerical examples}
    \begin{frame}
    Example 1
    \end{frame}

    \section{Results}
    \begin{frame}
    Results 1
    \end{frame}

    \section{Numerical examples}
    \begin{frame}
    Example 2
    \end{frame}

    \section{Results}
    \begin{frame}
    Results 2
    \end{frame}

    \end{document}

I have something like this:

enter image description here

Because they have the same names, I would like to achieve the following results:

enter image description here

How can I add slide to the previous section?

1
  • I am confused. You have four \section commands and yet you say you only want two sections? I don't understand what you are trying to do; if you just want two sections, use only two \section commands. Commented Jul 30, 2014 at 18:40

1 Answer 1

1

USe only two \section command and also the possibility of a title for the frame:

\documentclass{beamer}
\usetheme{Frankfurt}
\usecolortheme{lily}
\usefonttheme{professionalfonts}
\usepackage[english]{babel}
\beamertemplatenavigationsymbolsempty
\setbeamerfont{page number in head/foot}{size=\tiny}
setbeamertemplate{footline}[frame number]

\begin{document}

    \section{Numerical examples}
    \begin{frame}
    Example 1
    \end{frame}

    \begin{frame}{Results}
    Results 1
    \end{frame}

    \section{Numerical examples}
    \begin{frame}
    Example 2
    \end{frame}

    \begin{frame}{Results}
    Results 2
    \end{frame}

\end{document}
2
  • You example does not run, it's missing a backslash
    – Firebug
    Commented Nov 26, 2021 at 13:35
  • Also, it doesn't answer the question
    – Firebug
    Commented Nov 26, 2021 at 13:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .