From b3671158248245cfa9fcbf476a4c211bafcb0ba3 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Tue, 18 Apr 2023 19:46:18 +0200 Subject: [PATCH] Added common.tex with references-on-same-slide commands --- latex/presentations/final/common.tex | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 latex/presentations/final/common.tex diff --git a/latex/presentations/final/common.tex b/latex/presentations/final/common.tex new file mode 100644 index 0000000..e643e6a --- /dev/null +++ b/latex/presentations/final/common.tex @@ -0,0 +1,70 @@ +% References on bottom of slide + +\newcommand{\addreference}[2]{% + { + \scriptsize\textcolor{kit-green100}{ + \begin{tabular}{lp{0.88\columnwidth}} + [#1] & #2 + \end{tabular} + } + }% +} + +\makeatletter + +\newcommand{\addreferences}{% + \begin{scriptsize} + \begin{tabular}{lp{0.88\textwidth}} + \@addreferencesi +} + +\newcommand\@addreferencesi{\@ifnextchar\stopreferences{\@addreferencesend}{\@addreferencesii}} + +\newcommand\@addreferencesii[2]{% + \textcolor{kit-green100}{[#1]} & \textcolor{kit-green100}{#2} \\ + \@addreferencesi % restart the recursion +} + +\newcommand\@addreferencesend[1]{% The argument is \stopimages + \end{tabular} + \end{scriptsize} +} + +\makeatother + +% References on the bottom of the current column + +\newcommand{\addreferencecol}[2]{% + { + \scriptsize\textcolor{kit-green100}{ + \begin{tabular}{lp{0.78\columnwidth}} + [#1] & #2 + \end{tabular} + } + }% +} + +\makeatletter + +\newcommand{\addreferencescol}{% + \begin{scriptsize} + \begin{tabular}{lp{0.78\columnwidth}} + \@addreferencescoli +} + +\newcommand\@addreferencescoli{\@ifnextchar\stopreferences{\@addreferencescolend}{\@addreferencescolii}} + +\newcommand\@addreferencescolii[2]{% + \textcolor{kit-green100}{[#1]} & \textcolor{kit-green100}{#2} \\ + \@addreferencescoli % restart the recursion +} + +\newcommand\@addreferencescolend[1]{% The argument is \stopimages + \end{tabular} + \end{scriptsize} +} + +\makeatother + +\newcommand{\citereference}[1]{\textcolor{kit-green100}{\textbf{\scriptsize{[#1]}}}} +\newcommand{\citereferencewhite}[1]{\textcolor{white}{\textbf{\scriptsize{[#1]}}}}