I need the frame of LaTeX beamer to be divided into three sections as shown. With contents of sections 2 and 3 changing with each item of section 1.How do I do that?
[Tex/LaTex] Divide a frame into 3 sections in latex beamer
beamer
Related Solutions
Following code shortens navigation line and includes page number on left side. Is this what you want?
\documentclass[t]{beamer}
\usetheme{Frankfurt}
\usecolortheme{dove}
\setbeamercolor{titlelike}{parent=structure}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{frametitle}{bg=light-gray}
\definecolor{light-gray}{gray}{0.80}
\usepackage[ngerman]{babel} %dt. Silbentrennung
\usepackage[applemac]{inputenc} %Richtiges Sprach-Funktionieren am Mac
\setbeamertemplate{navigation symbols}{}
\makeatletter
\defbeamertemplate*{headline}{my smoothbars theme}
{%
\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{.9\paperwidth}\hfill\insertpagenumber\hspace{.5em}
\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}\insertsubsectionhead
\end{beamercolorbox}%
\fi%
}%
\makeatother
\begin{document}
\section{asdf}
\subsection{abcd}
\begin{frame}
\frametitle{Hund}
\end{frame}
\section{bsdf}
\subsection{abcd}
\begin{frame}
\frametitle{Katze}
\end{frame}
\section{csdf}
\subsection{abcd}
\begin{frame}
\frametitle{Maus}
\end{frame}
\end{document}
The following approach inserts a "label" into the .aux
at every \section
(including at the end of the document) in order to capture the current frame number. This captured frame number (which resets with every \section
thanks to chngcntr
) is then inserted in the footer.
\documentclass{beamer}
\usetheme{Antibes}
\usebeamercolor{dolphin}
\usepackage{chngcntr}
\counterwithin{framenumber}{section}% Number frames within \section
% Make slide numbers appear, and they appear next to navigation
\addtobeamertemplate{navigation symbols}{}{%
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\hspace{1em}%
\insertframenumber/\inserttotalframenumberbysection
}
\makeatletter
\let\oldsection\section
\renewcommand{\section}{% Store current \section's frame count
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}%
\oldsection
}
\AtEndDocument{% Store final \section's frame count
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}%
}
\newcommand{\inserttotalframenumberbysection}{\csname s@totalsectionframes-\arabic{section}\endcsname}%
\makeatother
\begin{document}
\section{First section}
\begin{frame}
\frametitle{First}
This frame shows ``1/2'', not ``1/5''.
\end{frame}
\begin{frame}
\frametitle{Second}
This frame shows ``2/2'', not ``2/5''.
\end{frame}
\section{Second section}
\begin{frame}
\frametitle{Third}
This frame shows ``1/3'', not ``3/5''.
\end{frame}
\begin{frame}
\frametitle{Fourth}
This frame shows ``2/3'', not ``4/5''.
\end{frame}
\begin{frame}
\frametitle{Fifth}
This frame shows ``3/3'', not ``5/5''.
\end{frame}
\end{document}
Best Answer
You could use a combination of
multicols
andminipage
: