Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions project/slides/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.PHONY: all
all: notes.pdf slides.pdf

LATEXFLAGS+= -shell-escape

SRC+= preamble.tex
SRC+= abstract.tex contents.tex

notes.pdf: notes.tex
notes.pdf: ${SRC}

slides.pdf: slides.tex
slides.pdf: ${SRC}


.PHONY: clean
clean:
${RM} notes.pdf slides.pdf


INCLUDE_MAKEFILES=../../makefiles
include ${INCLUDE_MAKEFILES}/tex.mk
22 changes: 22 additions & 0 deletions project/slides/abstract.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
% What's the problem?
% Why is it a problem? Research gap left by other approaches?
% Why is it important? Why care?
% What's the approach? How to solve the problem?
% What's the findings? How was it evaluated, what are the results, limitations,
% what remains to be done?

% XXX Summary
\emph{Summary:}
\dots

% XXX Motivation and intended learning outcomes
\emph{Intended learning outcomes:}
\dots

% XXX Prerequisites
\emph{Prerequisites:}
\dots

% XXX Reading material
\emph{Reading:}
\dots
16 changes: 16 additions & 0 deletions project/slides/contents.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
\mode*

\section{Projektuppgifter}

\begin{frame}
Välj p-uppgift
\end{frame}


\section{Specifikation}


\section{Granskning}


\section{Redovisning}
45 changes: 45 additions & 0 deletions project/slides/notes.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
\documentclass{article}

\usepackage[hyphens]{url}
\usepackage[hidelinks]{hyperref}

\input{preamble.tex}

\usepackage[noamsthm,notheorems]{beamerarticle}
\setjobnamebeamerversion{slides}

%\usepackage{authblk}
%\let\institute\affil

\declaretheorem[numbered=unless unique,style=theorem]{theorem}
\declaretheorem[numbered=unless unique,style=definition]{definition}
\declaretheorem[numbered=unless unique,style=definition]{assumption}
\declaretheorem[numbered=unless unique,style=definition]{protocol}
\declaretheorem[numbered=unless unique,style=example]{example}
%\declaretheorem[style=definition,numbered=unless unique,
% name=Example,refname={example,examples}]{example}
\declaretheorem[numbered=unless unique,style=remark]{remark}
\declaretheorem[numbered=unless unique,style=remark]{idea}
\declaretheorem[numbered=unless unique,style=exercise]{exercise}
\declaretheorem[numbered=unless unique,style=exercise]{question}
\declaretheorem[numbered=unless unique,style=solution]{solution}

\begin{document}
\title{%
Projektuppgiften
}
\author{Daniel Bosk}
\institute{%
KTH EECS
}

\maketitle

\begin{abstract}
\input{abstract.tex}
\end{abstract}

\input{contents.tex}

\printbibliography
\end{document}
39 changes: 39 additions & 0 deletions project/slides/preamble.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage{booktabs}

\usepackage[all]{foreign}
\renewcommand{\foreignfullfont}{}
\renewcommand{\foreignabbrfont}{}

\usepackage{newclude}
\usepackage{import}

\usepackage[strict]{csquotes}
\usepackage[single]{acro}

\usepackage[natbib,style=alphabetic,maxbibnames=99]{biblatex}
\addbibresource{slides.bib}

\usepackage{subcaption}

\usepackage[noend]{algpseudocode}
\usepackage{xparse}

\let\email\texttt

\usepackage[outputdir=ltxobj]{minted}
\setminted{autogobble}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage[unq]{unique}
\DeclareMathOperator{\powerset}{\mathcal{P}}

\usepackage[binary-units]{siunitx}

\usepackage[capitalize]{cleveref}
118 changes: 118 additions & 0 deletions project/slides/slides.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
\documentclass[ignoreframetext]{beamer}
\input{preamble.tex}

\usetheme{Berlin}
\setbeamertemplate{footline}%{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle} \hfill \insertframenumber%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
\setbeamercovered{transparent}
\setbeamertemplate{bibliography item}[text]

\AtBeginSection[]{%
\begin{frame}<beamer>
\tableofcontents[currentsection]
\end{frame}
}

\ProvideDocumentEnvironment{assumption}{o}{%
\IfValueTF{#1}{%
\begin{block}{Assumption: #1}
}{%
\begin{block}{Assumption}
}
}{%
\end{block}
}

\ProvideDocumentEnvironment{protocol}{o}{%
\IfValueTF{#1}{%
\begin{block}{Protocol: #1}
}{%
\begin{block}{Protocol}
}
}{%
\end{block}
}

\ProvideDocumentEnvironment{remark}{o}{%
\IfValueTF{#1}{%
\begin{alertblock}{Note: #1}
}{%
\begin{alertblock}{Note}
}
}{%
\end{alertblock}
}

\ProvideDocumentEnvironment{idea}{o}{%
\IfValueTF{#1}{%
\begin{block}{Idea: #1}
}{%
\begin{block}{Idea}
}
}{%
\end{block}
}

\ProvideDocumentEnvironment{question}{o}{%
\setbeamercolor{block body}{bg=orange!15,fg=black}
\setbeamercolor{block title}{bg=orange,fg=white}
\setbeamercolor{local structure}{fg=orange}
\IfValueTF{#1}{%
\begin{block}{Question: #1}
}{%
\begin{block}{Question}
}
}{%
\end{block}
}

\ProvideDocumentEnvironment{exercise}{o}{%
\setbeamercolor{block body}{bg=yellow!10,fg=black}
\setbeamercolor{block title}{bg=yellow,fg=black}
\setbeamercolor{local structure}{fg=yellow}
\IfValueTF{#1}{%
\begin{block}{Exercise: #1}
}{%
\begin{block}{Exercise}
}
}{%
\end{block}
}


\begin{document}
\title{%
Projektuppgiften
}
\author{Daniel Bosk}
\institute{%
KTH EECS
}

\begin{frame}
\maketitle
\end{frame}

\mode<all>
\input{contents.tex}
\mode*

\begin{frame}[allowframebreaks]
\printbibliography
\end{frame}
\end{document}