Initial commit

This commit is contained in:
2019-06-27 15:25:40 +02:00
parent 916a176711
commit 67f460e39a
9 changed files with 632 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
##
# uebungen
#
# @file
# @version 0.1
.PHONY: all
all:
xelatex main.tex
.PHONY: test
test:
time xelatex main.tex
# end

318
beamerthemeelegance.sty Normal file
View File

@@ -0,0 +1,318 @@
% Name : beamerthemeelegance.sty
% Copyright : Ivan Cukic (ivan at cukic.co) 2016
% Benjamin Weiss (benjamin.weiss@student.hs-rm.de) 2013
% Version : 0.1
% License : This file may be distributed and/or modified under the
% GNU General Public License, version 3 or later
% Description : Customizable beamer theme
\ProvidesPackage{beamerthemeelegance}[2017/07/01]
\usepackage{eso-pic}
\usepackage{etoolbox}
% \setbeamercovered{transparent=60}
\newif\if@doSans
\@doSansfalse
\DeclareOption{noserifmath}{\@doSanstrue}
\newif\if@doNoFlama
\@doNoFlamafalse
\DeclareOption{noflama}{\@doNoFlamatrue}
\newif\if@doSectionPage
\@doSectionPagefalse
\DeclareOption{nosectionpages}{\@doSectionPagetrue}
\ProcessOptions
\mode<presentation>
%---------------------------------------------------------------------
% TOC
%---------------------------------------------------------------------
\useoutertheme[subsection=false,shadow]{miniframes}
\setbeamertemplate{section in toc}[sections unnumbered]
\setbeamertemplate{subsection in toc}[subsections unnumbered]
\setbeamertemplate{subsection in toc}{\vspace{.2cm}\inserttocsubsection\\}
%---------------------------------------------------------------------
% Itemize
%---------------------------------------------------------------------
\setbeamertemplate{itemize item}[square]
\setbeamertemplate{itemize subitem}[square]
\setbeamertemplate{itemize subsubitem}[square]
\setlength{\parskip}{0.5em}
%---------------------------------------------------------------------
% Colors
%---------------------------------------------------------------------
% Primary Colors
\definecolor{eleganceRed}{rgb}{0.882352941,0,0.098039216}
\definecolor{eleganceRedDark}{rgb}{0.588235294,0,0.058823529}
\definecolor{eleganceWarmGreyDark}{rgb}{0.274509804,0.254901961,0.235294118}
\definecolor{eleganceWarmGreyLight}{rgb}{0.666666667,0.647058824,0.62745098}
% \definecolor{eleganceWarmGreyLight}{rgb}{1,1,1}
% Secondary Colors
\definecolor{eleganceSec1}{rgb}{0,0.588235294,0.509803922}
\definecolor{eleganceSec1Dark}{rgb}{0,0.392156863,0.31372549}
\definecolor{eleganceSec1Comp}{rgb}{0.294117647,0.745098039,0.882352941}
\definecolor{eleganceSec1CompDark}{rgb}{0.196078431,0.490196078,0.568627451}
\definecolor{eleganceSec2}{rgb}{0.607843137,0.764705882,0.156862745}
\definecolor{eleganceSec2Dark}{rgb}{0.411764706,0.490196078,0.098039216}
\definecolor{eleganceSec2Comp}{rgb}{0.254901961,0.156862745,0.509803922}
\definecolor{eleganceSec2CompDark}{rgb}{0.176470588,0.098039216,0.333333333}
\definecolor{eleganceSec3}{rgb}{0.509803922,0.078431373,0.31372549}
\definecolor{eleganceSec3Dark}{rgb}{0.338345865,0.058823529,0.196078431}
\definecolor{eleganceSec3Comp}{rgb}{1,0.509803922,0}
\definecolor{eleganceSec3CompDark}{rgb}{0.666666667,0.333333333,0}
% General
\setbeamercolor{normal text}{fg=eleganceWarmGreyDark}
\setbeamercolor{structure}{fg=eleganceWarmGreyDark}
\setbeamercolor{alerted text}{fg=eleganceRed}
\setbeamercolor{example text}{fg=white}
\setbeamercolor{copyright text}{fg=eleganceWarmGreyLight}
\setbeamercolor{palette primary}{fg=eleganceWarmGreyDark}
\setbeamercolor{palette secondary}{fg=eleganceWarmGreyDark,bg=white}
\setbeamercolor{palette tertiary}{fg=eleganceWarmGreyDark,bg=white}
\setbeamercolor{palette quaternary}{fg=white,bg=eleganceWarmGreyDark}
% Titlepage
\setbeamercolor{title}{parent=normal text}
\setbeamercolor{subtitle}{parent=normal text}
\setbeamercolor{institute}{parent=normal text}
% Content
\setbeamercolor{frametitle}{parent=palette quaternary}
% Blocks
\setbeamercolor{block title}{parent=palette quaternary}
\setbeamercolor{block body}{parent=palette secondary}
\setbeamercolor{block title example}{fg=white, bg=eleganceSec1Dark}
\setbeamercolor{block body example}{fg=white, bg=eleganceSec1}
\setbeamercolor{block title alerted}{fg=white, bg=eleganceRedDark}
\setbeamercolor{block body alerted}{fg=white, bg=eleganceRed}
% Notes
\setbeamercolor{note page}{fg=eleganceWarmGreyDark,bg=eleganceWarmGreyLight}
\setbeamercolor{note title}{fg=white, bg=eleganceWarmGreyDark}
\setbeamercolor{note date}{parent=note title}
% Page Number
\setbeamercolor{page number in head/foot}{fg=eleganceWarmGreyDark}
\renewcommand\UrlFont{\Medium}
% Titlepage
% \setbeamerfont{title}{family=\Light,size=\fontsize{20}{20}}
% \setbeamerfont{subtitle}{family=\Light,size=\fontsize{12}{14}}
\setbeamerfont{date}{size=\fontsize{8}{10}}
\setbeamerfont{author}{size=\fontsize{12}{15}}
\setbeamerfont{institute}{size=\fontsize{8}{10}}
% Section
\setbeamerfont{section title}{size=\LARGE}
% Content
% \setbeamerfont{frametitle}{family=\Light,size=\large}
% \setbeamerfont{copyright text}{family=\Light,size=\tiny}
\setbeamerfont{block title}{family=\Book,size=\large}
\setbeamerfont{block title alerted}{family=\Book,size=\large}
\setbeamerfont{alerted text}{family=\Medium}
% Captions
\setbeamerfont{caption name}{family=\Book}
%---------------------------------------------------------------------
% Titlepage
%---------------------------------------------------------------------
% Titlepage structure
\def\maketitle{\ifbeamer@inframe\titlepage\else\frame[plain]{
\titlepage
}\fi}
\def\titlepage{\usebeamertemplate{title page}}
\setbeamertemplate{title page}
{
% Add background to title page
\begin{minipage}[b][\paperheight]{\textwidth}
\vspace*{5mm}
%\includegraphics[height=10mm]{./style/images/logo.png}\par
\vspace*{5mm}
\ifx\insertsubtitle\@empty%
\else%
% {\usebeamerfont{title}\usebeamercolor[fg]{title}\MakeUppercase{\inserttitle}\par}%
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
\fi%
\ifx\insertsubtitle\@empty%
\else%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\vspace*{5mm}
\fi%
\ifx\insertdate\@empty%
\else%
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate\par}%
\fi%
\vspace*{2cm}
\ifx\insertauthor\@empty%
\else%
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor\par}%
\fi%
\ifx\insertinstitut\@empty%
\else%
\vspace*{5mm}
{\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute\par}%
\fi%
\vspace*{3mm}
\end{minipage}
}
%---------------------------------------------------------------------
% Sectionpages
%---------------------------------------------------------------------
% Make Sectionhead uppercase
\newcommand{\insertsectionHEAD}{%
\expandafter\insertsectionHEADaux\insertsectionhead}
\newcommand{\insertsectionHEADaux}[3]{\MakeUppercase{#3}
\vspace{1cm}
\footnotesize
\tableofcontents[sections=\value{section},sectionstyle=hide/hide]
\vspace{-4cm}
}
\if@doSectionPage\@empty
\else
% Insert frame with section title at every section start
\AtBeginSection[]
{
\begingroup
\setbeamercolor{background canvas}{bg=mainthemecolour}
\setbeamertemplate{background canvas} {\includegraphics[width=\paperwidth,height=\paperheight]{./style/images/background-section.pdf}}
\begin{frame}[plain]
\centering
\vfill\usebeamerfont{section title}\textcolor{white}{\insertsectionHEAD}\vfill
\end{frame}
\endgroup
}
\fi
%\setbeamertemplate{background canvas} {\includegraphics[width=\paperwidth,height=\paperheight]{./style/images/background-slide.pdf}}
\setbeamertemplate{background canvas}{%
\ifnumequal{\c@framenumber}{1}{%
% First frame
\includegraphics[width=\paperwidth,height=\paperheight]{./style/images/background-title.pdf}
}{%
\includegraphics[width=\paperwidth,height=\paperheight]{./style/images/background-slide.pdf}
}%
}
%---------------------------------------------------------------------
% Frametitle
%---------------------------------------------------------------------
\setbeamertemplate{frametitle}
{
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=3ex,dp=1.5ex]{}
% If you remove section titles, you can play with this
% for the title to be vertically aligned
% .\\
% \vspace{-.3cm}
% \hspace{-0.3cm}\includegraphics[width=\paperwidth,height=1cm]{./style/images/header.png}\\
% \vspace{-.97cm}
\usebeamerfont{frametitle}\insertframetitle
\end{beamercolorbox}
}
%---------------------------------------------------------------------
% Footline
%---------------------------------------------------------------------
\usenavigationsymbolstemplate{}
\setbeamertemplate{footline}
{%
\begin{beamercolorbox}[wd=\textwidth,ht=3ex,dp=1.5ex,leftskip=0.3cm,rightskip=0.3cm]{structure}%
\hfill\usebeamerfont{page number in head/foot}%
\insertframenumber%
\end{beamercolorbox}%
}
%---------------------------------------------------------------------
% Captions
%---------------------------------------------------------------------
\setbeamertemplate{caption label separator}{: }
%---------------------------------------------------------------------
% Blocks
%---------------------------------------------------------------------
\setbeamertemplate{block begin}
{
\setbeamercolor{item}{parent=block body}
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body}%
}
\setbeamertemplate{block end}
{\end{beamercolorbox}\vskip\smallskipamount}
\setbeamertemplate{block alerted begin}
{
\setbeamercolor{item}{parent=block body alerted}
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex]{block title alerted}
\usebeamerfont*{block title alerted}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body alerted}%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body alerted}%
}
\setbeamertemplate{block alerted end}
{\end{beamercolorbox}\vskip\smallskipamount}
\setbeamertemplate{block example begin}
{
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex]{block title example}
\usebeamerfont*{block title example}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body example}%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body example}%
}
\setbeamertemplate{block example end}
{\end{beamercolorbox}\vskip\smallskipamount}
%---------------------------------------------------------------------
% Images
%---------------------------------------------------------------------
\newbox\mytempbox
\newdimen\mytempdimen
\newcommand\includegraphicscopyright[3][]{%
\leavevmode\vbox{\vskip3pt\raggedright\setbox\mytempbox=\hbox{\includegraphics[#1]{#2}}%
\mytempdimen=\wd\mytempbox\box\mytempbox\par\vskip1pt%
\usebeamerfont{copyright text}{\usebeamercolor[fg]{copyright text}{\vbox{\hsize=\mytempdimen#3}}}\vskip3pt%
}}
%---------------------------------------------------------------------
% Fonts
%---------------------------------------------------------------------
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Noto Sans}
\setsansfont{Noto Sans}
\setmonofont{Hack}
\mode
<all>

BIN
main.pdf Normal file

Binary file not shown.

75
main.tex Normal file
View File

@@ -0,0 +1,75 @@
\input{preamble.tex}
\input{title.tex}
%\usefonttheme{metropolis}
% define some colours for tikz
\definecolor{adequate}{RGB}{37,165,203}
\definecolor{sustainable}{RGB}{253,177,26}
\begin{document}
\maketitle
\note{
Begrüßung
}
%\begin{frame}{Inhaltsverzeichnis}
%\setbeamertemplate{section in toc}[sections numbered]
%\tableofcontents[hideallsubsections]
%\end{frame}
%\note{
%}
\section{Scrapy}
\begin{xframe}{Scrapy}
\begin{itemize}
\item Open source web spider framework
\item Erweiterbar durch Plugins und Python libs
\item Mit scrapyd als daemon deploybar
\end{itemize}
\end{xframe}
\note{
}
\begin{xframe}{Middleware}
\begin{itemize}
\item Protokolldateien sind lokal auf den Servern gespeichert
\item Hoher Aufwand bei manueller Auswertung
\item Ereignisse sind nur schwer durchsuchbar
\item Auswertungen finden nur im Ernstfall statt
\end{itemize}
\end{xframe}
\note{
}
\section{PostgreSQL}
\begin{xframe}{PostgreSQL}
\begin{itemize}
\item Relationale Datenbank
\item JSON Felder mit Indexierung
\item Fulltext search support
\end{itemize}
\end{xframe}
\begin{xframe}{Suche}
\begin{itemize}
\item ts\_vector
\end{itemize}
\end{xframe}
\note{
}
\appendix
\section{Vielen Dank für Ihre Aufmerksamkeit}
\end{document}

142
preamble.tex Normal file
View File

@@ -0,0 +1,142 @@
\documentclass{beamer}
%\documentclass[notes=only]{beamer} %for notes slides
\usepackage{thumbpdf}
\usepackage{wasysym}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{pgfpages}
\usepackage{verbatim}
\usepackage{fancyvrb}
\usepackage{multimedia}
\usepackage{caption}
%\usepackage{subcaption}
\usepackage{ulem}
\usepackage{textcomp}
\usepackage{tikz}
%\usepackage{appendixnumberbeamer} %fix appendix
\usepackage{subfig} %Figures side by side (subfigures)
\usepackage{eurosym} %Eurosymbol
\usepackage{pgfplots, pgfplotstable,booktabs}
%\usepackage{pgfplots}
\usetikzlibrary{positioning}
\usepgfplotslibrary{dateplot}
\usepackage{listings}
\usepackage{epigraph}
\setlength{\epigraphwidth}{.8\textwidth}
\usepackage{DejaVuSansMono}
% Adjust the colours to fit your design
\definecolor{mainthemecolour}{rgb}{0.42,0.48,0.37}
\definecolor{mainthemecolourlight}{rgb}{0.63,0.72,0.57}
\definecolor{mainthemecolourstrong}{rgb}{0.40,0.68,0.18}
\definecolor{mid-gray}{gray}{0.7}
\definecolor{greenstrong}{rgb}{0.58,0.77,0.29}
\definecolor{redstrong}{rgb}{0.81,0.22,0.23}
\definecolor{fglisting}{gray}{0.3}
\definecolor{bglisting}{gray}{1}
\definecolor{fgshell}{gray}{1}
\definecolor{bgshell}{gray}{0.1}
\definecolor{bgshelllight}{gray}{0.8}
% Some in-code macros - a bit buggy, but useful
\newcommand{\hl}[1]{\textcolor{greenstrong}{\texttt{#1}}}
\newcommand{\hlErr}[1]{\textcolor{redstrong}{\texttt{#1}}}
\newcommand{\hlOk}[1]{\textcolor{green}{\texttt{#1}}}
\newcommand{\hlInv}[1]{\colorbox{bgshell}{\textcolor{fgshell}{\texttt{#1}}}}
\newcommand{\unhl}[1]{\textcolor{gray}{#1}}
\newcommand{\clda}[0]{$\textcolor{blue}{\lambda}$}
\newcommand{\carr}[0]{$\textcolor{purple}{\rightarrow}$}
\newcommand{\cbind}[0]{\textbf{\texttt{$>\!\!>\!\!=$}}}
\newcommand{\codedots}[0]{\textcolor{mid-gray}{...}}
\usetheme{elegance}
\lstnewenvironment{cxxcode}
{\lstset
{ escapeinside={@}{@}
, gobble=8
, showstringspaces=false
, basicstyle=\color{fglisting}
, rulecolor=\color{mainthemecolourlight}
}
}
{}
\lstnewenvironment{cxxcodebox}
{\lstset
{ escapeinside={@}{@}
, gobble=6
, showstringspaces=false
, basicstyle=\color{fglisting}
, frame=lr
, rulecolor=\color{mainthemecolourlight}
}
}
{}
\lstnewenvironment{shellcode}
{\lstset
{ escapeinside={@}{@}
, gobble=7
, showstringspaces=false
, basicstyle=\color{fgshell}
, backgroundcolor=\color{bgshell}
}
}
{}
% Marking points to use in Tikz
\usetikzlibrary{arrows,shapes}
\newcommand{\tikzmark}[1]{\tikz[remember picture] \node[coordinate] (#1) {#1};}
% Fragile frames
\newenvironment{xframe}[1][]
{\begin{frame}[fragile,environment=xframe,#1]}
{\end{frame}}
% Code Listings
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
basicstyle=\footnotesize, % the size of the fonts that are used for the code
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
frame=single, % adds a frame around the code
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
keywordstyle=\color{blue}, % keyword style
language=bash, % the language of the code
morekeywords={*,...}, % if you want to add more keywords to the set
numbers=none, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{mymauve}, % string literal style
tabsize=2, % sets default tabsize to 2 spaces
%title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
}

Binary file not shown.

View File

@@ -0,0 +1,68 @@
%PDF-1.5
%<25><><EFBFBD><EFBFBD>
3 0 obj
<< /Length 4 0 R
/Filter /FlateDecode
>>
stream
x<EFBFBD>Ʊ
<EFBFBD>0 <04><>S<EFBFBD><02><><EFBFBD>#g F<><46>Ԅ<EFBFBD>%<10><>-T<><54><0E>'{}n<><6E> s`=<3D><>QZ4<5A> <20><><EFBFBD><EFBFBD><EFBFBD>%<25><>ɸ
<EFBFBD>
endstream
endobj
4 0 obj
68
endobj
2 0 obj
<<
/ExtGState <<
/a0 << /CA 1 /ca 1 >>
>>
>>
endobj
5 0 obj
<< /Type /Page
/Parent 1 0 R
/MediaBox [ 0 0 640 480 ]
/Contents 3 0 R
/Group <<
/Type /Group
/S /Transparency
/I true
/CS /DeviceRGB
>>
/Resources 2 0 R
>>
endobj
1 0 obj
<< /Type /Pages
/Kids [ 5 0 R ]
/Count 1
>>
endobj
6 0 obj
<< /Creator (cairo 1.14.6 (http://cairographics.org))
/Producer (cairo 1.14.6 (http://cairographics.org))
>>
endobj
7 0 obj
<< /Type /Catalog
/Pages 1 0 R
>>
endobj
xref
0 8
0000000000 65535 f
0000000467 00000 n
0000000181 00000 n
0000000015 00000 n
0000000160 00000 n
0000000253 00000 n
0000000532 00000 n
0000000659 00000 n
trailer
<< /Size 8
/Root 7 0 R
/Info 6 0 R
>>
startxref

Binary file not shown.

11
title.tex Normal file
View File

@@ -0,0 +1,11 @@
\title{Tübix 2019}
\subtitle{Webcrawling mit scrapy und PostgreSQL backend}
\author{Janek Schoffit}
\institute{\color{white}
Lightning talk\\
\mbox{}
} %
\date{\footnotesize\color{mainthemecolour} 06. Juli 2019}