Skill Tracer
Skills › Scientific Agent Skills › scientific-slides › beamer_guide.md

beamer_guide.md

1033 lines · skills/scientific-slides/references/beamer_guide.md at 5f2bc03

Open on GitHub
1# LaTeX Beamer Guide for Scientific Presentations
2

LaTeX Beamer Guide for Scientific Presentations

Raw lines 1 to 2
3## Overview
4
5Beamer is a LaTeX document class for creating presentations with professional, consistent formatting. It's particularly well-suited for scientific presentations containing equations, code, algorithms, and citations. This guide covers Beamer basics, themes, customization, and advanced features for effective scientific talks.
6
7Current upstream: [Beamer 3.78](https://ctan.org/pkg/beamer), reviewed 2026-09-30.
8The snippets below are illustrative fragments: combine their required packages in the
9preamble, provide figures and `references.bib`, and compile in your TeX distribution.
10The bundled templates were smoke-compiled with local Beamer 3.72 / TeX Live 2025; that is not a complete layout or
11bibliography validation. Dense placeholder layouts in the
12seminar and defense templates emit overfull-box warnings and need content-specific
13rendering and adjustment. Beamer currently does not support tagged PDF; provide a
14semantic alternative when accessibility requires it.

Overview

Beamer is a LaTeX document class for creating presentations with professional, consistent formatting. It's particularly well-suited for scientific presentations containing equations, code, algorithms, and citations. This guide covers Beamer basics, themes, customization, and advanced features for effective scientific talks.

Current upstream: Beamer 3.78, reviewed 2026-09-30. The snippets below are illustrative fragments: combine their required packages in the preamble, provide figures and references.bib, and compile in your TeX distribution. The bundled templates were smoke-compiled with local Beamer 3.72 / TeX Live 2025; that is not a complete layout or bibliography validation. Dense placeholder layouts in the seminar and defense templates emit overfull-box warnings and need content-specific rendering and adjustment. Beamer currently does not support tagged PDF; provide a semantic alternative when accessibility requires it.

Raw lines 3 to 15
16## Why Use Beamer?

Why Use Beamer?

Raw lines 16 to 17
18### Advantages
20**Professional Quality**:
21- Consistent, polished appearance
22- Beautiful typography (especially for math)
23- Publication-quality output
24- Professional themes and templates
26**Scientific Content**:
27- Native equation support (LaTeX math)
28- Code listings with syntax highlighting
29- Algorithm environments
30- Bibliography integration
31- Cross-referencing
33**Reproducibility**:
34- Plain text source (version control friendly)
35- Programmatic figure generation
36- Consistent styling across presentations
37- Easy to maintain and update
39**Efficiency**:
40- Reuse content across presentations
41- Template once, use forever
42- Automated elements (page numbers, navigation)
43- No manual formatting

Advantages

Professional Quality:

  • Consistent, polished appearance
  • Beautiful typography (especially for math)
  • Publication-quality output
  • Professional themes and templates

Scientific Content:

  • Native equation support (LaTeX math)
  • Code listings with syntax highlighting
  • Algorithm environments
  • Bibliography integration
  • Cross-referencing

Reproducibility:

  • Plain text source (version control friendly)
  • Programmatic figure generation
  • Consistent styling across presentations
  • Easy to maintain and update

Efficiency:

  • Reuse content across presentations
  • Template once, use forever
  • Automated elements (page numbers, navigation)
  • No manual formatting
Raw lines 18 to 44
45### Disadvantages
47**Learning Curve**:
48- Requires LaTeX knowledge
49- Compilation time
50- Debugging can be challenging
51- Less WYSIWYG than PowerPoint
53**Flexibility**:
54- Complex custom layouts require effort
55- Image editing requires external tools
56- Some design elements easier in PowerPoint
57- Animations more limited
59**Collaboration**:
60- Not ideal for non-LaTeX users
61- Version conflicts possible
62- Requires LaTeX installation

Disadvantages

Learning Curve:

  • Requires LaTeX knowledge
  • Compilation time
  • Debugging can be challenging
  • Less WYSIWYG than PowerPoint

Flexibility:

  • Complex custom layouts require effort
  • Image editing requires external tools
  • Some design elements easier in PowerPoint
  • Animations more limited

Collaboration:

  • Not ideal for non-LaTeX users
  • Version conflicts possible
  • Requires LaTeX installation
Raw lines 45 to 63
64## Basic Beamer Document Structure

Basic Beamer Document Structure

Raw lines 64 to 65
66### Minimal Example
68```latex
69\documentclass{beamer}
71% Theme
72\usetheme{Madrid}
73\usecolortheme{beaver}
75% Title information
76\title{Your Presentation Title}
77\subtitle{Optional Subtitle}
78\author{Your Name}
79\institute{Your Institution}
80\date{\today}
82\begin{document}
84% Title slide
85\begin{frame}
86 \titlepage
87\end{frame}
89% Content slide
90\begin{frame}{Slide Title}
91 Content goes here
92\end{frame}
94\end{document}
95```

Minimal Example

\documentclass{beamer}

% Theme
\usetheme{Madrid}
\usecolortheme{beaver}

% Title information
\title{Your Presentation Title}
\subtitle{Optional Subtitle}
\author{Your Name}
\institute{Your Institution}
\date{\today}

\begin{document}

% Title slide
\begin{frame}
  \titlepage
\end{frame}

% Content slide
\begin{frame}{Slide Title}
  Content goes here
\end{frame}

\end{document}
Raw lines 66 to 96
97### Essential Packages
99```latex
100\documentclass{beamer}
102% Encoding and fonts
103\usepackage[utf8]{inputenc}
104\usepackage[T1]{fontenc}
106% Graphics
107\usepackage{graphicx}
108\graphicspath{{./figures/}}
110% Math
111\usepackage{amsmath, amssymb, amsthm}
113% Tables
114\usepackage{booktabs}
115\usepackage{multirow}
117% Colors
118\usepackage{xcolor}
120% Algorithms
121\usepackage{algorithm}
122\usepackage{algorithmic}
124% Code listings
125\usepackage{listings}
127% Citations
128\usepackage[style=authoryear,backend=biber]{biblatex}
129\addbibresource{references.bib}
130```

Essential Packages

\documentclass{beamer}

% Encoding and fonts
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

% Graphics
\usepackage{graphicx}
\graphicspath{{./figures/}}

% Math
\usepackage{amsmath, amssymb, amsthm}

% Tables
\usepackage{booktabs}
\usepackage{multirow}

% Colors
\usepackage{xcolor}

% Algorithms
\usepackage{algorithm}
\usepackage{algorithmic}

% Code listings
\usepackage{listings}

% Citations
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{references.bib}
Raw lines 97 to 131
132### Frame Basics
134```latex
135% Basic frame
136\begin{frame}{Title}
137 Content
138\end{frame}
140% Frame with subtitle
141\begin{frame}{Title}{Subtitle}
142 Content
143\end{frame}
145% Frame without title
146\begin{frame}
147 Content
148\end{frame}
150% Fragile frame (for verbatim/code)
151\begin{frame}[fragile]{Code Example}
152 \begin{verbatim}
153 def hello():
154 print("Hello")
155 \end{verbatim}
156\end{frame}
158% Plain frame (no header/footer)
159\begin{frame}[plain]
160 Full slide content
161\end{frame}
162```

Frame Basics

% Basic frame
\begin{frame}{Title}
  Content
\end{frame}

% Frame with subtitle
\begin{frame}{Title}{Subtitle}
  Content
\end{frame}

% Frame without title
\begin{frame}
  Content
\end{frame}

% Fragile frame (for verbatim/code)
\begin{frame}[fragile]{Code Example}
  \begin{verbatim}
  def hello():
      print("Hello")
  \end{verbatim}
\end{frame}

% Plain frame (no header/footer)
\begin{frame}[plain]
  Full slide content
\end{frame}
Raw lines 132 to 163
164## Themes and Appearance

Themes and Appearance

Raw lines 164 to 165
166### Presentation Themes
168Beamer includes many built-in themes controlling overall layout:
170**Classic Themes**:
171```latex
172\usetheme{Berlin} % Sections in header
173\usetheme{Copenhagen} % Minimal, clean
174\usetheme{Madrid} % Professional, rounded
175\usetheme{Boadilla} % Simple footer
176\usetheme{AnnArbor} % Vertical navigation
177```
179**Modern Themes**:
180```latex
181\usetheme{CambridgeUS} % Blue theme
182\usetheme{Singapore} % Minimalist
183\usetheme{Rochester} % Very minimal
184\usetheme{Antibes} % Tree navigation
185```
187**Popular for Science**:
188```latex
189% Clean and minimal
190\usetheme{default}
191\usetheme{Copenhagen}
193% Professional with navigation
194\usetheme{Madrid}
195\usetheme{Berlin}
197% Traditional academic
198\usetheme{Pittsburgh}
199\usetheme{Boadilla}
200```

Presentation Themes

Beamer includes many built-in themes controlling overall layout:

Classic Themes:

\usetheme{Berlin}      % Sections in header
\usetheme{Copenhagen}  % Minimal, clean
\usetheme{Madrid}      % Professional, rounded
\usetheme{Boadilla}    % Simple footer
\usetheme{AnnArbor}    % Vertical navigation

Modern Themes:

\usetheme{CambridgeUS}  % Blue theme
\usetheme{Singapore}    % Minimalist
\usetheme{Rochester}    % Very minimal
\usetheme{Antibes}      % Tree navigation

Popular for Science:

% Clean and minimal
\usetheme{default}
\usetheme{Copenhagen}

% Professional with navigation
\usetheme{Madrid}
\usetheme{Berlin}

% Traditional academic
\usetheme{Pittsburgh}
\usetheme{Boadilla}
Raw lines 166 to 201
202### Color Themes
204```latex
205% Blue themes
206\usecolortheme{default} % Blue
207\usecolortheme{dolphin} % Cyan-blue
208\usecolortheme{seagull} % Grayscale
210% Warm themes
211\usecolortheme{beaver} % Red/brown
212\usecolortheme{rose} % Pink/red
214% Nature themes
215\usecolortheme{orchid} % Purple
216\usecolortheme{crane} % Orange/yellow
218% Professional
219\usecolortheme{albatross} % Gray/blue
220```

Color Themes

% Blue themes
\usecolortheme{default}      % Blue
\usecolortheme{dolphin}      % Cyan-blue
\usecolortheme{seagull}      % Grayscale

% Warm themes
\usecolortheme{beaver}       % Red/brown
\usecolortheme{rose}         % Pink/red

% Nature themes
\usecolortheme{orchid}       % Purple
\usecolortheme{crane}        % Orange/yellow

% Professional
\usecolortheme{albatross}    % Gray/blue
Raw lines 202 to 221
222### Font Themes
224```latex
225\usefonttheme{default} % Standard
226\usefonttheme{serif} % Serif fonts
227\usefonttheme{structurebold} % Bold structure
228\usefonttheme{structureitalicserif} % Italic serif
229\usefonttheme{professionalfonts} % Professional fonts
230```

Font Themes

\usefonttheme{default}              % Standard
\usefonttheme{serif}                % Serif fonts
\usefonttheme{structurebold}        % Bold structure
\usefonttheme{structureitalicserif} % Italic serif
\usefonttheme{professionalfonts}    % Professional fonts
Raw lines 222 to 231
232### Custom Colors
234```latex
235% Define custom colors
236\definecolor{myblue}{RGB}{0,115,178}
237\definecolor{myred}{RGB}{214,40,40}
239% Apply to theme elements
240\setbeamercolor{structure}{fg=myblue}
241\setbeamercolor{title}{fg=myred}
242\setbeamercolor{frametitle}{fg=myblue,bg=white}
243\setbeamercolor{block title}{fg=white,bg=myblue}
244```

Custom Colors

% Define custom colors
\definecolor{myblue}{RGB}{0,115,178}
\definecolor{myred}{RGB}{214,40,40}

% Apply to theme elements
\setbeamercolor{structure}{fg=myblue}
\setbeamercolor{title}{fg=myred}
\setbeamercolor{frametitle}{fg=myblue,bg=white}
\setbeamercolor{block title}{fg=white,bg=myblue}
Raw lines 232 to 245
246### Minimal Custom Theme
248```latex
249% Remove navigation symbols
250\setbeamertemplate{navigation symbols}{}
252% Page numbers
253\setbeamertemplate{footline}[frame number]
255% Simple itemize
256\setbeamertemplate{itemize items}[circle]
258% Clean blocks
259\setbeamertemplate{blocks}[rounded][shadow=false]
261% Colors
262\setbeamercolor{structure}{fg=blue!70!black}
263\setbeamercolor{title}{fg=black}
264\setbeamercolor{frametitle}{fg=blue!70!black}
265```

Minimal Custom Theme

% Remove navigation symbols
\setbeamertemplate{navigation symbols}{}

% Page numbers
\setbeamertemplate{footline}[frame number]

% Simple itemize
\setbeamertemplate{itemize items}[circle]

% Clean blocks
\setbeamertemplate{blocks}[rounded][shadow=false]

% Colors
\setbeamercolor{structure}{fg=blue!70!black}
\setbeamercolor{title}{fg=black}
\setbeamercolor{frametitle}{fg=blue!70!black}
Raw lines 246 to 266
267## Content Elements

Content Elements

Raw lines 267 to 268
269### Lists
271**Itemize**:
272```latex
273\begin{frame}{Bullet Points}
274 \begin{itemize}
275 \item First point
276 \item Second point
277 \begin{itemize}
278 \item Nested point
279 \end{itemize}
280 \item Third point
281 \end{itemize}
282\end{frame}
283```
285**Enumerate**:
286```latex
287\begin{frame}{Numbered List}
288 \begin{enumerate}
289 \item First item
290 \item Second item
291 \item Third item
292 \end{enumerate}
293\end{frame}
294```
296**Description**:
297```latex
298\begin{frame}{Definitions}
299 \begin{description}
300 \item[Term 1] Definition of term 1
301 \item[Term 2] Definition of term 2
302 \end{description}
303\end{frame}
304```

Lists

Itemize:

\begin{frame}{Bullet Points}
  \begin{itemize}
    \item First point
    \item Second point
      \begin{itemize}
        \item Nested point
      \end{itemize}
    \item Third point
  \end{itemize}
\end{frame}

Enumerate:

\begin{frame}{Numbered List}
  \begin{enumerate}
    \item First item
    \item Second item
    \item Third item
  \end{enumerate}
\end{frame}

Description:

\begin{frame}{Definitions}
  \begin{description}
    \item[Term 1] Definition of term 1
    \item[Term 2] Definition of term 2
  \end{description}
\end{frame}
Raw lines 269 to 305
306### Columns
308```latex
309\begin{frame}{Two Column Layout}
310 \begin{columns}
312 % Left column
313 \begin{column}{0.5\textwidth}
314 \begin{itemize}
315 \item Point 1
316 \item Point 2
317 \end{itemize}
318 \end{column}
320 % Right column
321 \begin{column}{0.5\textwidth}
322 \includegraphics[width=\textwidth]{figure.png}
323 \end{column}
325 \end{columns}
326\end{frame}
327```
329**Three Column Layout**:
330```latex
331\begin{columns}[T] % Align at top
332 \begin{column}{0.32\textwidth}
333 Content A
334 \end{column}
335 \begin{column}{0.32\textwidth}
336 Content B
337 \end{column}
338 \begin{column}{0.32\textwidth}
339 Content C
340 \end{column}
341\end{columns}
342```

Columns

\begin{frame}{Two Column Layout}
  \begin{columns}
    
    % Left column
    \begin{column}{0.5\textwidth}
      \begin{itemize}
        \item Point 1
        \item Point 2
      \end{itemize}
    \end{column}
    
    % Right column
    \begin{column}{0.5\textwidth}
      \includegraphics[width=\textwidth]{figure.png}
    \end{column}
    
  \end{columns}
\end{frame}

Three Column Layout:

\begin{columns}[T] % Align at top
  \begin{column}{0.32\textwidth}
    Content A
  \end{column}
  \begin{column}{0.32\textwidth}
    Content B
  \end{column}
  \begin{column}{0.32\textwidth}
    Content C
  \end{column}
\end{columns}
Raw lines 306 to 343
344### Figures
346```latex
347\begin{frame}{Figure Example}
348 \begin{figure}
349 \centering
350 \includegraphics[width=0.8\textwidth]{figure.pdf}
351 \caption{Figure caption text}
352 \end{figure}
353\end{frame}
354```
356**Side-by-Side Figures**:
357```latex
358\begin{frame}{Comparison}
359 \begin{columns}
360 \begin{column}{0.5\textwidth}
361 \begin{figure}
362 \includegraphics[width=\textwidth]{fig1.pdf}
363 \caption{Condition A}
364 \end{figure}
365 \end{column}
366 \begin{column}{0.5\textwidth}
367 \begin{figure}
368 \includegraphics[width=\textwidth]{fig2.pdf}
369 \caption{Condition B}
370 \end{figure}
371 \end{column}
372 \end{columns}
373\end{frame}
374```
376**Subfigures**:
377```latex
378\usepackage{subcaption}
380\begin{frame}{Multiple Panels}
381 \begin{figure}
382 \centering
383 \begin{subfigure}{0.45\textwidth}
384 \includegraphics[width=\textwidth]{fig1.pdf}
385 \caption{Panel A}
386 \end{subfigure}
387 \hfill
388 \begin{subfigure}{0.45\textwidth}
389 \includegraphics[width=\textwidth]{fig2.pdf}
390 \caption{Panel B}
391 \end{subfigure}
392 \caption{Overall figure caption}
393 \end{figure}
394\end{frame}
395```

Figures

\begin{frame}{Figure Example}
  \begin{figure}
    \centering
    \includegraphics[width=0.8\textwidth]{figure.pdf}
    \caption{Figure caption text}
  \end{figure}
\end{frame}

Side-by-Side Figures:

\begin{frame}{Comparison}
  \begin{columns}
    \begin{column}{0.5\textwidth}
      \begin{figure}
        \includegraphics[width=\textwidth]{fig1.pdf}
        \caption{Condition A}
      \end{figure}
    \end{column}
    \begin{column}{0.5\textwidth}
      \begin{figure}
        \includegraphics[width=\textwidth]{fig2.pdf}
        \caption{Condition B}
      \end{figure}
    \end{column}
  \end{columns}
\end{frame}

Subfigures:

\usepackage{subcaption}

\begin{frame}{Multiple Panels}
  \begin{figure}
    \centering
    \begin{subfigure}{0.45\textwidth}
      \includegraphics[width=\textwidth]{fig1.pdf}
      \caption{Panel A}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.45\textwidth}
      \includegraphics[width=\textwidth]{fig2.pdf}
      \caption{Panel B}
    \end{subfigure}
    \caption{Overall figure caption}
  \end{figure}
\end{frame}
Raw lines 344 to 396
397### Tables
399```latex
400\begin{frame}{Table Example}
401 \begin{table}
402 \centering
403 \begin{tabular}{lcc}
404 \toprule
405 Method & Accuracy & Time \\
406 \midrule
407 Method A & 0.85 & 10s \\
408 Method B & 0.92 & 25s \\
409 Method C & 0.88 & 15s \\
410 \bottomrule
411 \end{tabular}
412 \caption{Performance comparison}
413 \end{table}
414\end{frame}
415```

Tables

\begin{frame}{Table Example}
  \begin{table}
    \centering
    \begin{tabular}{lcc}
      \toprule
      Method & Accuracy & Time \\
      \midrule
      Method A & 0.85 & 10s \\
      Method B & 0.92 & 25s \\
      Method C & 0.88 & 15s \\
      \bottomrule
    \end{tabular}
    \caption{Performance comparison}
  \end{table}
\end{frame}
Raw lines 397 to 416
417### Blocks
419**Standard Blocks**:
420```latex
421\begin{frame}{Block Examples}
423 % Standard block
424 \begin{block}{Block Title}
425 Block content goes here
426 \end{block}
428 % Alert block (red)
429 \begin{alertblock}{Important}
430 Warning or important information
431 \end{alertblock}
433 % Example block (green)
434 \begin{exampleblock}{Example}
435 Example content
436 \end{exampleblock}
438\end{frame}
439```
441**Theorem Environments**:
442```latex
443\begin{frame}{Mathematical Results}
445 \begin{theorem}
446 Statement of theorem
447 \end{theorem}
449 \begin{proof}
450 Proof goes here
451 \end{proof}
453 \begin{definition}
454 Definition text
455 \end{definition}
457 \begin{lemma}
458 Lemma statement
459 \end{lemma}
461\end{frame}
462```

Blocks

Standard Blocks:

\begin{frame}{Block Examples}
  
  % Standard block
  \begin{block}{Block Title}
    Block content goes here
  \end{block}
  
  % Alert block (red)
  \begin{alertblock}{Important}
    Warning or important information
  \end{alertblock}
  
  % Example block (green)
  \begin{exampleblock}{Example}
    Example content
  \end{exampleblock}
  
\end{frame}

Theorem Environments:

\begin{frame}{Mathematical Results}
  
  \begin{theorem}
    Statement of theorem
  \end{theorem}
  
  \begin{proof}
    Proof goes here
  \end{proof}
  
  \begin{definition}
    Definition text
  \end{definition}
  
  \begin{lemma}
    Lemma statement
  \end{lemma}
  
\end{frame}
Raw lines 417 to 463
464## Overlays and Animations

Overlays and Animations

Raw lines 464 to 465
466### Progressive Disclosure with \pause
468```latex
469\begin{frame}{Revealing Content}
470 First point appears immediately
472 \pause
474 Second point appears on click
476 \pause
478 Third point appears on another click
479\end{frame}
480```

Progressive Disclosure with \pause

\begin{frame}{Revealing Content}
  First point appears immediately
  
  \pause
  
  Second point appears on click
  
  \pause
  
  Third point appears on another click
