-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.tex
71 lines (63 loc) · 2.12 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\documentclass[aspectratio=169\ifdefined\handout, handout\fi]{beamer}
\usepackage[italian]{babel}
\usepackage{tikz, cclicenses}
\usetikzlibrary{positioning, calc, shapes.geometric}
% FONT
\usepackage{fontspec}
\setmainfont[Scale=MatchLowercase, Ligatures=TeX]{MagicSchoolTwo.ttf}
\setbeamerfont{frametitle}{family=\rmfamily, size=\LARGE}
\setbeamertemplate{frametitle}[default][center]
\setbeamerfont{title}{family=\rmfamily, size=\Huge}
\setbeamerfont{subtitle}{family=\rmfamily, size=\Large}
\setbeamerfont{author}{family=\rmfamily, size=\Large}
\setbeamerfont{institute}{family=\rmfamily, size=\large}
\setbeamerfont{date}{family=\rmfamily}
\setbeamerfont{section name}{family=\rmfamily}
\setbeamerfont{section title}{family=\rmfamily, size=\Huge}
% COLOR
\definecolor{gred}{rgb}{0.45,0,0}
\setbeamercolor{frametitle}{fg=gred}
\setbeamercolor{section title}{fg=gred}
\setbeamercolor{title}{fg=gred}
\setbeamercolor{subtitle}{fg=gred}
\setbeamercolor{item}{fg=gred}
% BACKGROUND and TRANSITION
\ifdefined\handout
\def\transition{}
\else
\def\transition{\transfade}
\setbeamertemplate{background canvas}{
\includegraphics[width=\paperwidth,height=\paperheight]{parchment.jpg}
}
\fi
\beamertemplatenavigationsymbolsempty
% FRAME ENV
\newenvironment{myframe}[1]{\begin{frame}{#1}\transition\centering}{\end{frame}}
\def\sectionname{Sezione}
\AtBeginSection{\frame{\transition\centering\sectionpage}}
% STRIKEOUT
\usepackage{soul}
\newcommand<>{\stafter}[1]{%
\ifdefined\handout\st{#1}\else%
\only#2{#1}%
\invisible#2{\st{#1}}%
\fi%
}
% METADATA
\title[Difesa contro le Arti Oscure]{Difesa contro le Arti Oscure\\\Large Corso introduttivo alla sicurezza informatica}
\author{Davide Peressoni}
\institute[]{Commissione Informatica\\Collegio Universitario don Nicola Mazza}
\let\oldmaketitle\maketitle
\renewcommand\maketitle{
\begin{frame}\transition
\oldmaketitle
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south east, xshift=-40pt]%
at (current page.south east)
{\includegraphics[height=70pt]{Cominfo}};
\end{tikzpicture}
\end{frame}
\frame{\transition
\tiny\input{license.tex}
}
}