Added common.tex with references-on-same-slide commands
This commit is contained in:
parent
6a3e1ced86
commit
b367115824
70
latex/presentations/final/common.tex
Normal file
70
latex/presentations/final/common.tex
Normal file
@ -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]}}}}
|
||||
Loading…
Reference in New Issue
Block a user