\end{frame}
Raw lines 466 to 481
482### Overlay Specifications
484**Itemize with Overlays**:
485```latex
486\begin{frame}{Sequential Bullets}
487 \begin{itemize}
488 \item<1-> Appears on slide 1 and stays
489 \item<2-> Appears on slide 2 and stays
490 \item<3-> Appears on slide 3 and stays
491 \end{itemize}
492\end{frame}
493```
495**Alternative Syntax**:
496```latex
497\begin{frame}{Sequential Bullets}
498 \begin{itemize}[<+->] % Automatically sequential
499 \item First point
500 \item Second point
501 \item Third point
502 \end{itemize}
503\end{frame}
504```

Overlay Specifications

Itemize with Overlays:

\begin{frame}{Sequential Bullets}
  \begin{itemize}
    \item<1-> Appears on slide 1 and stays
    \item<2-> Appears on slide 2 and stays
    \item<3-> Appears on slide 3 and stays
  \end{itemize}
\end{frame}

Alternative Syntax:

\begin{frame}{Sequential Bullets}
  \begin{itemize}[<+->]  % Automatically sequential
    \item First point
    \item Second point
    \item Third point
  \end{itemize}
\end{frame}
Raw lines 482 to 505
506### Highlighting with Overlays
508**Alert on Specific Slides**:
509```latex
510\begin{frame}{Highlighting}
511 \begin{itemize}
512 \item Normal text
513 \item<2-| alert@2> Text highlighted on slide 2
514 \item Normal text
515 \end{itemize}
516\end{frame}
517```
519**Temporary Appearance**:
520```latex
521\begin{frame}{Appearing and Disappearing}
522 Appears on all slides
524 \only<2>{Only visible on slide 2}
526 \uncover<3->{Appears on slide 3 and stays}
528 \visible<4->{Also appears on slide 4, but reserves space}
529\end{frame}
530```

