The LaTeX Beamer Class
Posted: Thu Nov 24, 2016 10:18 pm
Beamer is a LaTeX document class for creating powerful, flexible and attractive but professionally-looking slides for presentations. It supports both pdfLaTeX and LaTeX + dvips. The name is taken from the German word "Beamer" as a pseudo-anglicism for video projection. Beamer has special syntax for defining and creating PowerPoint like slides, known in Beamer as "frames". Slides can be built up on-screen in various styles such as continuously or in stages as if by revealing text that was previously hidden or obscured. The latter is handled with Portable Document Format (PDF) output by creating successive pages that preserve the layout but add new elements, so that advancing to the next page in the PDF file appears to add something to the displayed page, when in fact it has redrawn the page, read more.
Beamer is very superior for creating slides for presentations with a lot of capabilities such as multimedia (videos, images, etc.,) inclusion, orientations, effects, styling, layouts, handouts, various format outputs, colouring, sectioning, making tables, formatting, funny rendering of scientific formulae, e.g., maths symbolism and notation, richness in syntax support for other LaTeX presentation packages, for example Prosper and Powerdot.
Below, I present a minimal working example (MWE) of a very basic beamer presentation and the output (see attached file LaTeX_Beamer_Class.pdf). Anything that starts with % is a comment that provides important information to help you customize the template to suit your needs.
The common LaTeX Beamer themes, accessed by the command
include: Warsaw, AnnArbor, Antibes, Bergen, Berkeley, Berlin, Boadilla, boxes, CambridgeUS, Copenhagen, Darmstadt, default, Dresden, Frankfurt, Goettingen, Hannover, Ilmenau, JuanLesPins, Luebeck, Madrid, Maloe, Marburg, Montpellier, PaloAlto, Pittsburg, Rochester, Singapore, Szeged, classic.
Some common color themes, accessed via
are: albatross, beaver, beetle, crane, default, dolphin, dov, fly, lily, orchid, rose, seagull, seahorse, sidebartab, structure, whale, wolverine.
You can however change the font themes by
: default, professionalfonts, serif, structurebold, structureitalicserif, structuresmallcapsserif.
For the LaTeX Beamer full documentation, including more themes, see The beamer Class - Comprehensive TeX Archive Network (CTAN), LaTeX/Presentations - Wikibooks, open books for an open world and The LaTeX Beamer Class SourceForge.
Beamer is very superior for creating slides for presentations with a lot of capabilities such as multimedia (videos, images, etc.,) inclusion, orientations, effects, styling, layouts, handouts, various format outputs, colouring, sectioning, making tables, formatting, funny rendering of scientific formulae, e.g., maths symbolism and notation, richness in syntax support for other LaTeX presentation packages, for example Prosper and Powerdot.
Below, I present a minimal working example (MWE) of a very basic beamer presentation and the output (see attached file LaTeX_Beamer_Class.pdf). Anything that starts with % is a comment that provides important information to help you customize the template to suit your needs.
The common LaTeX Beamer themes, accessed by the command
Code: Select all
\usetheme{themename}
include: Warsaw, AnnArbor, Antibes, Bergen, Berkeley, Berlin, Boadilla, boxes, CambridgeUS, Copenhagen, Darmstadt, default, Dresden, Frankfurt, Goettingen, Hannover, Ilmenau, JuanLesPins, Luebeck, Madrid, Maloe, Marburg, Montpellier, PaloAlto, Pittsburg, Rochester, Singapore, Szeged, classic.
Some common color themes, accessed via
Code: Select all
\usecolortheme{colorthemename}
are: albatross, beaver, beetle, crane, default, dolphin, dov, fly, lily, orchid, rose, seagull, seahorse, sidebartab, structure, whale, wolverine.
You can however change the font themes by
Code: Select all
\usefonttheme{fontthemename}
- %Beamer Class
- % To run - pdflatex filename.tex
- % acroread filename.pdf
- \documentclass[compress,red]{beamer}
- \mode<presentation>
- \usetheme{Warsaw}
- %\setbeamertemplate{footline}[text line]{%
- % \parbox{\linewidth}{\vspace*{-8pt}some text\hfill\insertshortauthor\hfill\insertpagenumber}}
- %\setbeamertemplate{navigation symbols}{}
- % Other themes: AnnArbor, Antibes, Bergen, Berkeley, Berlin, Boadilla, boxes, CambridgeUS, Copenhagen, Darmstadt, default, Dresden, Frankfurt, Goettingen,
- % Hannover, Ilmenau, JuanLesPins, Luebeck, Madrid, Maloe, Marburg, Montpellier, PaloAlto, Pittsburg, Rochester, Singapore, Szeged, classic
- %\usecolortheme{lily}
- % Color themes: albatross, beaver, beetle, crane, default, dolphin, dov, fly, lily, orchid, rose, seagull, seahorse, sidebartab, structure, whale, wolverine
- %\usefonttheme{serif}
- % Font themes: default, professionalfonts, serif, structurebold, structureitalicserif, structuresmallcapsserif
- \hypersetup{pdfpagemode=FullScreen} % Makes your presentation go automatically to full screen, Esc to resume normal screen
- \definecolor{Red}{rgb}{1,0,0}
- \definecolor{Blue}{rgb}{0,0,1}
- \definecolor{Green}{rgb}{0,1,0}
- \definecolor{magenta}{rgb}{1,0,.6}
- \definecolor{lightblue}{rgb}{0,.5,1}
- \definecolor{lightpurple}{rgb}{.6,.4,1}
- \definecolor{gold}{rgb}{.6,.5,0}
- \definecolor{orange}{rgb}{1,0.4,0}
- \definecolor{hotpink}{rgb}{1,0,0.5}
- \definecolor{newcolor2}{rgb}{.5,.3,.5}
- \definecolor{newcolor}{rgb}{0,.3,1}
- \definecolor{newcolor3}{rgb}{1,0,.35}
- \definecolor{darkgreen1}{rgb}{0, .35, 0}
- \definecolor{darkgreen}{rgb}{0, .6, 0}
- \definecolor{darkred}{rgb}{.75,0,0}
- % define your own colors:
- % Can also choose different themes for the "inside" and "outside"
- % \usepackage{beamerinnertheme}
- % Inner themes include circles, default, inmargin, rectangles, rounded
- % \usepackage{beamerouterthemesmoothbars}
- % Outer themes include default, infolines, miniframes, shadow, sidebar, smoothbars, smoothtree, split, tree
- \useoutertheme[subsection=false]{smoothbars}
- \setbeamertemplate{footline}[text line]{%
- \parbox{0.8\linewidth}{
- \vspace*{-20pt}\href{https://www.tssfl.com}{\color{blue} \insertshorttitle} %~(\insertshortauthor) - could insert author
- }
- \hfill%
- \parbox{0.15\linewidth}{
- \vspace*{-8pt}\raggedleft\insertpagenumber
- }
- }
- \usepackage{ocg-p}
- \usepackage{fancyhdr}
- \usepackage[author={Max Schlepzig}]{pdfcomment}
- %Could use:
- %\addtocounter{framenumber}{-1}
- % To have the same footer on all slides
- %\setbeamertemplate{footline}[text line]{%
- % \parbox{\linewidth}{\vspace*{-20pt}\href{http://forums.tssfl.com/app.php/page/About-Us}{\color{magenta} About Us}\hfill\insertshortauthor\hfill\insertpagenumber}}
- %Or
- %\setbeamertemplate{footline}[text line]{\href{http://forums.tssfl.com/app.php/page/About-Us}{\color{magenta} About Us}}
- %\setbeamertemplate{footline}[text line]{} % makes the footer EMPTY
- % Include packages
- \usepackage{multimedia}
- \usepackage{hyperref}
- \usepackage{tabularx}
- \usepackage{caption}
- \captionsetup[table]{skip=10pt}
- \setbeamerfont{caption}{size=\footnotesize}
- %Titles
- \title{\href{https://www.tssfl.com}{TSSFL Open Discussion Forums - The Home of Critical Thinkers!}}
- \subtitle{The \LaTeX \ Beamer Class}
- \author{TSSFL Open Discussion Forums Team}
- \date{\today}
- %Begin Your Document
- \begin{document}
- \frame{
- \titlepage
- }
- \frame{\frametitle{\href{https://forums.tssfl.com}{TSSFL Open Discussion Forums}}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \item What is TSSFL Open Discussion Forums?
- \item \textbf{Answer:} \href{https://forums.tssfl.com}{\color{blue} TSSFL Open Discussion Forums - The Home of Critical Thinkers!}, is a free knowledge and information exchange platform.
- %Open Discussion Forums is a knowledge base forum created with the notion that education must be applied to solve societal problems. It intends to bring together people with various professions, skills and knowledge to contribute in chosen areas of their interest.
- \item Who can join Open Discussion Forums?
- \item \textbf{Answer:} Any person can join Open Discussion Forums provided he/she is able to do so.
- \item Do I've to pay to join Open Discussion Forums?
- \item \textbf{Answer:} No. Joining Open Discussion Forums is completely free!
- \item Why should I consider joining Open Discussion Forums?
- \item \textbf{Answer:} TSSFL Open Discussion Forums is a place where you can make a big difference, it gives you an opportunity to learn how to think, improve your mental faculties and broaden your scope of knowledge, while sharing valuable skills and experiences to others!
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{\href{https://forums.tssfl.com}{Cont $\hdots$ TSSFL Open Discussion Forums}}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \item Are there any further convincing reasons why I should really join Open Discussion Forums?
- \item \textbf{Answer:} Yes. There are numerous benefits associated to Open Discussion Forums membership:
- \begin{enumerate}
- \item Get an opportunity to meet friendly on-line community of students, scholars and pragmatic thinkers who are interested and focused in sharing valuable skills, knowledge and information.
- \item Engage in more meaningful discussions to sharpen your thinking for your own benefit and the community as a whole.
- \end{enumerate}
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{Why Open Discussion Forums?}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \begin{enumerate}
- \setcounter{enumi}{2}
- \item Open Discussion Forums is a professional platform where you will have an opportunity to stimulate, grow, adjust and apply your education, knowledge and skills through
- teaching others and learning from them to impact a lasting change.
- \item Inspire knowledge, skills, creativity and innovation through rational critical thinking outpouring from carefully and scrutinized contributions to create and build a promising smart society!
- \item You have an opportunity to market, sell, your skills and work, which in turn can create future meaningful networking with clients and customers.
- \end{enumerate}
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{Cont $\hdots$ Why Open Discussion Forums?}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \begin{enumerate}
- \setcounter{enumi}{5}
- \item You get an opportunity to apply and exercise your valuable skills to solve a wide range of problems for others, a good way of giving back to the community. At Open Discussion Forums, skills and professionalism is what makes it unique!
- This is a great opportunity to learn how to think like a real problem solver.
- \item You have an opportunity to get listened, give sound views, proposals, suggestions, recommendations to positively impact a growing Open Discussion Forums community and its infrastructure.
- \end{enumerate}
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{Cont $\hdots$ Why Open Discussion Forums?}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \begin{enumerate}
- \setcounter{enumi}{7}
- \item You have an opportunity to create more meaningful contact, becoming an advocate, affiliate, partner or an integral part of \href{www.tssfl.co}{\color {blue} Tanzania Students and Scholars Foundation Limited - TSSFL} community,
- with a possibility to fully participate in its future endeavors.
- \item Finally, you stand a great chance of becoming a remarkable contributor with a possibility to gain recognition, awards and appreciation for your legendary and notable contributions.
- \end{enumerate}
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{Please Join Us $\hdots$}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{itemize}
- \item It's always great to have a new member at \href{https://forums.tssfl.com}{\color{blue} TSSFL Open Discussion Forums} and we look forward to seeing your esteemed contributions aboard.
- \item Let's make learning social, interactive, fun and enjoyable. Together we can build a smart community!
- \end{itemize}
- \end{center}
- }
- \frame{\frametitle{TSSFL Open Discussion Forums Images}
- \vspace{-.5cm}
- \scriptsize
- \begin{center}
- \begin{figure}
- \centering
- \includegraphics[width=0.35\textwidth,height=0.4\textheight]{TSSFL.png} %Resize images,
- \includegraphics[width=0.6\textwidth,height=0.4\textheight]{Hero_image.png}
- %\caption{} % You ca add caption
- %\label{ODF} %Labelling goes here
- \end{figure}
- \end{center}
- }
- \end{document}
For the LaTeX Beamer full documentation, including more themes, see The beamer Class - Comprehensive TeX Archive Network (CTAN), LaTeX/Presentations - Wikibooks, open books for an open world and The LaTeX Beamer Class SourceForge.