Skip to content

Instantly share code, notes, and snippets.

@R0mb0
Last active May 21, 2022 09:39
Show Gist options
  • Save R0mb0/0115adb4aec9f8a345076f6de7b35a87 to your computer and use it in GitHub Desktop.
Save R0mb0/0115adb4aec9f8a345076f6de7b35a87 to your computer and use it in GitHub Desktop.
LaTeX Beamer Template.
\documentclass[aspectratio=169]{beamer}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{amsmath,amssymb,lmodern}
\usetheme{AnnArbor}
\usepackage{animate}
% in way to comment a block
\long\def\/*#1*/{}
\makeatletter
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette primary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
\setbeamercolor*{section in head/foot}{parent=palette tertiary}
\setbeamercolor*{subsection in head/foot}{parent=palette primary}
% colors for the external link field
\setbeamercolor*{LinkToIndex}{parent=palette tertiary}
\defbeamertemplate*{footline}{}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}
\end{beamercolorbox}%
% this is a new field with an external link
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{LinkToIndex}%
\usebeamerfont{author in head/foot}\hyperlink{index}{Index}\hspace*{2ex}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,center]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber
\end{beamercolorbox}}%
\vskip0pt%
}
\setbeamersize{text margin left=1em,text margin right=1em}
\makeatother
\title{TITLE}
\author{AUTHOR}
\date{}
\institute{INSTITUDE}
\logo{\includegraphics[width=15mm]{Imgs/Uni}}
\setbeamercovered{dynamic}
\begin{document}
% Cover Page
\begin{frame}
\maketitle
\end{frame}
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
\section{Index}
\begin{frame}[label = index]
%\index{generate}
\tableofcontents
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment