% -----------------------------------------------------------------------------------
% Note on adding new contact
% -----------------------------------------------------------------------------------
% add two new commands
%
%       \newcommand{\ccName}[1]{\ccauthor{Full name}{#1}}
%       \newcommand{\eeName}{\ccemail{email address}}
%
%    Where 
%       - Name is a single word
%       - Full Name is the "Contact Name" that appears in the first column
%       - email address is the full email address that appears in the second column
% 
%   Please do not edit any other part of this file
%
% -----------------------------------------------------------------------------------
% Do not change these command
% -----------------------------------------------------------------------------------
\newcommand{\largestar}{$\bigstar$}

% Define the generalized command for email
\newcommand\ccemail[1]{%
    \href{mailto:#1}{\texttt{\detokenize{#1}}}
}

% Define the generalized command for authors
\newcommand{\ccauthor}[2]{%
  #1\ifx\relax#2\relax\else\ \largestar \fi%
}

% -----------------------------------------------------------------------------------
% Contact emails
% -----------------------------------------------------------------------------------
\newcommand{\ccNeil}[1]{\ccauthor{Neil Cook}{#1}}
\newcommand{\eeNeil}{\ccemail{neil.cook@umontreal.ca}}

\newcommand{\ccEtienne}[1]{\ccauthor{Etienne Artigau}{#1}}
\newcommand{\eeEtienne}{\ccemail{etienne.artigau@umontreal.ca}}

\newcommand{\ccLison}[1]{\ccauthor{Lison Malo}{#1}}
\newcommand{\eeLison}{\ccemail{lison.malo@umontreal.ca}}

\newcommand{\ccFred}[1]{\ccauthor{Frederique Baron}{#1}}
\newcommand{\eeFred}{\ccemail{frederique.baron@umontreal.ca}}

\newcommand{\ccCharles}[1]{\ccauthor{Charles Cadieux}{#1}}
\newcommand{\eeCharles}{\ccemail{charles.cadieux.1@umontreal.ca}}

\newcommand{\ccThomas}[1]{\ccauthor{Thomas Vandal}{#1}}
\newcommand{\eeThomas}{\ccemail{thomas.vandal@umontreal.ca}}

\newcommand{\ccPhilippe}[1]{\ccauthor{Philippe Vallee}{#1}}
\newcommand{\eePhilippe}{\ccemail{philippe.vallee@umontreal.ca}}

\newcommand{\ccLucile}[1]{\ccauthor{Lucile Mignon}{#1}}
\newcommand{\eeLucile}{\ccemail{lucile.mignon@univ-grenoble-alpes.fr}}

\newcommand{\ccRomain}[1]{\ccauthor{Romain Allart}{#1}}
\newcommand{\eeRomain}{\ccemail{romain.allart@umontreal.ca}}

\newcommand{\ccUMail}[1]{\ccauthor{UdeM NIRPS mailing list}{#1}}
\newcommand{\eeUMail}{\ccemail{nirps_mtl@listes.umontreal.ca}}

\newcommand{\ccNirpsSupport}[1]{\ccauthor{NIRPS Support}{#1}}
\newcommand{\eeNirpsSupport}{\ccemail{nirps_support@listes.umontreal.ca}}

\newcommand{\ccCurrentObserver}[1]{\ccauthor{The current observer}{#1}}
\newcommand{\eeCurrentObserver}{\hyperref[sec:how_to:find_observer]{Click here}}

\newcommand{\ccClServiceDesk}[1]{\\ccauthor{ESO CL Service Desk}{#1}}
\newcommand{\eeClServiceDesk}{\ccemail{cl-servicedesk@eso.org}}

\newcommand{\ccTelescope}[1]{\ccauthor{3.6m Telescope}{#1}}
\newcommand{\eeTelescope}{\ccemail{3P6@eso.org}}

\newcommand{\ccDNOS}[1]{\ccauthor{La Silla Day and Night Staff}{#1}}
\newcommand{\eeDNOS}{\ccemail{ls-dnos@eso.org}}

\newcommand{\ccGaspare}[1]{\ccauthor{Gaspare Lo Curto}{#1}}
\newcommand{\eeGaspare}{\ccemail{glocurto@eso.org}}

\newcommand{\ccXavierDumusque}[1]{\ccauthor{Xavier Dumusque}{#1}}
\newcommand{\eeXavierDumusque}{\ccemail{xavier.dumusque@unige.ch}}

% \newcommand{\ccNAme}[1]{\ccauthor{Full name}{#1}}
% \newcommand{\eeName}{\ccemail{email}}

% -----------------------------------------------------------------------------------
% Define a custom table environment with alternating row colors
% -----------------------------------------------------------------------------------
\newenvironment{contacttable}{
    \vspace{2mm}
    \begin{tblr}
    {
      colspec={XX},
      row{odd}={bg=aquaaccent},
      row{even}={bg=greenaccent},
      row{1}={bg=royalblue,fg=white},
      width=\textwidth
    }
    \hline
    Contact name & Email \\
    \hline
}{%
    \end{tblr}
}