ba-thesis/latex/presentations/final/common.tex

71 lines
1.6 KiB
TeX

% 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]}}}}