Skip to content

Commit

Permalink
Added non-broken handout generation, minor cleanups, changed size of …
Browse files Browse the repository at this point in the history
…lstlisting code, added minor documentation comments
  • Loading branch information
becknik committed Jan 26, 2023
1 parent 3c287c1 commit 2b5fe51
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 41 deletions.
1 change: 1 addition & 0 deletions contents.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
% Paste code for \begin{document} in here
48 changes: 29 additions & 19 deletions presentation.tex
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
\documentclass[compress, 16pt, aspectratio=1610, utf8, noamsthm, xcolor=dvipsnames,xcolor=tables,xcolor=hyperref,hyperref=unicode]{beamer} % handout
\documentclass[compress, 16pt, aspectratio=1610, utf8, noamsthm, xcolor=dvipsnames,xcolor=tables,xcolor=hyperref,hyperref=unicode]{beamer} % TODO handout
% Add the handout parameters ito the subscript braces to generate nicely formatted 2 in 1 handouts

%% Definitions:
\def\github{https://github.com/becknik/}
\def\mail{\href{mailto:[email protected]}{E-Mail~}}
\def\semester{WS 22/23}
\def\tutNR{X} % TODO

\def\tutNR{X}
%\setbeameroption{show notes on second screen}

% Importing packages:
\input{src/packages.tex}
\usepackage{./src/beamertheme}
%\setbeameroption{show notes on second screen} % This is different from handout generation

\usebeamerfont{firacode}

%% Setting up title page:
\title[Übungsgr. 14 - Tutorium \tutNR]{Tutorium \tutNR}
\subtitle[PSE]{Programmierung und Softwareentwicklung}
\author{Jannik Becker}
Expand All @@ -20,31 +24,37 @@
\begin{document}
\frame{\titlepage}

\begin{frame}{Gliederung}
\tableofcontents
\end{frame}

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

\AtBeginSubsection{
\begin{frame}{Gliederung}
\tableofcontents[currentsubsection]
\end{frame}
\AtBeginSection{
\begin{frame}{Gliederung}
\tableofcontents[currentsection]
\end{frame}
}

\AtBeginSubsection{
\begin{frame}{Gliederung}
\tableofcontents[currentsubsection]
\end{frame}
}
}

\input{src/sample.tex}

%\section[]{Korrektur}
%\subsection[]{}
\input{contents.tex} % Using this might be more tidy & decrease redundancy


%\section[]{}
%\subsection[]{}


\section*{Abschluss}
\makethanks
\mode<beamer>{
\section*{Abschluss}
\makethanks
}
\end{document}


Expand Down
43 changes: 24 additions & 19 deletions src/beamertheme.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
\mode<presentation>

\usebeamerfont{firacode}

\usetheme{CambridgeUS}
\useoutertheme[subsection=false]{miniframes} % When setting section=true: remove compress as beamer param
\usepackage{./src/beamercolortheme} % Custom color theme
Expand Down Expand Up @@ -52,29 +54,32 @@
\setbeamertemplate{enumerate subitem}[default]

%% Thanks page:
\def\makethanks{
\begin{frame}
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.5cm,center]{palette primary}
{
\Large
ありがとう~ございました!\\
\vskip2pt
\textbf{Noch Fragen?}
}
\end{beamercolorbox}
\vskip 0.25cm
\hspace*{\fill}
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.1cm,center,wd=0.66\hsize]{palette tertiary}
Mein \href{\github}{GitHub}:\quad\color{black}\qrcode[height=2cm,level=Q]{\github}
\end{beamercolorbox}
\hspace*{\fill}
\end{frame}
\mode<presentation>{
\def\makethanks{
\begin{frame}
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.5cm,center]{palette primary}
{
\Large
ありがとう~ございました!\\
\vskip2pt
\textbf{Noch Fragen?}
}
\end{beamercolorbox}
\vskip 0.25cm
\hspace*{\fill}
\begin{beamercolorbox}[shadow=true,rounded=true,sep=0.1cm,center,wd=0.66\hsize]{palette tertiary}
Mein \href{\github}{GitHub}:\quad\color{black}\qrcode[height=2cm,level=Q]{\github}
\end{beamercolorbox}
\hspace*{\fill}
\end{frame}
}
}

%% Handout generation:
\mode<handout>{
\pgfpagesuselayout{4 on 1}[a4paper]
\pgfpagesuselayout{2 on 1}[letterpaper, border shrink=8pt]
% \pgfpagesuselayout{rounded corners} % Looks nice, but draws a blck background
\setbeameroption{show notes}
}

\mode<all>
\mode<all>
6 changes: 3 additions & 3 deletions src/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
\usepackage{amssymb}
\usepackage{wasysym}
%\usepackage{beamertexpower} % For further tinkering?
\usepackage{tikz} % (Maybe) For background generation
\usepackage{tikz} % (Maybe) For background generation in ToC slides

%% Beamer specific:
\usepackage{qrcode}
Expand Down Expand Up @@ -49,7 +49,7 @@

\lstset{
% Formatting
basicstyle={\ttfamily\small},
basicstyle={\ttfamily\scriptsize},
language=Java,
% Syntax Highlighting:
keywordstyle={\color{keywords}},
Expand All @@ -72,4 +72,4 @@
tabsize=4,
showspaces=false,
showstringspaces=false
}
}

0 comments on commit 2b5fe51

Please sign in to comment.