Highlighting with Overlays

Alert on Specific Slides:

\begin{frame}{Highlighting}
  \begin{itemize}
    \item Normal text
    \item<2-| alert@2> Text highlighted on slide 2
    \item Normal text
  \end{itemize}
\end{frame}

Temporary Appearance:

\begin{frame}{Appearing and Disappearing}
  Appears on all slides
  
  \only<2>{Only visible on slide 2}
  
  \uncover<3->{Appears on slide 3 and stays}
  
  \visible<4->{Also appears on slide 4, but reserves space}
\end{frame}
Raw lines 506 to 531
532### Building Complex Figures
534```latex
535\begin{frame}{Building a Figure}
536 \begin{tikzpicture}
537 % Base elements (always visible)
538 \draw (0,0) rectangle (4,3);
540 % Add on slide 2+
541 \draw<2-> (1,1) circle (0.5);
543 % Add on slide 3+
544 \draw<3->[->, thick] (2,1.5) -- (3,2);
546 % Highlight on slide 4
547 \node<4>[red,thick] at (2,1.5) {Result};
548 \end{tikzpicture}
549\end{frame}
550```

Building Complex Figures

\begin{frame}{Building a Figure}
  \begin{tikzpicture}
    % Base elements (always visible)
    \draw (0,0) rectangle (4,3);
    
    % Add on slide 2+
    \draw<2-> (1,1) circle (0.5);
    
    % Add on slide 3+
    \draw<3->[->, thick] (2,1.5) -- (3,2);
    
    % Highlight on slide 4
    \node<4>[red,thick] at (2,1.5) {Result};
  \end{tikzpicture}
\end{frame}
Raw lines 532 to 551
552## Mathematical Content

Mathematical Content

Raw lines 552 to 553
554### Equations
556**Inline Math**:
557```latex
558\begin{frame}{Inline Math}
559 The equation $E = mc^2$ is famous.
561 We can also write $\alpha + \beta = \gamma$.
562\end{frame}
563```
565**Display Math**:
566```latex
567\begin{frame}{Display Equations}
568 Single equation:
569 \begin{equation}
570 f(x) = \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
571 \end{equation}
573 Multiple equations:
574 \begin{align}
575 E &= mc^2 \\
576 F &= ma \\
577 V &= IR
578 \end{align}
579\end{frame}
580```
582**Equation Arrays**:
583```latex
584\begin{frame}{Equation System}
585 \begin{equation}
586 \begin{cases}
587 \dot{x} = f(x,y) \\
588 \dot{y} = g(x,y)
589 \end{cases}
590 \end{equation}
591\end{frame}
592```

Equations

Inline Math:

\begin{frame}{Inline Math}
  The equation $E = mc^2$ is famous.
  
  We can also write $\alpha + \beta = \gamma$.
\end{frame}

Display Math:

\begin{frame}{Display Equations}
  Single equation:
  \begin{equation}
    f(x) = \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
  \end{equation}
  
  Multiple equations:
  \begin{align}
    E &= mc^2 \\
    F &= ma \\
    V &= IR
  \end{align}
\end{frame}

Equation Arrays:

\begin{frame}{Equation System}
  \begin{equation}
    \begin{cases}
      \dot{x} = f(x,y) \\
      \dot{y} = g(x,y)
    \end{cases}
  \end{equation}
\end{frame}
Raw lines 554 to 593
594### Matrices
596```latex
597\begin{frame}{Matrix Example}
598 \begin{equation}
599 A = \begin{bmatrix}
600 a_{11} & a_{12} & a_{13} \\
601 a_{21} & a_{22} & a_{23} \\
602 a_{31} & a_{32} & a_{33}
603 \end{bmatrix}
604 \end{equation}
605\end{frame}
606```

Matrices

\begin{frame}{Matrix Example}
  \begin{equation}
    A = \begin{bmatrix}
      a_{11} & a_{12} & a_{13} \\
      a_{21} & a_{22} & a_{23} \\
      a_{31} & a_{32} & a_{33}
    \end{bmatrix}
  \end{equation}
\end{frame}
Raw lines 594 to 607
608## Code and Algorithms

Code and Algorithms

Raw lines 608 to 609
610### Code Listings
612```latex
613\begin{frame}[fragile]{Python Code}
614 \begin{lstlisting}[language=Python]
615def fibonacci(n):
616 if n <= 1:
617 return n
618 return fibonacci(n-1) + fibonacci(n-2)
619 \end{lstlisting}
620\end{frame}
621```
623**Custom Code Styling**:
624```latex
625\lstset{
626 language=Python,
627 basicstyle=\ttfamily\small,
628 keywordstyle=\color{blue},
629 commentstyle=\color{green!60!black},
630 stringstyle=\color{orange},
631 numbers=left,
632 numberstyle=\tiny,
633 frame=single,
634 breaklines=true
637\begin{frame}[fragile]{Styled Code}
638 \begin{lstlisting}
639 # This is a comment
640 def hello(name):
641 """Greet someone"""
642 print(f"Hello, {name}")
643 \end{lstlisting}
644\end{frame}
645```

Code Listings

\begin{frame}[fragile]{Python Code}
  \begin{lstlisting}[language=Python]
def fibonacci(n):
    if n <= 1:
        return n
    return fibonacci(n-1) + fibonacci(n-2)
  \end{lstlisting}
\end{frame}

Custom Code Styling:

\lstset{
  language=Python,
  basicstyle=\ttfamily\small,
  keywordstyle=\color{blue},
  commentstyle=\color{green!60!black},
  stringstyle=\color{orange},
  numbers=left,
  numberstyle=\tiny,
  frame=single,
  breaklines=true
}

