A custom LaTeX Presentation Template 
Tags: octograd2020, LaTeX, computerscience, Beamer
Published: 2020-05-20 12:26:36

In my university, we frequently need to present our studies. One option is to build our presentation using LaTeX/Beamer presentation templates. 

Beamer is very powerful and practical to build presentations, but we needed a template with different style, with many slides layout, which usually is not provided by the default templates.

For example, the following image is a default template of beamer, in this template, the slides have this same layout (except for the title page).
![Default template of beamer](https://www.pptwork.com/wp-content/uploads/2017/12/Beamer-Powerpoint-Template-2.jpg)

So, with the help of some friends we built a [custom LaTeX presentation template](https://github.com/deuslirio/UFGTeX-Presentation) to help students, professors, or researchers to prepare their presentation slides in the format 16:9. Besides presenting a modern design concept, the template provides different slides’ layouts and color schemas to personalize the presentation.
![custom color schema](https://raw.githubusercontent.com/deuslirio/UFGTeX-Presentation/master/readme/title_layout_print.png)

# How to use
After downloading or cloning this repository, you must edit the file **presentation.tex** to fill the content of the presentation. Firstly, take a look at the "Primary Definitions" part, at the begin of such a **.tex**, and modify its parties, whether is needed. if you compile the code without changing, it will look like [this](https://github.com/deuslirio/UFGTeX-Presentation/blob/master/figs/UFGTeX_Presentation.pdf). 

**To set the default color** of the presentation, you can use the command `\setPrimaryColor{color}`. This command supports one of the colors defined by the template or any color defined by the user.  

```tex
\setPrimaryColor{UFGBlue} 
```

**To set the logo** of the department or institute, from the authors take part, you must use the command `\setLogos{path/horizontal_logo}{path/squared_logo}` to inform the paths of two files. The first one is the logo in title slide - we recommend using a horizontal image - and the second one is the logo used in the remaining slides - we recommend using a square image.
```tex
\setLogos{lib/logos/infw.png}{lib/logos/infw2.png} 
```

**To define a layout** for a slide, you must use the command `\setLayout{layoutname}`, just informing the name of the layout you would like to use. This command must be placed before the command `\begin{frame}` of the slide you would like to change.  

```tex
\setLayout{horizontal} 
\begin{frame}
  \frametitle{Table of Contents}
  \tableofcontents
\end{frame}
```  

**To define a color for the background** of a slide, you must use the command `\setBGColor{color}` informing a color. This command must be placed before the command `\begin{frame}` of the slide you would like to change. The color may be one of the template’s colors or a personalized color defined by the user. 

```tex
\setBGColor{DarkOrange}
\begin{frame}
\frametitle{Pause Example}

    \begin{itemize}
        \item In this slide \pause
        \item the text will be partially visible \pause
        \item And finally everything will be there
    \end{itemize}

\end{frame}
```

```tex
\definecolor{MyColor}{RGB}{10, 115, 110} 
\setBGColor{MyColor}
\begin{frame}
  % ... 
\end{frame}
```
## Template's Layouts
At this momment, UFGTeXPresentation has five option for slides' layout: **titlepage, vertical, horizontal, mainpoint,** and **blank**. You can see each layout appearance at the following figure:  
 ![Template example](https://raw.githubusercontent.com/deuslirio/UFGTeX-Presentation/master/readme/layouts.png) 

## Summary of the Template's commands

| Template Commands  | Number of Params | Type of Params | Example                                            |
|--------------------|------------------|----------------|----------------------------------------------------|
| setLayout          | 1                | Layout         | \setLayout{vertical}                               |
| setBGColor         | 1                | Color          | \setBGColor{DarkPurple}                            |
| setPrimaryColor    | 1                | Color          | \setPrimaryColor{UFGBlue}                          |
| setLogos           | 2                | Image URL      | \setLogos{lib/logos/infw.png}{lib/logos/infw2.png} |

#Overleaf
Overleaf is a platform to share and coedit LaTeX projects.
This template can be easily used and modified directly in the [Overleaf](https://www.overleaf.com/latex/templates/ufgtex-presentation/zhvynsrvwnrg)