by Nadir SOUALEM , Astozzia
We shall see in this article how to make a presentation with LaTeX, using the powerful class Beamer. If you want to make an outstanding "stressfree" presentation and bring your ideas or your work under a whole new light, let’s get started!!!
Keywords: alertblock , alt , Beamer , beamergotobutton , block , color , colortbl , column , compilation , dvips , exampleblock , frame , hyperlink , item , itemize , Latex , only , onslide , overlay , pause , presentation , ps2pdf , uncover .
Installing the Beamer class
You will first need to install the package Beamer. Under Debian or Ubuntu, you can type the following command:
Once the latex-class Beamer is installed, you are definitely ready to stat your first presentation!!!
Basic presentation with Beamer
A few explanations:
means that our document is a Beamer presentation
this package enables us to use special letters (with accents, cedillas, etc). You can discard this command when the presentation is in English.
This is our outer theme (color and background). As you can imagine, there are tons of themes. You can refer to Beamer documentation for more details.
this defines the title of the presentation. As you can see, there are two titles:
the first one, between brackets. [Making a LaTeX presentation with Beamer] is a substitute title which appears at the bottom of the page. This is useful especially if the original title is long. Since this is anoption only, if it is not mentioned, then the original title is the one shown in the bottom of the page.
the second one, between braces, is the principal title of the presentation. The command
defines Nadir Soualem and Astozzia (us!) as the authors of the presentation.
defines where the presentation was held. Finally, we use
as the date.
To define the document, we use the markers
To define a slide of the presentation, we use the markers
To define a page title (frame), we mention it as follows
Introduction will be the title of the page. To define the first page, which contains details such as the title, the author, the date, etc - we use a frame in which we include the \titlepage command
To define a frame containing the layout of the presentation, we proceed as follows:
The layout is therefore mentioned at every section and subsection. You should insert \section and \subsection throughout the presentation and out of the frames:
Animations — Overlays
A good presentation is one that is dynamic and attracts the audience’s interest. Generally, we resort to a dynamic type of presentations. Alternatively stated, when we speak, we simultaneously show significant points of the talk, or hide others, or keep just the important ones. We shall see in this section how animations function in Beamer.
Item-by-item list view: the \pause command
In order to view several items of a list on the same slide, we type the following commands inside a frame:
We will thus see the items of our list, one by one.
Item-by-item list view: the \item command
An alternative way to visualize the elements of a list item by item is to use the \item
List item interval and isolated items: the \item and \item commands
commands
An example is worth a long speech:
\item
Item-by-item long list view: the [<+->] command
Sometimes the lists you want to display are long and it is not practical to use the \item
Up to now, we have dealt with lists. We shall now see how to use text and slides.
Displaying and hiding text in slides: the \uncover, \uncover and \uncover commands
commands
\uncover
Be careful not to forget the braces after the \uncover command. The syntax is as follows:
Displaying and hiding text in slides: the \only, \only and \only commands
commands
\only works like\uncover with the exception that the \only command is not as "cumbersome" on slides. Here is an example:
Here is an other example to better grasp the difference between \only and \uncover
Hide text in slides: the \invisible commands
\invisible
Another alternative: the \alt{...}{...} commands
As an alternative, one can use the \alt
Highlighting text in red: the \alert{...} command
To highlight text in red on slide n, we use the \alert
Successively highlighting list items in red: the <+-| alert@+> command
Using colors in a text on a slide: the \color{...}{...}, \color{...}{...} and\color{...}{...} commands
{...}{...} commands
The first argument is the red, green, yellow, blue, etc ... The second is the text to be colored
Creating links: the \hyperlink{...}{\beamergotobutton{...}} commands
To define internal links, we should add the following package in the preamble
Then, we should define a label pointing on the frame:
you define MY_LABEL as you please ! Finally, on the frame where the link is to be created, we proceed as follows:
There we are! We can see a button Refer to this page pointing to the frame labeled MY_LABEL.
Thus, the first argument of \hyperlink{...}{\beamergotobutton{...}} is the name of the label to be pointed at and \beamergotobutton{...} has the name of the button as an argument.
Defining blocks inside frames
For important stuff, we define blocks as follows:
As clear as onion soup !!!
Dynamic display of tables: the \pause and \onslide commands
First off, we should add the package colortbl to the preamble
To display rows dynamically, we shall use the \pause command as follows:
To display columns dynamically, we shall use the \onslide
Writing on several columns: the \begin{columns}...\end{columns} commands
For two columns, we proceed as follows:
l,r,c refers to the position: left, right, center. The syntax is as follows:
Inserting a figure in a Beamer presentation
To insert an image or a figure, we proceed as in LaTeX by using the \includegraphics command. Here is an example:
In Beamer, we should distinguish between two types of figures:
PS type: .eps, .ps and pspicture type (LaTeX)
General type: .pdf, .png, .jpg, .jpeg You will need to compile a Beamer-class file.
Compiling a Beamer presentation
I assume that the your file is called file.tex.. There are ways to compile, depending on the type of figure you inserted. For PS-type figures, we shall use the following commands
We shall obtain the file file.pdf.
For general-type figures, we shall use the command
We shall also obtain the file file.pdf.
Conclusion
It goes without saying that explaining all the possibilities that Beamer offers is way too long. This is why I am referring to this exhaustive documentation documentation.
Have fun !!!
没有评论:
发表评论