\begin{frame}[fragile]{Styled Code}
  \begin{lstlisting}
  # This is a comment
  def hello(name):
      """Greet someone"""
      print(f"Hello, {name}")
  \end{lstlisting}
\end{frame}
Raw lines 610 to 646
647### Algorithms
649```latex
650\begin{frame}{Algorithm Example}
651 \begin{algorithm}[H]
652 \caption{Quicksort}
653 \begin{algorithmic}[1]
654 \REQUIRE Array $A$, indices $low$, $high$
655 \ENSURE Sorted array
656 \IF{$low < high$}
657 \STATE $pivot \gets partition(A, low, high)$
658 \STATE $quicksort(A, low, pivot-1)$
659 \STATE $quicksort(A, pivot+1, high)$
660 \ENDIF
661 \end{algorithmic}
662 \end{algorithm}
663\end{frame}
664```

Algorithms

\begin{frame}{Algorithm Example}
  \begin{algorithm}[H]
    \caption{Quicksort}
    \begin{algorithmic}[1]
      \REQUIRE Array $A$, indices $low$, $high$
      \ENSURE Sorted array
      \IF{$low < high$}
        \STATE $pivot \gets partition(A, low, high)$
        \STATE $quicksort(A, low, pivot-1)$
        \STATE $quicksort(A, pivot+1, high)$
      \ENDIF
    \end{algorithmic}
  \end{algorithm}
\end{frame}
Raw lines 647 to 665
666## Citations and Bibliography

Citations and Bibliography

Raw lines 666 to 667
668### Inline Citations
670```latex
671\begin{frame}{Background}
672 Previous work \cite{smith2020} showed that...
674 Multiple studies \cite{jones2019,brown2021} have found...
676 According to \textcite{davis2022}, the method works by...
677\end{frame}
678```

Inline Citations

\begin{frame}{Background}
  Previous work \cite{smith2020} showed that...
  
  Multiple studies \cite{jones2019,brown2021} have found...
  
  According to \textcite{davis2022}, the method works by...
\end{frame}
Raw lines 668 to 679
680### Bibliography Slide
682```latex
683% At end of presentation
684\begin{frame}[allowframebreaks]{References}
685 \printbibliography
686\end{frame}
687```

Bibliography Slide

% At end of presentation
\begin{frame}[allowframebreaks]{References}
  \printbibliography
\end{frame}
Raw lines 680 to 688
689### Custom Bibliography Style
691```latex
692% In preamble
693\usepackage[style=authoryear,maxbibnames=2,maxcitenames=2]{biblatex}
694\addbibresource{references.bib}
696% Smaller font for references
697\renewcommand*{\bibfont}{\scriptsize}
698```

Custom Bibliography Style

% In preamble
\usepackage[style=authoryear,maxbibnames=2,maxcitenames=2]{biblatex}
\addbibresource{references.bib}

% Smaller font for references
\renewcommand*{\bibfont}{\scriptsize}
Raw lines 689 to 699
700## Advanced Features

Advanced Features

Raw lines 700 to 701
702### Section Organization
704```latex
705\section{Introduction}
706\begin{frame}{Introduction}
707 Content
708\end{frame}
710\section{Methods}
711\begin{frame}{Methods}
712 Content
713\end{frame}
715% Automatic outline
716\begin{frame}{Outline}
717 \tableofcontents
718\end{frame}
720% Outline at each section
721\AtBeginSection{
722 \begin{frame}{Outline}
723 \tableofcontents[currentsection]
724 \end{frame}
726```

Section Organization

\section{Introduction}
\begin{frame}{Introduction}
  Content
\end{frame}

\section{Methods}
\begin{frame}{Methods}
  Content
\end{frame}

% Automatic outline
\begin{frame}{Outline}
  \tableofcontents
\end{frame}

% Outline at each section
\AtBeginSection{
  \begin{frame}{Outline}
    \tableofcontents[currentsection]
  \end{frame}
}
Raw lines 702 to 727
728### Backup Slides
730```latex
731% Main presentation ends
732\begin{frame}{Thank You}
733 Questions?
734\end{frame}
736% Appendix alone does not exclude frames from total numbering.
737% In the preamble use \usepackage{appendixnumberbeamer} if that behavior is wanted.
738\appendix
740\begin{frame}{Extra Data}
741 Additional analysis for questions
742\end{frame}
744\begin{frame}{Detailed Methods}
745 More methodological details
746\end{frame}
747```

Backup Slides

% Main presentation ends
\begin{frame}{Thank You}
  Questions?
\end{frame}

% Appendix alone does not exclude frames from total numbering.
% In the preamble use \usepackage{appendixnumberbeamer} if that behavior is wanted.
\appendix

\begin{frame}{Extra Data}
  Additional analysis for questions
\end{frame}

\begin{frame}{Detailed Methods}
  More methodological details
\end{frame}
Raw lines 728 to 748
749### Hyperlinks
751```latex
752% Define labels
753\begin{frame}{Main Result}
754 \label{mainresult}
755 This is the main finding.
756\end{frame}
758% Link to labeled frame
759\begin{frame}{Reference}
760 As shown in the \hyperlink{mainresult}{main result}...
761\end{frame}
763% External links
764\begin{frame}{Resources}
765 Visit \url{https://example.com} for more information.
767 \href{https://github.com/user/repo}{GitHub Repository}
768\end{frame}
769```

Hyperlinks

% Define labels
\begin{frame}{Main Result}
  \label{mainresult}
  This is the main finding.
\end{frame}

% Link to labeled frame
\begin{frame}{Reference}
  As shown in the \hyperlink{mainresult}{main result}...
\end{frame}

