aboutsummaryrefslogtreecommitdiff
path: root/sandbox/ralessi/master.tex
blob: 7cfd725de6a68adb8b5bb17baf8fb9bcc41e61e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\documentclass[12pt,a4paper]{article}
\usepackage[french]{babel}

\usepackage[colorlinks, hidelinks]{hyperref}
\usepackage{csquotes}

\usepackage{imakeidx}
\makeindex[name=participants, title={Liste des participants}, columns=1]

\usepackage{titletoc}
\usepackage{tocdata}

\usepackage{datatool}

\DTLloaddb{data}{data.csv}


\begin{document}
\renewcommand{\contentsname}{Sommaire}
\tableofcontents

% \begin{DTLenvforeach*}{data}{\name=nom, \givenname=prenom,
%     \affil=affiliation, \email=email, \titre=titre, \fichier=fichier}
%   \begin{center}
%     \textbf{\titre}

%     \givenname{} \name\index[participants]{\name, \givenname}

%     \affil

%     (\href{mailto:\email}{\email})
%   \end{center}

%   \input{\fichier}

%   \clearpage
% \end{DTLenvforeach*}

\begin{DTLenvforeach*}{data}{\name=nom, \givenname=prenom,
    \affil=affiliation, \email=email, \titre=titre, \fichier=fichier}
  
  \sectionauthor{\titre}{\givenname}{\name}[ (\affil)\footnote{\href{mailto:\email}{\email}}]
  \index[participants]{\name, \givenname}
  
  \input{\fichier}

  \clearpage
\end{DTLenvforeach*}


\printindex[participants]

\end{document}

nom,prenom,affiliation,email,titre,fichier