LaTeX/C3/Beamer-Themes-and-Animation-in-LaTeX/English
Title of the script: Beamer Themes and Animation
Author: Preeti Bamane
Keywords: Video tutorial, TeXWorks, Ubuntu Unicode, Beamer Themes, Color themes, Overlays
|
|
Slide: | Hello and welcome to the spoken tutorial on Beamer Themes and Animation |
Slide: Learning Objectives | In this tutorial, we will learn to,
|
Slide 3: System Requirements | This tutorial is recorded using
The steps demonstrated will work in all operating systems. |
Slide 4: Prerequisites |
|
Slide 5: Code Files |
|
Slide: Demonstration | For this demonstration, I will be using the Beamer theme Matrix.
The same is available at this link:- https://hartwork.org/beamer-theme-matrix/ Open a web browser and go to this URL. |
[Firefox] Show the beamer page
Navigate row-wise on the left Navigate column-wise on the top Hover the mouse on any one of the theame |
Theme matrix shows various themes and color theme combinations included with the Beamer class.
The rows of the matrix show the list of the different Beamer themes. The columns of the matrix show the list of the different Beamer color themes. When the cursor is placed over an image, it shows the corresponding theme and color theme. |
Go to Downloads folder >> Beamer-Code-Files | Go to the folder where all the Code files are downloaded on your machine. |
Open beamerThemesAndAnimation.tex in TeXworks | Open the file beamerThemesAndAnimation.tex in TeXworks editor.
We will see some LaTeX code written in the file. |
Let’s try to understand the code. | |
Highlight: \usetheme{Warsaw} | \usetheme{Warsaw} is added to the preamble to use the Warsaw theme in Beamer.
|
Highlight: \section and \subsection | In the document, I have inserted the \section and \subsection before each frame begins. |
Highlight the section and subsection names | The section and subsection names will be displayed in the header of the slide. |
At the top left drop-down >> select pdfLaTeX | At the top left, in the drop-down select pdfLaTeX, if not already selected. |
Click on the green arrow button | Then click on the green arrow button to compile the file.
|
Point to the pdf output | On compilation, we get the pdf output with the Warsaw theme. |
Highlight the header
|
In the slide, we can see a header.
|
Highlight the section names in the TeXworks file. | These are the names we defined in the sections. |
Point to the green right arrow in the output window | In the output window, go to the next slide using the green-coloured right arrow. |
Point to the top section.
|
Look at the header portion of the pdf slide.
|
Highlight the section and subsection names in the TeXworks file. | These are the names we defined in the sections and subsections. |
Highlight the section or subsection names. | You can go to any slide by clicking on the section or subsection names. |
Click on Color Themes | Click on Color Themes on the top right banner. |
Point to the pdf output
Slide: Beamer Themes Color Themes |
The respective section name and subsection name of the slide you are on, get highlighted.
|
Point to the pdf output
Slide: Introduction |
Let’s click on Introduction.
|
Only Narration | So, this part sort of behaves like a navigation panel. |
Back to beamerThemesAndAnimation.tex | Let’s go back to the code. |
[TeXworks] | Beamer themes can be combined with a color theme. |
[TeXworks] Type:
\usecolortheme{beaver} |
To do so, before the begin document command, type the code as shown. |
[TeXworks] Highlight
\usecolortheme{beaver} |
Always put the \usecolortheme command below the \usetheme command. |
Compile twice | Now compile the file twice. |
Point to the pdf output
|
Observe the output.
|
[TeXworks] Update
\usecolortheme{crane} |
Let’s try another theme and theme color.
|
[TeXworks] Highlight
|
I have set the theme to Madrid and the colortheme to crane. |
Compile twice | Compile the file twice. |
Point to the pdf output | We can see the generated pdf output.
|
Next, we will see how to add Text Animation on the slides. | |
Slide: Overlays |
|
Only narration | Let’s see important overlays one by one.
|
[TeXworks] Update the code:
\subsection{onslide command} \begin{frame} \frametitle{Overlay: onslide} \onslide<1->{First Line of Text} \\ \onslide<2->{Second Line of Text} \\ \onslide<3->{Third Line of Text} \end{frame} |
Replace the document section code as shown here.
|
[TeXworks] Highlight
|
The number inside the angle brackets tells LaTeX which slides the item should appear on.
|
Compile | On compilation, we get the output as seen here. |
Point to the pdf output
Slide: Animation on onslide |
In the generated pdf, click on the green right arrow to go to the next page.
|
Back to beamerThemesAndAnimation.tex | Switch to the editor once again. |
[TeXworks] Type:
|
Let’s make the text transparent on an unspecified slide.
|
Compile | Compile the file. |
Point to the pdf output | Observe the output.
|
[TeXworks] Type:
\begin{frame} \frametitle{Overlay: uncover} \setbeamercovered{transparent} \uncover<1> { First Line of Text} \\ \uncover<3> {Third Line of Text} \\ \uncover<2> { Second Line of Text} \\ \uncover<5> {Fifth Line of Text} \\ \uncover<4> {Fourth Line of Text} \end{frame} |
In the tex file, before the \end{document} command type the code as shown here.
|
[TeXworks] Highlight:
|
Observe that here we have used \uncover instead of \onslide.
|
Compile | Compile the file |
Point to the pdf output
slide: Animation \uncover command |
Using the navigation arrow, go to the slide Animation \uncover command.
|
[TeXworks] Highlight
\uncover<2> { Second Line of Text} \\ |
This is because in the code the third item is mentioned as the second item.
|
[TeXworks] Type:
\begin{frame} \frametitle{Overlay: only} \only<1>{First Line of Text} \only<2>{Second Line of Text} \only<3>{Third Line of Text} \end{frame} |
In the tex file, before the \end{document} command, type the code as shown here.
|
[TeXworks] Highlight
|
The command \only works exactly like the \uncover command.
|
Compile | Compile the file. |
Point to the pdf output
slide: Animation \only command |
Go to the slide Overlay: only command.
|
This is how we can customize LaTeX slides as per our requirement. | |
Only narration | With this, we have come to the end of this tutorial.
Let us summarize. |
Slide: Summary | In this tutorial, we have learnt to:
|
Slide: Assignment | As an assignment,
|
Slide: About Spoken Tutorial Project |
|
Slide: Spoken tutorial workshops |
|
Slide: Forum questions | Pls post your timed queries in this forum |
Slide: Acknowledgement | Spoken Tutorial Project is funded by the Ministry of Education (MoE), Government of India |
Slide | The script was contributed by Preeti, FOSSEE Summer Fellowship 2019
And this is Praveen signing off. Thanks for joining. |