diff --git a/CHANGELOG.md b/CHANGELOG.md index 48b1b44..5ac9a28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Changelog All changes of this template is documented in this file. +## [2025.08.28 v1.0.1] CEL citation style +- Simplified \addreference(s) and \citereference by using \supercite and \fullcite +- TODO: integrate the \supercite from the old CEL template -## [2025.08.14 v1.0.0] Modifications from sdqbeamer.cls +## [2025.08.22 v1.0.0] Modifications from sdqbeamer.cls - Changed default beamer-class options to en, helvet - Disabled navigation bar by default - Changed position and size of subtitle and authors in the title page diff --git a/introduction.tex b/introduction.tex index 2b632b6..ba229ad 100644 --- a/introduction.tex +++ b/introduction.tex @@ -37,11 +37,8 @@ \author[Doe, Liu \& Schmalen]{\underline{Jone Doe}, Hedongliang Liu and Laurent Schmalen} \date[]{\today} -% Literature - -\usepackage[citestyle=authoryear,bibstyle=numeric,hyperref,backend=biber, minnames=3, maxnames=3,indexing=true,language=english,giveninits=true]{biblatex} +% Reference .bib file \addbibresource{presentation.bib} -% \bibhang1em \usepackage{lipsum} @@ -72,9 +69,6 @@ \begin{frame}[title white vertical, picture=images/castleflagcut] \titlepage \end{frame} -% \begin{frame}[tableofcontents=blue]{Overview} -% \tableofcontents -% \end{frame} \section{Basic Usage} \subsection{Options} @@ -271,47 +265,51 @@ \section{Other Tips} \subsection{Citations} \begin{frame}{Citations in Footnote using BibLaTeX} - Citations in beamer were often dealed by pasting the full text in the footnote. \\ + Citations in beamer were often dealed bypasting the full text. \\ The biblatex package enables citing from your .bib file. \\ - Note that these commands requires setting \texttt{\schlagwort{backend=biber}} when loading the \texttt{biblatex} package.\\ - Here are several ways of usage:\\[-.5em] + Here are several examples of usage:\\[-.5em] \begin{itemize} \item Cite full text in footnote \footfullcite{Rode23ECOC} by \texttt{$\backslash$footfullcite}. \item If the mark is not wanted, combine \texttt{$\backslash$nomarkfootnote} and \texttt{$\backslash$fullcite}. \nomarkfootnote{\fullcite{Rode23JLT}} - \item Cite author and year in text \autocite{Rode23JLT}. + \item Cite author and year in text \citeauthor{Rode23JLT}, \citeyear{Rode23JLT}. \item Cite title in text \citetitle{Karanov18JLT}. + \item Use \texttt{$\backslash$supercite} to cite the alphabetic bibkey \supercite{li2018achievable,Karanov18JLT}. \end{itemize} \textit{\footnotesize For more usage please refer to \href{http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf}{\textcolor{kit-blue}{Biblatex Cheat Sheet}}.} % \vspace{-1em} % You can print all references that are cited at the end of presentation, as shown in the next slide. \end{frame} -\begin{frame}{Citations in \emph{CEL} Style} -Use \texttt{$\backslash$addreference\{\textcolor{kit-green}{}\}\{$\backslash$fullcite\{\}\}} to list the reference in \emph{CEL} style in footnote.\\ -% \addreference{RGC${}^+$23-1}{\fullcite{Rode23ECOC}}% -% \addreference{RGC${}^+$23-2}{\fullcite{Rode23JLT}}% -\addreference{GJD${}^+$20}{\fullcite{gaiarin2020end}}% -\addreference{LHG${}^+$18}{\fullcite{li2018achievable}}% -\addreference{KCT${}^+$18}{\fullcite{Karanov18JLT}}% -To cite the a reference, use \texttt{$\backslash$citereference\{\textcolor{kit-green}{}\}}. +\begin{frame}{Cite in \emph{CEL} Style} +% % Cite the reference in text by + Cite the in text by \texttt{$\backslash$citereference\{\textcolor{kit-green}{}\}}. E.g., \begin{itemize} - \item End-to-end learning applied to optimize multidimensional constellations for IM/DD links~\citereference{KCT${}^+$2018} - \item End-to-end learning of transceivers for the nonlinear Fourier transform~\citereference{GJD${}^+$20} - \item Constellation optimization for the zero-dispersion channel~\citereference{LHG${}^+$18} + \item End-to-end learning applied to optimize multidimensional constellations for IM/DD links~\citereference{Karanov18JLT} + \item End-to-end learning of transceivers for the nonlinear Fourier transform~\citereference{gaiarin2020end} + \item Constellation optimization for the zero-dispersion channel~\citereference{li2018achievable} \end{itemize} + + + Then add the references at the bottom of the page by \texttt{$\backslash$addreference\{\}} for single reference, or \texttt{$\backslash$addreferences\{...$\backslash$stoppreferences\}} for multiple references. + \bigskip + \vfill + + % \addreference{Karanov18JLT} + \addreferences{Karanov18JLT}{gaiarin2020end}{li2018achievable}\stopreferences +% \addreferences{GJD${}^+$20}{\fullcite{gaiarin2020end}}{LHG${}^+$18}{\fullcite{li2018achievable}}{KCT${}^+$18}{\fullcite{Karanov18JLT}}\stopreferences \end{frame} -\begin{frame}{Citations in \emph{CEL} Style (Cont'd)} - Or use \texttt{$\backslash$citereferencewhite\{\}} if the background is dark. - \begin{blueblock}{Theorem \citereferencewhite{GJD${}^+$20}} - Let $a\in\bbN$ be ... \\ - \lipsum[2][1-2] - \end{blueblock} - \addreference{GJD${}^+$20}{\fullcite{gaiarin2020end}}% - \addreference{KCT${}^+$18}{\fullcite{Karanov18JLT}}% -\textbf{\textcolor{kit-red}{Current bug:} If the last reference in \texttt{$\backslash$addreference} has two lines, the slide will be split into two, one only has the title and one only has the content.} -\end{frame} +% \begin{frame}{Citations in \emph{CEL} Style (Cont'd)} +% Or use \texttt{$\backslash$citereferencewhite\{\}} if the background is dark. +% % \begin{blueblock}{Theorem \citereferencewhite{GJD${}^+$20}} +% % Let $a\in\bbN$ be ... \\ +% % \lipsum[2][1-2] +% % \end{blueblock} +% \addreference{GJD${}^+$20}{\fullcite{gaiarin2020end}}% +% \addreference{KCT${}^+$18}{\fullcite{Karanov18JLT}}% +% % \textbf{\textcolor{kit-red}{Current bug:} If the last reference in \texttt{$\backslash$addreference} has two lines, the slide will be split into two, one only has the title and one only has the content.} +% \end{frame} \subsection{Handout Mode} \begin{frame}{Handout Mode} diff --git a/preambles/macros.tex b/preambles/macros.tex index e22be22..c7d1f1d 100644 --- a/preambles/macros.tex +++ b/preambles/macros.tex @@ -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 diff --git a/preambles/packages.tex b/preambles/packages.tex index 4f685c6..4895acc 100644 --- a/preambles/packages.tex +++ b/preambles/packages.tex @@ -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}