Skip to content

Instantly share code, notes, and snippets.

@tapyu
Last active May 27, 2024 18:15
Show Gist options
  • Save tapyu/8f2fde0cde62eb664c2d6676469aa902 to your computer and use it in GitHub Desktop.
Save tapyu/8f2fde0cde62eb664c2d6676469aa902 to your computer and use it in GitHub Desktop.
General Beamer snippets

General Beamer snippets

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% UFC Beamer Class File
%% author: Rubem Vasconcelos Pacelli
%% description: This file creates a custom beamer class for the Federal University of Ceará (UFC).
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{beamer_class}[04/03/2022 v1.0 ufc template beamer]
\LoadClass[12pt, aspectratio=169]{beamer}
\NeedsTeXFormat{LaTeX2e}
%% Packages Used
\RequirePackage[utf8]{inputenc}
\RequirePackage[brazil]{babel}
\RequirePackage{graphicx}
\RequirePackage{hyperref}
\RequirePackage{microtype}
\RequirePackage[T1]{fontenc}
\RequirePackage{helvet}
\RequirePackage{pdfpages}
\RequirePackage{tcolorbox}
\RequirePackage{array}
\RequirePackage{colortbl}
\RequirePackage{graphicx}
\RequirePackage{fancybox}
\RequirePackage[footnotesize,hang]{caption}
\RequirePackage{ragged2e} % % Package to justify text
% Option management
\RequirePackage{beamerbaseoptions}
% make the itemize environment justified. For more info, see: https://tex.stackexchange.com/questions/50004/justify-text-inside-itemize-environment-with-beamer-class
\renewcommand{\itemize}[1][]{%
\beamer@ifempty{#1}{}{\def\beamer@defaultospec{#1}}%
\ifnum \@itemdepth >2\relax\@toodeep\else
\advance\@itemdepth\@ne
\beamer@computepref\@itemdepth% sets \beameritemnestingprefix
\usebeamerfont{itemize/enumerate \beameritemnestingprefix body}%
\usebeamercolor[fg]{itemize/enumerate \beameritemnestingprefix body}%
\usebeamertemplate{itemize/enumerate \beameritemnestingprefix body begin}%
\list
{\usebeamertemplate{itemize \beameritemnestingprefix item}}
{\def\makelabel##1{%
{%
\hss\llap{{%
\usebeamerfont*{itemize \beameritemnestingprefix item}%
\usebeamercolor[fg]{itemize \beameritemnestingprefix item}##1}}%
}%
}%
}
\fi%
\beamer@cramped%
\justifying% NEW
%\raggedright% ORIGINAL
\beamer@firstlineitemizeunskip%
}
\documentclass[
hyperref={colorlinks,citecolor=DeepPink4,linkcolor=DarkRed,urlcolor=DarkBlue}
]{beamer_class}
\usepackage{soul} % In text mode, the \underline command will enclose its argument in a horizontal box, which doesn't allow linebreaks. Use the \ul command of the soul package instead.
\usepackage[absolute,overlay]{textpos} % insert absolute text positioning with textblock environment
\input{default_preamble.tex}
%%%%%%%%% beamer configuration %%%%%%%%%
\setlength{\TPHorizModule}{1cm}
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{theorems}[numbered]
\usefonttheme{professionalfonts} % prevent beamer from clashing with some font packages, e.g., bm. See https://tex.stackexchange.com/questions/344162/latex-error-too-many-symbol-fonts-declared-error
\beamertemplatenavigationsymbolsempty
\usecolortheme{seagull}
\setbeamercovered{transparent} % make \cover overlay transparent but not invisible
\usefonttheme[onlymath]{serif}
\definecolor{alertcolor}{rgb}{.0, .48, .74}
\setbeamercolor{alerted text}{fg=alertcolor}
\title{Title here}
\author{Rubem V. Pacelli}
\institute{Institute here}
\date{\today}
\begin{document}
\frame[noframenumbering,plain]{\titlepage}
\begin{frame}
\frametitle{Outline}
\tableofcontents[pausesections]
\end{frame}
\section{First section}
\begin{frame}[<+->][t]{First section}
Note: For each of the basic commands \textbackslash only, \textbackslash uncover, \textbackslash invisible and
\textbackslash alt there exists ``environment versions'': onlyenv, altenv, visibleenv, uncoverenv \& invisibleenv.
\begin{align}
\uncover<+->{A = & aL R^b \nonumber \\}
\uncover<+->{R = & \left(\frac{A}{aL}\right)^{\frac{1}{b}}}
\label{power_law}
\end{align}
\begin{visibleenv}<+->
Applying the \(\ln\) transformation in both side of this equation, we have
\begin{align}
\only<.>{\ln R = & \frac{1}{b} \ln A - \frac{\ln \left(aL\right)}{b} \nonumber}
\only<+->{\underbrace{\ln R}_{y} = & \underbrace{\frac{1}{b}}_{\theta_1} \underbrace{\ln A}_x \underbrace{- \frac{\ln \left(aL\right)}{b}}_{\theta_0} \nonumber}
\end{align}
\only<.->{Hence, we have a linear model, i.e., \(y = \theta_1 x + \theta_0\).}
\end{visibleenv}
\end{frame}
\begin{frame}[<+->][t]
\frametitle{teste}
\only<2>{Only: Neither occupies space nor is visible}
\visible<3>{Visible: Occupies space but is invisible}
\uncover<4>{But uncover both occupies space and is visible} Final test
\end{frame}
\begin{frame}[t]
\frametitle{Master Dissertation highlight's}
% for more information about footnote, access https://tex.stackexchange.com/questions/340058/uncovered-footnote-appears-too-early-in-beamer-presentation
\begin{onlyenv}<+>
Objetivo geral:
Concepção da arquitetura digital do modem AFSK. Implementação do protótipo lógico no \textit{software} \textit{MATLAB/Simulink} \textregistered ~\footnotemark[1]. Análise matemática dos sinais, descrição da arquitetura através de diagrama de blocos, e análise da performance do sistema obtido através de simulação computacional.
\only<.>{\footnotetext[1]{Versão R2020a, 9.8.0.1323502}}
\end{onlyenv}
\begin{onlyenv}<+>
Objetivos específicos:
\begin{enumerate}
\item Descrição matemática de uma nova arquitetura completamente digital de um modulador AFSK.
\item Descrição matemática de uma nova arquitetura completamente digital de um demodulador AFSK coerente com detecção via algoritmo de Viterbi.
\item Derivação do limite superior para a probabilidade de erro para o sistema AFSK discreto.
\item Descrição matemática de estimadores de fase e de tempo para esta nova arquitetura.
\end{enumerate}
\end{onlyenv}
\end{frame}
\begin{frame}
\frametitle{teste}
\begin{table}
\begin{tabular}{|p{8cm} | l|}
\hline
Undergraduated in Electronic Engineering at Unifor(Universidade de Fortaleza) & 2013-2018 \\
\hline
\end{tabular}
\end{table}
\end{frame}
\begin{frame}
\frametitle{teste}
\begin{columns}
\column{0.5\textwidth}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\column{0.5\textwidth}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\end{columns}
\end{frame}
\begin{frame}[<+->][t]{Who am I?}
Some personal information:
\begin{itemize}
\item Rubem Vasconcelos Pacelli, 27 years old.
\item I am from Fortaleza, Ceará, Brazil.
\end{itemize}
\uncover<.->{Academic information:}
\begin{itemize}
\item \begin{tabular*}{0.9\textwidth}[t]{p{7cm}@{\extracolsep{\fill}}r}
BSc in Electronic Engineering at \newline Unifor(Universidade de Fortaleza) & Jan 2013 -- Dec 2018 \end{tabular*}%\vspace{-7pt}
\item \begin{tabular*}{0.9\textwidth}[t]{p{6.5cm}@{\extracolsep{\fill}}r}
MSc in Teleinformatics Engineering at Federal University of Ceará. & Jan 2019 -- \emph{Jun 2021} \end{tabular*}%\vspace{-7pt}
\end{itemize}
\end{frame}
\begin{frame}[<+->]
\frametitle{What is my technical skills?}
\uncover{Programming (and hardware description) Languages:}
\begin{itemize}
\item Matlab/Simulink: 5 years of experience, approximately.
\item Python: 2 years of intense usage.
\item C, C++, VHDL, and Java: Secondary usage.
\end{itemize}
\uncover<+(1)->{Some further technical skills:}
\begin{itemize}
\item Git: Elementary concepts.
\item \LaTeX: Elementary concepts.
\end{itemize}
\uncover<+(1)->{Language skills:}
\begin{itemize}
\item English: Full professional working proficiency (Level B2 on TOEFL IBT. Total score: 74 out of 120).
\item Portuguese: Native Language.
\end{itemize}
\end{frame}
\begin{frame}{Main challenges}
\begin{itemize}
\item The design of modern digital modems for the further development of CubeSat satellite systems;
\item The usage of the software-defined radio (SDR) concept, combined with the enhancement of digital signal processing techniques, FPGA (field-programmable gate array), and microelectronics, has motivated a new generation of TT\&C (telemetry, tracking and command) modules that \ul{brings hardware flexibility, but at the same time, matches with the current modulation schemes}.
\end{itemize}
\begin{textblock}{8}(1,4.5)
The Viterbi algorithm is employed for the maximum likelihood sequence detection, and its statistics are feedbacked to estimate the phase and timing offset.
\end{textblock}
\end{frame}
\end{document}
\begin{frame}[<+->][t]{First section}
Note: For each of the basic commands \textbackslash only, \textbackslash uncover, \textbackslash invisible and
\textbackslash alt there exists ``environment versions'': onlyenv, altenv, visibleenv, uncoverenv \& invisibleenv.
\begin{IEEEeqnarray}{rCl}
\uncover<+(1)->{A & = & aL R^b \nonumber \\}
\uncover<+->{R & = & \left(\frac{A}{aL}\right)^{\frac{1}{b}}}
\label{power_law}
\end{IEEEeqnarray}
\begin{visibleenv}<+->
Applying the \(\ln\) transformation in both side of this equation, we have
\begin{IEEEeqnarray}{rCl}
\only<.>{\ln R & = & \frac{1}{b} \ln A - \frac{\ln \left(aL\right)}{b} \nonumber}
\only<+->{\underbrace{\ln R}_{y} & = & \underbrace{\frac{1}{b}}_{\theta_1} \underbrace{\ln A}_x \underbrace{- \frac{\ln \left(aL\right)}{b}}_{\theta_0} \nonumber}
\end{IEEEeqnarray}
\only<.->{Hence, we have a linear model, i.e., \(y = \theta_1 x + \theta_0\).} % The Least-Square (LS) can be used to fit this model and the inverse transformation can be used in order to retrieve the coefficients od the non-linear model.
\end{visibleenv}
\end{frame}
\begin{frame}[<+->][t]
\frametitle{teste}
\only<2>{Only: Neither occupies space nor is visible}
\visible<3>{Visible: Occupies space but is invisible}
\uncover<4>{But uncover both occupies space and is visible} Final test
\end{frame}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment