<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Deuslirio Junior</title>
    <description>The latest articles on DEV Community by Deuslirio Junior (@deuslirio).</description>
    <link>https://dev.to/deuslirio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F390608%2Fc9f3bf53-1e51-47ca-860a-8685948cc91b.png</url>
      <title>DEV Community: Deuslirio Junior</title>
      <link>https://dev.to/deuslirio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deuslirio"/>
    <language>en</language>
    <item>
      <title>A custom LaTeX Presentation Template </title>
      <dc:creator>Deuslirio Junior</dc:creator>
      <pubDate>Wed, 20 May 2020 12:26:36 +0000</pubDate>
      <link>https://dev.to/deuslirio/a-custom-latex-presentation-template-1ekc</link>
      <guid>https://dev.to/deuslirio/a-custom-latex-presentation-template-1ekc</guid>
      <description>&lt;p&gt;In my university, we frequently need to present our studies. One option is to build our presentation using LaTeX/Beamer presentation templates. &lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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).&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.pptwork.com%2Fwp-content%2Fuploads%2F2017%2F12%2FBeamer-Powerpoint-Template-2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.pptwork.com%2Fwp-content%2Fuploads%2F2017%2F12%2FBeamer-Powerpoint-Template-2.jpg" alt="Default template of beamer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, with the help of some friends we built a &lt;a href="https://github.com/deuslirio/UFGTeX-Presentation" rel="noopener noreferrer"&gt;custom LaTeX presentation template&lt;/a&gt; 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.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fdeuslirio%2FUFGTeX-Presentation%2Fmaster%2Freadme%2Ftitle_layout_print.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fdeuslirio%2FUFGTeX-Presentation%2Fmaster%2Freadme%2Ftitle_layout_print.png" alt="custom color schema"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  How to use
&lt;/h1&gt;

&lt;p&gt;After downloading or cloning this repository, you must edit the file &lt;strong&gt;presentation.tex&lt;/strong&gt; to fill the content of the presentation. Firstly, take a look at the "Primary Definitions" part, at the begin of such a &lt;strong&gt;.tex&lt;/strong&gt;, and modify its parties, whether is needed. if you compile the code without changing, it will look like &lt;a href="https://github.com/deuslirio/UFGTeX-Presentation/blob/master/figs/UFGTeX_Presentation.pdf" rel="noopener noreferrer"&gt;this&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To set the default color&lt;/strong&gt; of the presentation, you can use the command &lt;code&gt;\setPrimaryColor{color}&lt;/code&gt;. This command supports one of the colors defined by the template or any color defined by the user.  &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;span class="k"&gt;\setPrimaryColor&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;UFGBlue&lt;span class="p"&gt;}&lt;/span&gt; 


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;To set the logo&lt;/strong&gt; of the department or institute, from the authors take part, you must use the command &lt;code&gt;\setLogos{path/horizontal_logo}{path/squared_logo}&lt;/code&gt; 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.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;span class="k"&gt;\setLogos&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;lib/logos/infw.png&lt;span class="p"&gt;}{&lt;/span&gt;lib/logos/infw2.png&lt;span class="p"&gt;}&lt;/span&gt; 


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;To define a layout&lt;/strong&gt; for a slide, you must use the command &lt;code&gt;\setLayout{layoutname}&lt;/code&gt;, just informing the name of the layout you would like to use. This command must be placed before the command &lt;code&gt;\begin{frame}&lt;/code&gt; of the slide you would like to change.  &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;span class="k"&gt;\setLayout&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;horizontal&lt;span class="p"&gt;}&lt;/span&gt; 
&lt;span class="nt"&gt;\begin{frame}&lt;/span&gt;
  &lt;span class="k"&gt;\frametitle&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;Table of Contents&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;\tableofcontents&lt;/span&gt;
&lt;span class="nt"&gt;\end{frame}&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;To define a color for the background&lt;/strong&gt; of a slide, you must use the command &lt;code&gt;\setBGColor{color}&lt;/code&gt; informing a color. This command must be placed before the command &lt;code&gt;\begin{frame}&lt;/code&gt; 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. &lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="k"&gt;\setBGColor&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;DarkOrange&lt;span class="p"&gt;}&lt;/span&gt;&lt;br&gt;
&lt;span class="nt"&gt;\begin{frame}&lt;/span&gt;&lt;br&gt;
&lt;span class="k"&gt;\frametitle&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;Pause Example&lt;span class="p"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;span class="nt"&amp;gt;\begin{itemize}&amp;lt;/span&amp;gt;
    &amp;lt;span class="k"&amp;gt;\item&amp;lt;/span&amp;gt; In this slide &amp;lt;span class="k"&amp;gt;\pause&amp;lt;/span&amp;gt;
    &amp;lt;span class="k"&amp;gt;\item&amp;lt;/span&amp;gt; the text will be partially visible &amp;lt;span class="k"&amp;gt;\pause&amp;lt;/span&amp;gt;
    &amp;lt;span class="k"&amp;gt;\item&amp;lt;/span&amp;gt; And finally everything will be there
&amp;lt;span class="nt"&amp;gt;\end{itemize}&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;span class="nt"&gt;\end{frame}&lt;/span&gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tex"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="k"&gt;\definecolor&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;MyColor&lt;span class="p"&gt;}{&lt;/span&gt;RGB&lt;span class="p"&gt;}{&lt;/span&gt;10, 115, 110&lt;span class="p"&gt;}&lt;/span&gt; &lt;br&gt;
&lt;span class="k"&gt;\setBGColor&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;MyColor&lt;span class="p"&gt;}&lt;/span&gt;&lt;br&gt;
&lt;span class="nt"&gt;\begin{frame}&lt;/span&gt;&lt;br&gt;
  &lt;span class="c"&gt;% ... &lt;/span&gt;&lt;br&gt;
&lt;span class="nt"&gt;\end{frame}&lt;/span&gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Template's Layouts&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;At this momment, UFGTeXPresentation has five option for slides' layout: &lt;strong&gt;titlepage, vertical, horizontal, mainpoint,&lt;/strong&gt; and &lt;strong&gt;blank&lt;/strong&gt;. You can see each layout appearance at the following figure:&lt;br&gt;&lt;br&gt;
 &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fdeuslirio%2FUFGTeX-Presentation%2Fmaster%2Freadme%2Flayouts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fdeuslirio%2FUFGTeX-Presentation%2Fmaster%2Freadme%2Flayouts.png" alt="Template example"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  Summary of the Template's commands
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Template Commands&lt;/th&gt;
&lt;th&gt;Number of Params&lt;/th&gt;
&lt;th&gt;Type of Params&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;setLayout&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Layout&lt;/td&gt;
&lt;td&gt;\setLayout{vertical}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setBGColor&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Color&lt;/td&gt;
&lt;td&gt;\setBGColor{DarkPurple}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setPrimaryColor&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Color&lt;/td&gt;
&lt;td&gt;\setPrimaryColor{UFGBlue}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;setLogos&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Image URL&lt;/td&gt;
&lt;td&gt;\setLogos{lib/logos/infw.png}{lib/logos/infw2.png}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  Overleaf
&lt;/h1&gt;

&lt;p&gt;Overleaf is a platform to share and coedit LaTeX projects.&lt;br&gt;
This template can be easily used and modified directly in the &lt;a href="https://www.overleaf.com/latex/templates/ufgtex-presentation/zhvynsrvwnrg" rel="noopener noreferrer"&gt;Overleaf&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octograd2020</category>
      <category>latex</category>
      <category>computerscience</category>
      <category>beamer</category>
    </item>
  </channel>
</rss>
