-
Notifications
You must be signed in to change notification settings - Fork 4
/
headerMIslides.tex
135 lines (117 loc) · 3.51 KB
/
headerMIslides.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
\documentclass[pdfetex,ignorenonframetext]{beamer}
\usetheme{TUBerlin}
\usepackage{etex}
\usepackage{latexsym,listings,graphicx}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage[pdfetex]{preview}
\usepackage{hyperref}
\usepackage[overlay,absolute]{textpos}
\usepackage{algorithmic}
\usepackage{verbatim}
\usepackage{amssymb,amsmath}
\usepackage{enumerate}
\usepackage{mathtools}
\usepackage[ruled]{algorithm2e}
\usepackage{appendixnumberbeamer}
\usepackage[mathscr]{euscript}
\usepackage{caption}
\usepackage{subcaption}
\newsavebox{\imagebox}
\hypersetup{colorlinks=true,linkcolor=black,urlcolor=blue,citecolor=green}
%\usepackage{paralist}
\usepackage{xcolor,cancel}
\usepackage{soul} % for strikethrough
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\tikzset{myrect/.style={rectangle, fill=#1!20, draw=#1!75, text=black}}
\tikzstyle{axes}=[]
% sticky note
\usepackage{xparse}
\usetikzlibrary{shadows}
\definecolor{myyellow}{RGB}{242,226,149}
\NewDocumentCommand\StickyNote{O{6cm}mO{6cm}}{%
\begin{tikzpicture}
\node[
drop shadow={
shadow xshift=2pt,
shadow yshift=-4pt
},
inner xsep=7pt,
fill=myyellow,
xslant=0.05,
yslant=-0.05,
inner ysep=10pt
]
{\parbox[t][#1][c]{#3}{#2}};
\end{tikzpicture}%
}
% from tex.stackexchange useful to align substacks
%\makeatletter
%\newcommand{\subalign}[1]{%
%\vcenter{%
%\Let@ \restore@math@cr \default@tag
%\baselineskip\fontdimen10 \scriptfont\tw@
%\advance\baselineskip\fontdimen12 \scriptfont\tw@
%\lineskip\thr@@\fontdimen8 \scriptfont\thr@@
%\lineskiplimit\lineskip
%\ialign{\hfil$\m@th\scriptstyle##$&$\m@th\scriptstyle{}##$\crcr
%#1\crcr
%}%
%}
%}
%\makeatother
\newcommand{\misubsection}[1]{
\subsection{\thesubsection) #1}
\begin{frame}
\begin{center} \huge
\misection.\thesubsection~#1
\end{center}
\end{frame}
}
\newenvironment<>{varblock}[2][.9\textwidth]{%
\setlength{\textwidth}{#1}
\begin{actionenv}#3%
\def\insertblocktitle{#2}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamertemplate{section in toc}[default]
\setbeamertemplate{subsection in toc}[square]
\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{itemize items}[square]
\setbeamertemplate{navigation symbols}{}
\usefonttheme[onlymath]{serif}
\title[MI 2 Tutorial]{Machine Intelligence 2 Tutorial}
\institute[www.ni.tu-berlin.de]{Fachgebiet Neuronale Informationsverarbeitung (NI)}
\author[NI]{Youssef Kashef}
\def\shortyear#1{\expandafter\shortyearhelper#1}
\def\shortyearhelper#1#2#3#4{#3#4}
\date{SoSe \shortyear{\the\year}}
%\date{}
\graphicspath{{../../../../../figures/pdf/}}
\newcommand{\figref}[1]{Fig. \hspace{-0.5mm}\ref{#1}}
\newcommand{\figureref}[1]{Figure \hspace{-0.5mm}\ref{#1}}
\newcommand{\sectionref}[1]{Section \hspace{-1.0mm}\ref{#1}}
% TODO consolidate with notes
\newcounter{sheetno}
\newcounter{question}
\setcounter{question}{1}
\newcommand{\question}[2]{%
\vspace{4mm}%
{Q:~\textit{#1}
%Omit question number from slides because pause and similar will increment anyway
% makes more sense to keep the numbering in the notes version but not so much for the slides
%\thesheetno.\arabic{question}: ~ \textit{#1}%
}\\[5mm]%
\addtocounter{question}{1}%
}
% Include in notes but exclude from slides
% see corresponding \slidessonly for opposite behavior
\newcommand{\notesonly}[1]{}
\newcommand{\inparaenum}{\enumerate}
% vertical space for slides only
\newcommand{\svspace}[1]{\slidesonly{\vspace{#1}}}