24.10.11

Nice overlay effect in LaTeX Beamer

By Christian Gogolin in http://www.cgogolin.de/Computer.html


screenshot of a sample slideWhen doing slides for a talk you sometimes want to first give an overview of a certain idea and then explain some parts of it in more detail. One way of doing this is to uncover the information bitwise. Sometimes this might not be ideal for a couple of reasons. For example, you must be careful to leave enough space for the extra information, which can easily lead to an odd looking layout. Alternatively, and in particular if you have quite a lot of extra information, you could create an entirely new page covering the extra information and then come back to the overview page once you have finished explaining them. This approach also has certain downsides, the most important of which probably is that the audience might miss the fact that you are still talking about the same thing. Especially if you want to provide details concerning several different aspects of you main idea this can be very confusing.
So, what to do?
I think that a quite elegant way to deal with such a situation is the following: Put the details in a box that hovers above the overview slide. This way you can avoid ending up with a cluttered layout and still give the audience some visual guidance that will help them to intuitively understand that you have not switched subject but are rather giving some details. An example of how this can look like can be seen in the picture on the left or in the slides of my talk"Thermalization in nature and on a quantum computer".
And here is how you can implement this using TikZ and LaTeX Beamer:
\newcommand<>{\hover}[1]{\uncover#2{%
 \begin{tikzpicture}[remember picture,overlay]%
 \draw[fill,opacity=0.4] (current page.south west)
 rectangle (current page.north east);
 \node at (current page.center) {#1};
 \end{tikzpicture}}
 }
      
This command will cover the entire page with an opaque black rectangle and the draw what ever you give it as main argument in the middle of the page above this rectangle. The <> after the \newcommand makes it overlay specification aware. A standard use case would be the following:

      \begin{frame}
      \frametitle{A frame}
      Some text
      \hover<2>{
      \begin{minipage}{0.8\linewidth}
      \begin{block}{A block hovering above the slide}
      I am visible on slide two.
      \end{block}
      \end{minipage}
      }
      \end{frame}
      
The effect works particularly well with the option [realshadow] of my inner themebeamerinnerthemechamfered.
There is however one problem with LaTeX Beamer themes that include a foot line. The foot line is drawn after the content of the frame. There is thus no (easy) way to have the opaque rectangle cover the foot line. The foot line of my outer theme beamerouterthemewuerzburg can be suppressed by giving the [nofootline] option.

16.10.11

Beamer and Latex With Keynote Theme



 LaTeX is a typsetting system that allows you to make great-looking documents, and is well-used to make academic papers. I even use it for homeworks and other documents. There are also packages that allow it to make fantastic posters and slide presentations as well. I spent the last few days getting caught up on this, and want to share what I’ve figured out:

  • A sexy Beamer theme that looks like Keynote
  • How to format the footer
  • How to make slide numbers
  • How to remove the navigation symbols
  • How to make movies show up in presentations
  • The best references
I’ll talk about each of these briefly and give links to download a demo presentation and the .tex and .sty files that made it. Here’s a sneak peek of what it looks like!

keynote beamer presentation

I’ve known about the possibility of LaTeX slides for a while, but never took the time to figure it out. Now that I have, I must say that this is *way* easier and better than Powerpoint. This is even more true when you’re presenting material that you have already written up as a paper in LaTeX. Copying figures and equations couldn’t be easier! I really recommend everyone try it out (especially grad students!).
My experiences have been with Beamer (but other options exist.) Phase I is to get this set up and working with LaTeX. Once this is done you’ll find it very simple to throw together a quick presentation. If, however, you are a man (or woman) of style, you’ll yearn for something that shines a little brighter.
I really wanted my presentation to look like those classy Keynote presentations you’re always seeing Steve Jobs giving. I’ve got something nice now and I use a few other tricks to get things just right for me. Hopefully this helps you out.

Keynote Beamer Theme

Here’s what we’re going for:

steve jobs presentation

I think I capture that pretty well! Download the style file and place it somewhere in the Beamer path (or in the same directory as the presentation). Then put this at the top of your document:
\usetheme{lankton-keynote}
Voila! You’ve well on your way to a classy presentation. I also included my .tex code and the finished .pdf of this presentation. This file shows all the other tricks I talk about in this post as well.

Formatting the Footer

You’ll often want abbreviated author lists and titles in the footer of your document. Remember that the \authors{} and \title{} commands have options. Hence, use them this way:

\authors[First Author]{First Author\quad Second Author}
\title[Short Title]{Longer Title for the First Slide}
This essentially gives you the ability to put anything on the footer as in the next section:

Slide Numbers in the Footer

To get slide numbers in the footer (next to the title of the presentation) replace your \title{} command with this:
\title[Abbrev. Title\hspace{2em}\insertframenumber/
\inserttotalframenumber]{Full Title}
A good presentation should always have slide numbers to make it easier for the guy in the audience wants to make a fuss about a particular slide : )

Removing the Navigation Symbols

By default, these slideshows have a bunch of little symbols along the bottom right of the slides to assist in navigation. To remove these, include this text in your code:
\setbeamertemplate{navigation symbols}{} %no nav symbols
This is already included in my style file above.

Include Movies in the Presentation

No good presentation is *that* good unless it has a movie, right? Well, this is simple enough. Try this code:

\usepackage{multimedia}
...
\movie[height=5cm,width=6.5cm,loop]{}{move.avi}
I’ve found that this only works in Adobe Reader, but… hey! It works. This was the main thing I was worried about when I started using LaTeX to make my slides, but it really works beautifully.

Beamer Reference

I wish I had this reference right from the start: The Beam User Manual [pdf]

Making LaTeX Beamer Presentations


If you want to create overhead presentations (á la Powerpoint) with LaTeX, you can do so by using Beamer class, which creates surprisingly professional and sophisticated documents that you can then display using any pdf viewer (e.g., such as Adobe Acrobat). The advantage of using LaTeX over a program like Powerpoint is that it doesn't require expensive software for either creating or displaying your presentation; it thus makes the presentation truly "portable". And, if you already have the basics of LaTeX down, learning the basics of creating a beamer presentation does not take much effort.

getting beamer class

You can download beamer class by either downloading the package from its webpage, or better yet, if you have Ubuntu (or Debian), just apt-get latex-beamer (which will also install it for you as well).
If you download the beamer package from the website, installation will be a bit more complicated. Follow the instructions included in the package. (Or look elsewhere for instructions on how to install LaTeX classes. It's really as easy as putting a few files in places where LaTeX knows where to look: the trick is figuring out where LaTeX looks for them. I may put up a tutorial on hand-installing LaTeX classes in the future.)

the basic document structure

Beamer class is quite feature-rich, and it's 200+ page manual may be a little intimidating. However, creating a basic presentation really requires doing only two things:
  1. Declaring beamer class in your LaTeX preamble, and
  2. Enclosing each "slide" in a special "frame" environment.
You will probably also want to include the date, title, author, etc., of your presentation. These can all be included in a separate title slide, created with the \titlepagecommand. You may also want to include titles for your frames (which are displayed in large font at the top of the slide) with the \frametitle command. Thus, a basic beamer document will look something like the following:
\documentclass{beamer}
\title{Here is my Title}
\author{Christina Huggins}
\date{July 15th, 2005}

\begin{document}

\begin{frame}
\frametitle{Optional Title for My Slide}
Here is one slide.
\end{frame}

\begin{frame}
Here is another slide.
\end{frame}

\end{document}
Note that beamer class is meant to be compiled using pdflatex to easily create a pdf presentation.
Knowing this basic document structure, you can create quite a decent presentation. At this point, I only use these presentations for my teaching lectures, and I have not the need for anything terribly fancy. However, I've found a few of the additional features to be quite useful, so I've included them below.

themes

While the default presentation looks quite clean and professional, you may want to play with the style of your presentation with themes. Beamer comes prepackaged with quite a few complete themes, (as well as what I call "sub-themes": color themes, or themes that only apply to the "outer" or "inner" part of the slide frames). The manual explains the differing themes in a bit of detail, and you can explore these different themes on your own. Once you find a theme you like (I like Boadilla), you can just declare it in the preamble like so: \usetheme{ThemeName}.

columns & blocks

There are two handy environments for structuring your slide: "blocks", which divide your slide (horizontally) into headed sections, and "columns" which divides your slide (vertically) into columns.

columns

example
\begin{frame}
\begin{columns}[c] % the "c" option specifies center vertical alignment
\column{.5\textwidth} % column designated by a command
Contents of the first column
\column{.5\textwidth}
Contents split \\ into two lines
\end{columns}
\end{frame}

\begin{frame}
\begin{columns}[t] % contents are top vertically aligned
\begin{column}[5cm] % each column can also be its own environment
Contents of first column \\ split into two lines
\end{column}
\begin{column}[T]{5cm} % alternative top-align that's better for graphics
\includegraphics[height=3cm]{graphic.png}
\end{column}
\end{columns}
\end{frame}
See resulting pdf.

blocks

example
\begin{frame}
\begin{block}{Block Heading}
Enlosing text in the ``block'' environment creates a distinct, headed block of text.
\end{block}
\begin{block}{Second Block Heading}
This lets you visually distinguish parts of your slide easily.
\end{block}
\end{frame}
See resulting pdf.

revealing things incrementally

There may be times during your presentation when you want to reveal things on a slide piecemeal (e.g., you reveal a list one item at a time).
The most straightfoward way to do this is via the "pause" command. If you want more sophisticated reveals (e.g., you want the first and last item on a list to be revealed at the same time), then you would use other methods. But, "pause" works perfectly for my purposes.
example
\begin{frame}
Since I may want to focus on one item at a time in my presentation,
\begin{itemize}
\item I want to reveal only the first item on my list initially,
\pause
\item then the second item,
\pause
\item then the third,
\pause
\item and so on...
\end{itemize}
\end{frame}
See resulting pdf.

making accompanying documents

There are several ways to create notes, handouts, or other accompanying documents for your presentation. My preferred way of doing this (since I like to include a lot of extra commentary and notes for reference later) is to use article mode. That is, I can create an article, load the package "beamerarticle", and LaTeX will render all of the beamer commands and environments within article mode.
Anything within the frames will be printed in the article; anything outside the frames will also be printed in the article (but you can specify that this text be ignored in beamer mode). So, in short, you can create your beamer presentation and and an accompanying document that includes both the beamer text and extra notes.
The most efficient way to do this is the following:
  1. Create your main .tex file (including both the text for your presentation and the notes in between). Leave off the document class declaration (let's call it name.tex).
  2. Create another file, name.beamer.tex, the content of which is the following:
    \documentclass[ignorenonframetext]{beamer}
    \input{name.tex}
  3. Create a third file, name.article.tex, the content of which is the following:
    \documentclass{article}
    \usepackage{beamerarticle}
    \input{name.tex}
Then, run pdflatex on both name.beamer.tex and name.article.tex to get your presentation and accompanying document, respectively. To demonstrate an extended example of this, I included below both the main .tex file, and the resulting beamer presentation and article that I rendered from it (I'm not including the beamer.tex and article.tex files, since they really are just as simple as the examples above). example
  1. Main .tex file
  2. Beamer pdf
  3. Article pdf
Tomado de:

Beamer Theme for the University of the Pacific


As is the convention, the style file is called beamerthemeStockton.sty.  Download beamerthemeStockton.sty here.

The beamerthemeStockton.sty file should be placed in your directory
    texmf/tex/latex/beamer/themes/theme
This is where all your beamer theme style files live.

If you also want the logo, here is it:  Seal_Cream.pdf.  Place this file in your the folder with the rest of the images used in your beamer presentation.

A sample tex file using beamerthemeStockton.sty can be found here:  sampleStockton.tex.

User Notes

This style file is based on the Beamer theme Copenhagen, using colors approved by the University Marketing Department.

Here is a screenshot:



















The command 
    \orangebox{argument 1}{argument 2} 
produces a theorem-like box with argument 1 at the top and argument 2 at the bottom.

For example, 
    \orangebox{Theorem Orange.}{If you use the orangebox command, the         
    box  will be orange.} 
produced the  first theorem-like box shown below.  Similarly, you may use \greenbox, \bluebox, \graybox, and \grassgreenbox.



















I prefer a flat bullet in itemized lists.  There is an environment to produce itemized lists using bullets in each of the colors shown above.

For example 
    \begin{grassgreenitemize} 
        \item Don't forget to match 
        \item your bullets to the box 
        \item they live in. 
    \end{grassgreenitemize}
produces the itemized list shown in the \greenbox below.




















I’m assuming you know how to use Beamer and LaTeX, but if not, I’d be glad to help.
Happy TeXing!

Tomado de:

http://www1.pacific.edu/~smerz/Pacific_Beamer_Theme.html

Temas para presentaciones de la clase latex-beamer


En este post indico cuales son los temas por defecto de beamer y como montarlos y modificarlos- En el preámbulo colocamos:
\usetheme{nombre}
Aquí dejo y enlace para ver cómo son los temas y la lista de temas.
1) Antibes
2) bars
3) Bergen
4) Berkeley
5) Berlin
6) Boadilla
7) boxes
8 ) classic
9) Copenhagen
10) Darmstadt
11) default
12) Dresden
13) Frankfurt
14) Goettingen
15) Hannover
16) Ilmenau
17) JuanLesPins
18) lined
19) Luebeck
20) Madrid
21) Malmoe
22) Marburg
23) Montpellier
24) PaloAlto
25) Pittsburgh
26) Rochester
27) shadow
28) sidebar
29) Singapore
30) split
31) Szeged
32) Tree
33) Warsaw
Pero si la combinación de colores no es de tu agrado, no desesperes, LaTeX siempre tiene una solución. Existe una lista de colores para cada tema. En el preámbulo tenemos que poner:
\usercolortheme{nombre}
1) albatross (azul marino)
2) beetle (azul y gris)
3) crane (naranja y blanco)
4) default (por defecto)
5) dolphin (azul marino y blanco)
6) dove (gris y blanco)
7) fly (gris)
8 ) lily
9) orchid
10) rose
11) seagull (gris y blanco)
12) seahorse
13) sidebartab
14) structure
15) whale (azul marino y blanco)
Además también podemos hacer transparente el contenido de la diapositiva
Donde en la última línea encontramos un comando cuya finalidad es hacer transparente el contenido de la diapositiva que se desea ocultar. Cuando la sentencia \setbeamercovered{transparent} está presente en el fichero, entonces el comando \visible (con el overlay correspondiente) deja totalmente invisible (ni siquiera es transparente) su argumento, mostrándolo únicamente cuando proceda (en aquel ejemplo, la línea aparecía únicamente en la cuarta transparencia asociada al frame).
Para la bibliografía, también hay un “tema” disponible, que coloca un icono delante de cada referencia (según le corresponda). Para ello, modifica el frame correspondiente a las referencias, que ahora queda:
\begin{frame}
\frametitle{Referencias}
\begin{thebibliography}{10}
\beamertemplatebookbibitems
\bibitem{Goldback1742}[Goldback, 1742]
Christian Goldback.
\newblock \emph{Carta a Leonhard Euler}, 1742
\end{thebibliography}
\end{frame}
Para finalizar, simplemente comentar que las posibilidades de personalización de las transparencias no finaliza aquí. Existe una gran variedad de comandos que modifica las opciones que, por defecto, están asignadas en un tema. Por ejemplo,

\setbeamerfont{title}{shape=\itshape,family=\rmfamily}
Modifica la fuente del título de la ponencia, mientras que
\usefonttheme[onlylarge]{structuresmallcapsserif}
\usefonttheme[onlysmall]{structurebold}
\setbeamercolor{title}{fg=red!80!black,bg=red!20!white}

realizan otros cambios cuyo descubrimiento dejamos al lector como ejercicio.