% External links
\begin{frame}{Resources}
  Visit \url{https://example.com} for more information.
  
  \href{https://github.com/user/repo}{GitHub Repository}
\end{frame}
Raw lines 749 to 770
771### QR Codes
773```latex
774\usepackage{qrcode}
776\begin{frame}{Scan for Paper}
777 \begin{center}
778 \qrcode[height=3cm]{https://doi.org/10.1234/paper}
780 \vspace{0.5cm}
781 Scan for full paper
782 \end{center}
783\end{frame}
784```

QR Codes

\usepackage{qrcode}

\begin{frame}{Scan for Paper}
  \begin{center}
    \qrcode[height=3cm]{https://doi.org/10.1234/paper}
    
    \vspace{0.5cm}
    Scan for full paper
  \end{center}
\end{frame}
Raw lines 771 to 785
786### Multimedia
788```latex
789\usepackage{multimedia}
791\begin{frame}{Video}
792 \movie[width=8cm,height=6cm]{Click to play}{video.mp4}
793\end{frame}
794```
796**Note**: Multimedia support varies by PDF viewer.

Multimedia

\usepackage{multimedia}

\begin{frame}{Video}
  \movie[width=8cm,height=6cm]{Click to play}{video.mp4}
\end{frame}

Note: Multimedia support varies by PDF viewer.

Raw lines 786 to 797
798## TikZ Graphics
800### Basic Shapes
802```latex
803\usepackage{tikz}
805\begin{frame}{TikZ Example}
806 \begin{tikzpicture}
807 % Rectangle
808 \draw (0,0) rectangle (2,1);
810 % Circle
811 \draw (3,0.5) circle (0.5);
813 % Line with arrow
814 \draw[->, thick] (0,0) -- (3,2);
816 % Node with text
817 \node at (1.5,2) {Label};
818 \end{tikzpicture}
819\end{frame}
820```

Basic Shapes

\usepackage{tikz}

\begin{frame}{TikZ Example}
  \begin{tikzpicture}
    % Rectangle
    \draw (0,0) rectangle (2,1);
    
    % Circle
    \draw (3,0.5) circle (0.5);
    
    % Line with arrow
    \draw[->, thick] (0,0) -- (3,2);
    
    % Node with text
    \node at (1.5,2) {Label};
  \end{tikzpicture}
\end{frame}
Raw lines 800 to 821
822### Flowcharts
824```latex
825\usetikzlibrary{shapes,arrows,positioning}
827\begin{frame}{Workflow}
828 \begin{tikzpicture}[node distance=2cm]
829 \node[rectangle,draw] (start) {Start};
830 \node[rectangle,draw,right=of start] (process) {Process};
831 \node[rectangle,draw,right=of process] (end) {End};
833 \draw[->,thick] (start) -- (process);
834 \draw[->,thick] (process) -- (end);
835 \end{tikzpicture}
836\end{frame}
837```

Flowcharts

\usetikzlibrary{shapes,arrows,positioning}

\begin{frame}{Workflow}
  \begin{tikzpicture}[node distance=2cm]
    \node[rectangle,draw] (start) {Start};
    \node[rectangle,draw,right=of start] (process) {Process};
    \node[rectangle,draw,right=of process] (end) {End};
    
    \draw[->,thick] (start) -- (process);
    \draw[->,thick] (process) -- (end);
  \end{tikzpicture}
\end{frame}
Raw lines 822 to 838
839### Plots
841```latex
842\usepackage{pgfplots}
843\pgfplotsset{compat=1.18}
845\begin{frame}{Data Plot}
846 \begin{tikzpicture}
847 \begin{axis}[
848 xlabel={$x$},
849 ylabel={$y$},
850 width=8cm,
851 height=6cm
852 ]
853 \addplot[blue,thick] coordinates {
854 (0,0) (1,1) (2,4) (3,9)
855 };
856 \addplot[red,dashed] {x};
857 \end{axis}
858 \end{tikzpicture}
859\end{frame}
860```

Plots

\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{frame}{Data Plot}
  \begin{tikzpicture}
    \begin{axis}[
      xlabel={$x$},
      ylabel={$y$},
      width=8cm,
      height=6cm
    ]
    \addplot[blue,thick] coordinates {
      (0,0) (1,1) (2,4) (3,9)
    };
    \addplot[red,dashed] {x};
    \end{axis}
  \end{tikzpicture}
\end{frame}
Raw lines 839 to 861
862## Compilation
864### Basic Compilation
866```bash
867# Standard compilation
868pdflatex -no-shell-escape presentation.tex
870# With bibliography
871pdflatex -no-shell-escape presentation.tex
872biber presentation
873pdflatex -no-shell-escape presentation.tex
874pdflatex -no-shell-escape presentation.tex
875```

Basic Compilation

# Standard compilation
pdflatex -no-shell-escape presentation.tex

# With bibliography
pdflatex -no-shell-escape presentation.tex
biber presentation
pdflatex -no-shell-escape presentation.tex
pdflatex -no-shell-escape presentation.tex
Raw lines 864 to 876
877### Modern Compilation (Recommended)
879```bash
880# Using latexmk (automated)
881latexmk -pdf -no-shell-escape presentation.tex
883# With continuous preview
884latexmk -pdf -pvc presentation.tex
885```

Modern Compilation (Recommended)

# Using latexmk (automated)
latexmk -pdf -no-shell-escape presentation.tex

# With continuous preview
latexmk -pdf -pvc presentation.tex
Raw lines 877 to 886
887### Compilation Options
889```bash
890# Faster compilation (draft mode)
891pdflatex -draftmode presentation.tex
893# Specific engine
894lualatex presentation.tex # Better Unicode support
895xelatex presentation.tex # System fonts
897# Output directory
898pdflatex -output-directory=build presentation.tex
899```

Compilation Options

# Faster compilation (draft mode)
pdflatex -draftmode presentation.tex

# Specific engine
lualatex presentation.tex    # Better Unicode support
xelatex presentation.tex     # System fonts

# Output directory
pdflatex -output-directory=build presentation.tex
Raw lines 887 to 900
901## Handouts and Notes

Handouts and Notes

Raw lines 901 to 902
903### Creating Handouts
905```latex
906% In preamble
907\documentclass[handout]{beamer}
909% This removes overlays and creates one frame per slide
910```

Creating Handouts

% In preamble
\documentclass[handout]{beamer}

% This removes overlays and creates one frame per slide
Raw lines 903 to 911
912### Speaker Notes
914```latex
915\usepackage{pgfpages}
916\setbeameroption{show notes on second screen=right}
918\begin{frame}{Slide Title}
919 Slide content visible to audience
921 \note{
922 These notes are visible only to speaker:
923 - Remember to emphasize X
924 - Mention collaboration with Y
925 - Expect question about Z
926 }
927\end{frame}
928```

Speaker Notes

\usepackage{pgfpages}
\setbeameroption{show notes on second screen=right}

\begin{frame}{Slide Title}
  Slide content visible to audience
  
  \note{
    These notes are visible only to speaker:
    - Remember to emphasize X
    - Mention collaboration with Y
    - Expect question about Z
  }
\end{frame}
Raw lines 912 to 929
930### Handout with Notes
932```latex
933\documentclass[handout]{beamer}
934\usepackage{pgfpages}
935\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
936```

Handout with Notes

\documentclass[handout]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
Raw lines 930 to 937
938## Best Practices

Best Practices

Raw lines 938 to 939
940### Do's
942- ✅ Use consistent theme throughout
943- ✅ Keep equations simple and large
944- ✅ Use progressive disclosure (\pause, overlays)
945- ✅ Include frame numbers
946- ✅ Use vector graphics (PDF) for figures
947- ✅ Test compilation early and often
948- ✅ Use meaningful section names
949- ✅ Keep backup slides in appendix

Do's

  • ✅ Use consistent theme throughout
  • ✅ Keep equations simple and large
  • ✅ Use progressive disclosure (\pause, overlays)
  • ✅ Include frame numbers
  • ✅ Use vector graphics (PDF) for figures
  • ✅ Test compilation early and often
  • ✅ Use meaningful section names
  • ✅ Keep backup slides in appendix
Raw lines 940 to 950
951### Don'ts
953- ❌ Don't use too many different fonts or colors
954- ❌ Don't fill slides with dense text
955- ❌ Don't use tiny font sizes
956- ❌ Don't include complex animations (limited support)
957- ❌ Don't forget fragile frames for code
958- ❌ Don't mix themes inconsistently
959- ❌ Don't ignore compilation warnings

Don'ts

  • ❌ Don't use too many different fonts or colors
  • ❌ Don't fill slides with dense text
  • ❌ Don't use tiny font sizes
  • ❌ Don't include complex animations (limited support)
  • ❌ Don't forget fragile frames for code
  • ❌ Don't mix themes inconsistently
  • ❌ Don't ignore compilation warnings
Raw lines 951 to 960
961## Troubleshooting

Troubleshooting

Raw lines 961 to 962
963### Common Issues
965**Missing Fragile**:
966```
967Error: Verbatim environment in frame
968Solution: Add [fragile] option to frame
969```
971**Package Conflicts**:
972```
973Error: Option clash for package X
974Solution: Load package in preamble only once
975```
977**Image Not Found**:
978```
979Error: File `figure.pdf' not found
980Solution: Check path, use \graphicspath, ensure file exists
981```
983**Overlay Issues**:
984```
985Problem: Overlays not working as expected
986Solution: Check syntax <n-> vs <n-m>, test incremental builds
987```

Common Issues

Missing Fragile:

Error: Verbatim environment in frame
Solution: Add [fragile] option to frame

Package Conflicts:

Error: Option clash for package X
Solution: Load package in preamble only once

Image Not Found:

Error: File `figure.pdf' not found
Solution: Check path, use \graphicspath, ensure file exists

Overlay Issues:

Problem: Overlays not working as expected
Solution: Check syntax <n-> vs <n-m>, test incremental builds
Raw lines 963 to 988
989### Debugging Tips
991```latex
992% Show frame labels
993\usepackage[notref,notcite]{showkeys}
995% Draft mode (faster, shows boxes)
996\documentclass[draft]{beamer}
998% Verbose error messages
999\errorcontextlines=999
1000```

Debugging Tips

% Show frame labels
\usepackage[notref,notcite]{showkeys}

% Draft mode (faster, shows boxes)
\documentclass[draft]{beamer}

% Verbose error messages
\errorcontextlines=999
Raw lines 989 to 1001
1002## Templates and Examples

Templates and Examples

Raw lines 1002 to 1003
1004### Minimal Working Example
1006See `assets/beamer_template_conference.tex` for a complete, customizable template for conference talks.

Minimal Working Example

See assets/beamer_template_conference.tex for a complete, customizable template for conference talks.

Raw lines 1004 to 1007
1008### Resources
1010- Beamer User Guide: `texdoc beamer`
1011- Theme Gallery: https://deic.uab.cat/~iblanes/beamer_gallery/
1012- TikZ Examples: https://texample.net/tikz/

Resources

  • Beamer User Guide: texdoc beamer
  • Theme Gallery: https://deic.uab.cat/~iblanes/beamer_gallery/
  • TikZ Examples: https://texample.net/tikz/
Raw lines 1008 to 1013
1014## Summary
1016Beamer excels at:
1017- Mathematical content
1018- Consistent professional formatting
1019- Reproducible presentations
1020- Version control
1021- Citations and cross-references
1023Choose Beamer when:
1024- Presentation contains significant math/equations
1025- You value version control and plain text
1026- Consistent styling is priority
1027- You're comfortable with LaTeX
1029Consider PowerPoint when:
1030- Extensive custom graphics needed
1031- Collaborating with non-LaTeX users
1032- Complex animations required
1033- Rapid prototyping needed

Summary

Beamer excels at:

  • Mathematical content
  • Consistent professional formatting
  • Reproducible presentations
  • Version control
  • Citations and cross-references

Choose Beamer when:

  • Presentation contains significant math/equations
  • You value version control and plain text
  • Consistent styling is priority
  • You're comfortable with LaTeX

Consider PowerPoint when:

  • Extensive custom graphics needed
  • Collaborating with non-LaTeX users
  • Complex animations required
  • Rapid prototyping needed
Raw lines 1014 to 1033