changed \addreference(s) so that they are on slide instead of footnote

This commit is contained in:
Hedongliang Liu
2025-08-28 17:16:16 +02:00
parent 455b05b5a3
commit bcc46c8490
4 changed files with 77 additions and 37 deletions

View File

@@ -65,7 +65,40 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% References on bottom of slide
\newcommand{\addreference}[2]{%
\newcommand{\addreference}[1]{%
\scriptsize\textcolor{kit-green}{
\begin{tabular}{lp{0.88\columnwidth}}
\supercite{#1} & {\fullcite{#1}}
% \supercite{#1} & {#2}
\end{tabular}}%
}
\makeatletter
\newcommand{\addreferences}{%
\begin{scriptsize}
\begin{tabular}{lp{0.88\textwidth}}
\@addreferencesi
}
\newcommand\@addreferencesi{
\@ifnextchar\stopreferences{\@addreferencesend}{\@addreferencesii}
}
\newcommand\@addreferencesii[1]{%
\textcolor{kit-green100}{\supercite{#1}} & {\fullcite{#1}} \\
\@addreferencesi % restart the recursion
}
\newcommand\@addreferencesend[1]{% The argument is \stopimages
\end{tabular}
\end{scriptsize}
}
\makeatother
\newcommand{\citereference}[1]{\textcolor{kit-green}{\scriptsize\supercite{#1}}}
\newcommand{\citereferencewhite}[1]{\textcolor{white}{\textbf{\scriptsize\supercite{#1}}}}
% Add reference in the footnote - buggy: when the last reference has two lines, the slide will split into two slides, one only has the title and one only has the content.
\newcommand{\footaddreference}[2]{%
% \nomarkfootnote{%
% \begin{minipage}[t]{0.1\linewidth}
% \scriptsize\textcolor{kit-green}{[#1]}
@@ -87,9 +120,6 @@
\fi%
}%
}
\newcommand{\citereference}[1]{\textcolor{kit-green}{\textbf{\scriptsize{[#1]}}}}
\newcommand{\citereferencewhite}[1]{\textcolor{white}{\textbf{\scriptsize{[#1]}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Math macros

View File

@@ -24,6 +24,15 @@
\presetkeys{todonotes}{color=kit-yellow50}{} % make todos box color yellow by default
\presetkeys{todonotes}{textcolor=kit-red}{} % make todos textcolor red by default
% biblatex
\usepackage[style=ieee-alphabetic, hyperref,backend=bibtex, mincitenames=1, maxcitenames=4,language=english,giveninits=true]{biblatex}
% \usepackage[citestyle=authoryear,bibstyle=numeric,hyperref,backend=biber, minnames=3, maxnames=3,indexing=true,language=english,giveninits=true]{biblatex}
% \setbeamercolor{bibliography item}{fg=KITgreen}
\setbeamercolor{bibliography entry title}{fg=kit-green}
\setbeamercolor{bibliography entry author}{fg=kit-green}
\setbeamercolor{bibliography entry location}{fg=kit-green}
\setbeamercolor{bibliography entry note}{fg=kit-green}
% Links in pdf
\usepackage[depth=4,open,openlevel=2]{bookmark}