wt-tut-presentations/lib/reference_macros.tex
2025-09-28 21:14:53 +02:00

86 lines
2.0 KiB
TeX

%
%
% On slide references
%
%
\definecolor{KITblue}{rgb}{.27,.39,.66}
\definecolor{kit-blue100}{rgb}{.27,.39,.67}
\definecolor{kit-blue70}{rgb}{.49,.57,.76}
\definecolor{kit-blue50}{rgb}{.64,.69,.83}
\definecolor{kit-blue30}{rgb}{.78,.82,.9}
\definecolor{kit-blue15}{rgb}{.89,.91,.95}
% References on bottom of slide
\newcommand{\addreference}[2]{%
{
\scriptsize\textcolor{KITblue}{
\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{KITblue}{[#1]} & \textcolor{KITblue}{#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{KITblue}{
\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{KITblue}{[#1]} & \textcolor{KITblue}{#2} \\
\@addreferencescoli % restart the recursion
}
\newcommand\@addreferencescolend[1]{% The argument is \stopimages
\end{tabular}
\end{scriptsize}
}
\makeatother
\newcommand{\citereference}[1]{\textcolor{KITblue}{\textbf{\scriptsize{[#1]}}}}
\newcommand{\citereferencewhite}[1]{\textcolor{white}{\textbf{\scriptsize{[#1]}}}}