## You are here

In this article, a beamer template is provided which can be used as is or with minimum modification. Beamer is used among the scientific community to produce beautiful and fancy presentations where the content is predominantly mathematical. Powerpoint is perhaps better suited for non-mathematical presentations, whereas beamer shines where there is math!

Please copy the following codes and paste it in your favorite TeX processor (for example, WinEdt).

Change log:
December 19, 2009: First published.
May 2, 2010: Added the codes for writing bibliography into the tex file.

\documentclass{beamer}
%\usetheme{Boadilla} % Pretty neat, soft color.
%\usetheme{default}
%\usetheme{Warsaw}
%\usetheme{Bergen} % This template has nagivation on the left
%\usetheme{Frankfurt} % Similar to the default
%with an extra region at the top.
%\usecolortheme{seahorse} % Simple and clean template
% Uncomment the following line if you want %
% page numbers and using Warsaw theme%
% \setbeamertemplate{footline}[page number]
%\setbeamercovered{transparent}
\setbeamercovered{invisible}
% To remove the navigation symbols from
% the bottom of slides%
%
\usepackage{graphicx}
%\usepackage{bm}         % For typesetting bold math (not \mathbold)
%\logo{\includegraphics[height=0.6cm]{yourlogo.eps}}
%
\title[Short title of the talk]{Beautiful Presentation using Beamer}
\author{Name of the Speaker}
\institute[U of X]
{
University of [...] \\
\medskip
{\emph{email@domain.ca}}
}
\date{\today}
% \today will show current date.
% Alternatively, you can specify a date.
%
\begin{document}
%
\begin{frame}
\titlepage
\end{frame}
%
\begin{frame}
\frametitle{Motivation}
\begin{block}
{Why Beamer?}
Does anybody need an introduction to Beamer? I don't think so.
\end{block}
\end{frame}
%
\begin{frame}
\frametitle{Example of a Theorem}
\begin{theorem}
The quick brown fox jumps over the lazy dog.
\end{theorem}
\end{frame}
%
\begin{frame}[fragile] % Notice the [fragile] option %
\frametitle{Verbatim}
\begin{example}[Putting Verbatim]
\begin{verbatim}
\begin{frame}
\frametitle{Outline}
\begin{block}
{Why Beamer?}
Does anybody need an introduction to Beamer?
I don't think so.
\end{block}
% Extra carriage return causes problem with verbatim %
\end{frame}\end{verbatim}
\end{example}
\end{frame}

\begin{frame}[fragile]  % notice the fragile option, since the body
% contains a verbatim command
Example of the \verb|\cite| command to give a reference is below:
Example of citation using \cite{key1} follows on.
\end{frame}

\begin{frame}
\frametitle{References}
\footnotesize{
\begin{thebibliography}{99}
\bibitem[Label1, 2010]{key1} Author's name (1987)
\newblock Title of the paper.
\newblock \emph{Journal Name} 55(4), 765 -- 799.
\end{thebibliography}
}
\end{frame}

\begin{frame}
\centerline{The End}
\end{frame}
% End of slides
\end{document} 

Category:
AttachmentSize
2.66 KB

### There are other options

There are other ways to process LaTeX file in Windows. Emacs and XEmacs -based solutions are also available. However, WinEdt is probably easier of them. Please write about other software available today.

Great post! Really came handy for my Thesis proposal presentation. My first experience with Beamer. :)

A new version with a bibliography section is added to the template.

Thank you so much! you made my tasks lot more easier! :)

greetings from prague

Excellent post, found it very useful as a starter to beamer. Thanks

Hi Rifat

Great post..It helped me lot during my beemer experiments

Thank u..

great

Hi Rifat,
As a beginner I need a template to enable me appreciate Beamer environment.Kindly help me achieve my objective.

The template is right here on this post. Please scroll up and copy-paste the text that quoted. Or you can download the template too, the link is there!

Hi Riffat,

I find these posts very useful. Thanks a lot.

Can you give me some template for placing tables in the presentation.
I normally make the tables in Excel and then export it in Latex using an Adon. Howver I can not control the size of the table in beamer environment.

Naeem bajwa

Hello

Here is an example of a 2x2 table with the center-aligned columns:

\begin{table}
\begin{tabular}{cc}
Col 1 & Col 2 \\
\hline
100 & 200 \\
300 & 400 \\
\hline
\end{tabular}
\end{table}

If you want vertical separators between the columns, just change {cc} to {|c|c|}

Hope this helps.

Thanks, but my problem is how to control the size of the table so that it fits within the area i want. meaning adjusting the scale/size.

I use following and the table is half out of the slide frame

\begin{frame}
\begin{table}

\begin{tabular*}{16cm}[t] {|c|r|r|r|r|r|r|r|r|r|}
\hline

\multicolumn{ 1}{|c|}{} & \multicolumn{5}{|c|}{ } &                \multicolumn{ 4}{|c|}{{\bf $\gamma_{i,t}$}} \\
\hline
\multicolumn{ 1}{|c|}{{\bf $i$}} &    {\bf $C_i$} &    {\bf $h_i$} &    {\bf $Y_i$} & {\bf $\beta_i$} & {\bf $\alpha_i$} & {\bf $t = 1$} & {\bf $t = 2$} & {\bf $t = 3$} & {\bf $t = 4$} \\

\hline
{\bf 1} &         50 &          2.0 &        0.10 &       1.61 &       3000 &        0.20 &        0.20 &        0.30 &        0.30 \\
\hline
{\bf 2} &         60 &          3.0 &       0.12 &       1.15 &       2000 &        0.20 &       0.25 &       0.25 &        0.30 \\
\hline
{\bf 3} &         70 &          2.0 &       0.11 &        1.30 &       2300 &        0.20 &        0.20 &       0.25 &       0.35 \\
\hline

\end{tabular*}
\caption{Problem parameters}
\label{Table_parameters}
\end{table}

\end{frame}

That is a common issue with table in latex/beamer. However, you may try reducing the font-size and see if that fits the table within the frame.

Try this:

{ \footnotesize
\begin{table}
.
.
\end{table}
}

or

{\tiny
\begin{table}
.
.
\end{table}
}

or

{ \small
\begin{table}
.
.
\end{table}
}

You can also define your own font-size (other than tiny, small, or footnotesize), which I don't remember right now. Let me know if any one of the above doesn't work for you.

A better way to scale a table or any text on beamer slide is to use the [shrink=factor] option.

For example

\frame[shrink=25]{
.
.
.
}

Try with different number and see which one fits best.

Thanks.
I liked the simplicity of your explanations... made it really easy to use !

### with or without serif

Hi Rifat,

Thanks a lot for your help. Just a question concerning the font: how to obtain font with serf for equation and font without serif for text?

### Re: with or without serif

Hi, As far as I know, in the default beamer templates, the text font and the math font look the same with a subtle difference only. I do not know of any way to make the difference look bigger. You may try with roman font. For customizing font with latex, you may have a look at this webpage.

Thank you so much for the template. Very useful.

Thank you for this template! Made our work much easier. =)

all the best, Iaroslav

Thank you very much! A good post.

how i can add to my presentation the eps figures

Try this one:

\begin{figure}
\begin{center}
\includegraphics[width=4.5in]{plot.eps}\\
\end{figure}