Files
teaching/c++-ss22/vortrag.tex
T
2022-03-04 16:40:16 +01:00

226 lines
5.2 KiB
TeX

\documentclass[10pt,unknownkeysallowed,aspectratio=169]{beamer}
\fontfamily{cmss}
\mode<presentation> {
\usetheme{hd}
%\setbeamercovered{transparent}
}
\def\newblock{\hskip .11em plus .33em minus .07em}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage{calc}
\usepackage{natbib}
\usepackage[absolute,overlay]{textpos}
\usepackage{listings} % Programm Listings
\usepackage{siunitx}
\lstset{language=C}
\lstset{breaklines=true}
\lstset{frame=shadowbox}
\lstset{rulesepcolor=\color{gray}}
\lstset{basicstyle=\fontsize{9}{9}\selectfont \ttfamily}
\usepackage{booktabs}%für horizontale Linien
%Figures
\usepackage{caption}
\usepackage{subcaption}%subfigures
\usepackage{sidecap}%caption an der seite
%Mathe/Physik
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{esint}%volumen und oberflächenintegrale
\usepackage[thinc]{esdiff}%derivative-macros
\usepackage{physics}
\usepackage{siunitx}
%Sonstiges
\usepackage[framemethod=tikz]{mdframed}%merkboxen
\mdfdefinestyle{theoremstyle}{
linecolor=gray,linewidth=2pt,
frametitlerule=true,
frametitlebackgroundcolor=gray,
}
\mdtheorem[style=theoremstyle]{nutshell}{"In a Nutshell"}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{color}%farbiger text
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usetikzlibrary{decorations.pathmorphing,fit,shapes,arrows,intersections,calc,trees,positioning,math,calc}
\usepackage{dirtree}
\usepackage{pgfplots,adjustbox}
\pgfplotsset{compat=1.12}
\usetikzlibrary{arrows.meta,positioning}
\usetikzlibrary{external}%
%\tikzexternalize[up to date check=md5]%
\tikzsetexternalprefix{tikz/cache/}%
\tikzset{
invisible/.style={opacity=0},
visible on/.style={alt={#1{}{invisible}}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
},
}
\tikzset{
highlighted/.style={color=red},
nonhighlighted/.style={color=black},
highlight on/.style={alt={#1{highlighted}{nonhighlighted}}},
}
\usepackage{tcolorbox}
\tcbuselibrary{minted}
\tcbuselibrary{xparse}
\definecolor{codebg}{rgb}{.85,.85,.85}
\newminted{cpp}{autogobble,linenos,mathescape,bgcolor=codebg}
\newminted{bash}{autogobble,linenos}
\NewTCBListing{bash}{O{}}{%
listing only,
minted language=bash,
minted options={autogobble,#1},
colframe=black!10!white,
arc=.5mm,
boxsep=1mm,
top=0mm,
bottom=0mm,
flush left,
grow to left by=\leftmargin,
}
\NewTCBListing{cpp}{O{}}{%
listing only,
minted language=cpp,
minted options={autogobble,mathescape,#1},
colframe=black!10!white,
arc=.5mm,
boxsep=1mm,
top=0mm,
bottom=0mm,
flush left,
grow to left by=\leftmargin,
}
\newmintinline{bash}{}
\newmintinline{cpp}{}
\newcommand{\attentionbox}[3]{\begin{center}\begin{minipage}[c]{#1\columnwidth}\begin{alertblock}{#2}#3\end{alertblock}\end{minipage}\end{center}}
\newcommand{\textbox}[3]{\begin{center}\begin{minipage}[c]{#1\columnwidth}\begin{block}{#2}#3\end{block}\end{minipage}\end{center}}
\newcommand{\weidingerblock}[5]{
\begin{textblock*}{#1 \columnwidth}[0,0](#2,#3)
\begin{alertblock}{}
\begin{center}
\includegraphics[width=0.90\textwidth]{#4}
\begin{flushright}
\begin{scriptsize}
#5
\end{scriptsize}
\hspace*{0.05\textwidth}
\end{flushright}
\vspace*{-3mm}
\end{center}
\end{alertblock}
\end{textblock*}
}
%
%\newcommand{\diff}{\ \mathrm{d}}
%\newcommand{\sdiff}{\mathrm{d}}
%\newcommand{\del}{\partial}
\newcommand{\copyrightinfo}{\center\small Original Authors: Dr. Ole Klein, Dr. Steffen Müthing}
\title[]{Programmierkurs}
\author[Felix Spanier] % (optional, nur bei vielen Autoren)
{F. Spanier}
\institute[ITA]{Institut für Theoretische Astrophysik}
\date[IPK] % (optional, sollte der abgekürzte Konferenzname sein)
{Blockkurs Sommer 2022}
\definecolor{d-green}{rgb}{0,0.8,0}
\newcommand{\dpr}{^{\prime\prime}}
\def\vec#1{\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle#1$}}
{\mbox{\boldmath$\textstyle#1$}}
{\mbox{\boldmath$\scriptstyle#1$}}
{\mbox{\boldmath$\scriptscriptstyle#1$}}}}
%
\def\matr#1{\mathbf{#1}}
\def\tens#1{\vec{#1}}
\def\max{\textrm{max}}
\def\min{\textrm{min}}
\newcommand{\dr}{\Gamma^{\mathrm{IT}}_{a \rightarrow b}}
\newcommand{\drb}{\Gamma^{\mathrm{IT}}_{p \, \gamma \rightarrow p' \, b}}
\newcommand{\dsb}{\sigma^{\mathrm{IT}}}
\newcommand{\dcb}{\chi^{\mathrm{IT}}}
\begin{document}
\setbeamertemplate{caption}{\centering\textit{\insertcaption}\par}
\begin{frame}[plain]
\titlepage
\copyrightinfo
\end{frame}
\section{Administratives}
\begin{frame}[plain]
\centering \Huge Administratives
\end{frame}
\begin{frame}{Vorlesung}
\begin{itemize}
\item 31. März - 13. April
\item Montag - Freitag
\item jeweils 09:15 -12:00
\end{itemize}
\end{frame}
\begin{frame}{Tutorium}
\begin{itemize}
\item Homework will be graded
\item No final exam - homework grades will make up your final grade
\item The exercise group is optional (but maybe helpful\dots)
\end{itemize}
\end{frame}
\section{Pretty Pictures}
\begin{frame}[plain]
\centering \Huge Pretty Pictures
\end{frame}
\end{document}