I am using Lyx and Beamer in order to write my thesis presentation.
When i insert a title/section in a new frame , it does not appear in preview.. why is that ?
How can i add titles in each frame of my presentation ?
beamerlyx
I am using Lyx and Beamer in order to write my thesis presentation.
When i insert a title/section in a new frame , it does not appear in preview.. why is that ?
How can i add titles in each frame of my presentation ?
The Dreden theme uses as outer theme miniframes
specifying that the footline is of type authorinstitutetitle
\useoutertheme[footline=authorinstitutetitle]{miniframes}
Thus, to insert the frame number (command \insertframenumber
) with respect to the total frame number (command \inserttotalframenumber
) we should take into account how the authorinstitutetitle
is defined:
\def\beamer@theme@footline@authorinstitutetitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
Now, in the lower right corner there's nothing thus it is possible to exploit the space in:
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\end{beamercolorbox}%
by adding:
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
Notice that as separator between the frame numbers there's a command: \frameofframes
. It is defined as:
\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{\renewcommand{\frameofframes}{#1}}
This allows you to modify the standard representation (1/5
for example), with something else; for instance:
\setframeofframes{of}
will provide 1 of 5
.
The code:
\documentclass{beamer}
\usepackage{lmodern}
\usetheme{Dresden}
\author{My name}
\title{My presentation}
\institute{My institute}
\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{\renewcommand{\frameofframes}{#1}}
\setframeofframes{of}
\makeatletter
\setbeamertemplate{footline}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
\makeatother
\begin{document}
\section{One}
\subsection{One-one}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\subsection{One-two}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\section{Two}
\subsection{Two-one}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\subsection{Two-two}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\section{Three}
\subsection{Three-one}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\subsection{Three-two}
\frame{\frametitle{X-one} bla bla bla}
\frame{\frametitle{X-one-a} bla bla bla}
\frame{\frametitle{X-one-b} bla bla bla}
\end{document}
One frame as result:
In addition to commented transitions between frames, Beamer can do many several effects within frames with commands \pause
, \only
, \visible
\uncover
or \onslide
, that have overlays specifications that can be also applied to normal LaTeX \items of enumerate or itemize environments for example, or at the whole environments.
A transition within a frame is obtained generating a new slide, so have in mind that the abuse of these effects can slow down significantly your talk and boring your audience if there are not time constrains.But a judicious combinations of overlays with \alert
or \spot
(need package of the same name) could be very effective.
The following MWE is only a frame the produce 3 slides showing some of these effects.
\documentclass{beamer}
\begin{document}
\setbeamercovered{dynamic}
\begin{frame}{Only a frame, slide \thepage}
Normal text \alert<1-3>{ 1}\alert<2-3>{ 2}\alert<3>{ 3}
\only<1>{First only}
\only<2>{Second only}
\only<3>{Third only}
\visible<1>{First visible}
\visible<2>{Second visible}
\visible<3>{Third visible}
\uncover<1-3>{First uncover}
\uncover<2-3>{Second uncover}
\uncover<3>{Third uncover}
\begin{enumerate}
\item<1|alert@1> First enumerate
\item<2> Second enumerate
\item<3> Third enumerate
\end{enumerate}
\begin{itemize}[<+-| alert@+>]
\item item
\item item
\item item
\end{itemize}
\end{frame}
\end{document}
Tip: make texdoc beamer
. Go to page 78.
Best Answer
Sections and the like does not appear in the default
beamer
theme, so the short answer is to use another theme. You can find a list of themes in thebeamer
manual, or thebeamer
theme matrix. (In the matrix, color themes are listed on top, layout themes on the left.)To use a theme, go to Document --> Settings --> LaTeX preamble, and add
\usetheme{<theme name>}
. For example, to use theAnnArbor
theme (seen in below screenshot), addThis theme adds section names to the top bar of the frames. To change the color theme, add
\usecolortheme{<color theme name>}
to the preamble.You can also add titles to single frames, by writing it immediately after the word
Frame
(on the same line) in LyX. This will also appear in the default theme.