%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% STYLE-SHEET for ECOC 2022, BASED ON 2018 TEMPLATE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\typeout{ecoc 2022 style, v14}
\typeout{Modified for ECOC 2022}


%----------------------------------------------- New Packages --------------------------------------------------%

\usepackage[english]{babel}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{color}
\usepackage{colortbl}
\usepackage[bookmarks,raiselinks,pageanchor,hyperindex]{hyperref}
\usepackage{amsmath,amssymb,amsfonts,amstext,bbm}
\usepackage{algorithm}
\usepackage{cuted}
\usepackage{geometry}
\usepackage[normalem]{ulem}
\usepackage{longtable}
\usepackage{xspace}
\usepackage{marvosym}
\usepackage[latin1]{inputenc}
\usepackage{calc}
\usepackage{float}
% \usepackage[numbers, super, comma, sort&compress]{natbib}
\usepackage[style=ieee]{biblatex}
\usepackage[final]{pdfpages}
\usepackage{csquotes}
\usepackage{setspace}
\usepackage[justification=centering,singlelinecheck=false,labelfont={bf,footnotesize,sf},font={footnotesize,sf}, aboveskip=1em,belowskip=-1em]{caption}


%---------------------------------------------- New Commands -------------------------------------------------%

\renewcommand{\@biblabel}[1]{[#1]}

\newcommand{\changefont}[3]{\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{helvet}
\newcommand{\mailto}[1]{\href{mailto:#1}{\Letter~#1}}

\renewcommand\figurename{Fig.}
\renewcommand\tablename{Tab.}

%-------------------------------------------- New Environments ------------------------------------------------%
%\newenvironment{name}[num]{before}{after}

% new itemize
\let\tempitemize=\itemize
\renewcommand\itemize{%
 \vspace{-3mm}%
 \setlength{\topsep}{0pt}%
 \setlength{\partopsep}{0pt}%
 \tempitemize
 \setlength{\parskip}{0pt}%
 \setlength{\parsep}{0pt}%
 \setlength{\itemsep}{0pt}
 }

% new enumerate
\let\tempenumerate=\enumerate
\renewcommand\enumerate{%
 \vspace{-3mm}%
 \setlength{\topsep}{0pt}%
 \setlength{\partopsep}{0pt}%
 \tempenumerate
 \setlength{\parskip}{0pt}%
 \setlength{\parsep}{0pt}%
 \setlength{\itemsep}{0pt}%
}

 % new figure
\renewenvironment{figure}
{\setlength\abovecaptionskip{2\p@}%
 \setlength\belowcaptionskip{-10\p@}%
 \@float{figure}
}
{\vspace{-0.3\baselineskip}%
 \end@float
}

% new figure*
\renewenvironment{figure*}
{\setlength\abovecaptionskip{2\p@}%
 \setlength\belowcaptionskip{-10\p@}%
 \@dblfloat{figure}
}
{\vspace{-0.3\baselineskip}%
 \end@dblfloat
}

 % new table
\renewenvironment{table}
{\setlength\abovecaptionskip{2\p@}%
 \setlength\belowcaptionskip{0\p@}%
 \@float{table}
}
{\vspace{-0.3\baselineskip}%
 \end@float
}

 % new table*
\renewenvironment{table*}
{\setlength\abovecaptionskip{2\p@}%
 \setlength\belowcaptionskip{0\p@}%
 \@dblfloat{table}
}
{\vspace{-0.3\baselineskip}%
 \end@dblfloat
}

%new author descr
\newenvironment{author_descr}
{\vspace{-16mm}}
{\vspace{-6mm}}

%new abstract
\newenvironment{ecoc_abstract}
{\noindent \it \textbf{Abstract~~}}
{\rm}

%\newenvironment{name}[num]{before}{after}

%--------------------------------------------------- Graphics ------------------------------------------------------%

\graphicspath{{figures/}{plots/}}
\DeclareGraphicsExtensions{.pdf,.png,.mps,.jpg}


%-------------------------------------------- Additional settings -------------------------------------------------%

\setlength{\parskip}{0pt}
% \setlength{\bibsep}{0pt}
\def\bibfont{\footnotesize}


\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
  {\usebibmacro{cite:init}%
   \let\multicitedelim=\supercitedelim
   \iffieldundef{prenote}
     {}
     {\BibliographyWarning{Ignoring prenote argument}}%
   \iffieldundef{postnote}
     {}
     {\BibliographyWarning{Ignoring postnote argument}}%
  \bibopenbracket}%
  {\usebibmacro{citeindex}%
   \usebibmacro{cite:comp}}
  {}
  {\usebibmacro{cite:dump}\bibclosebracket}
\let\cite=\supercite

%------------------------------------------- Design Parameters -------------------------------------------------%

\geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm}
\setlength{\columnsep}{21pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
