This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
65 lines (57 loc) · 1.45 KB
/
macros.tex
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
56
57
58
59
60
61
62
63
64
65
\usepackage{pgffor}
\usepackage{xifthen}
\usepackage{fancyhdr}
\usepackage{graphicx}
\newcommand{\hyperauthors}[2]{
\textbf{Groupe #1} \\
\foreach \i/\q in {#2}{
\textsc{\q} \i \\
}
}
\newcommand{\hypertutors}[1]{
\textbf{Tuteur(s) : } \\
\foreach \i/\q in {#1}{
\textsc{\q} \i \\
}
}
\newcommand{\hypertitle}[7]{
% #1 Title
% #2 Cours
% #3 Numéro de groupe
% #4 Membres du groupe, format : {prenom/nom, prenom/nom, ...}
% #5 Tuteurs, même format que membres
% #6 si existe -> toc
% #7 Date
\fancyhf{} %clear all headers and footers fields
\fancyhead[R]{\thepage} %prints the page number on the right side of the header
\fancyhead[L]{#1}
\pagestyle{fancy}
\thispagestyle{empty}
\begin{titlepage}
\begin{center}
\includegraphics[width=0.15\textwidth]{pictures/logo.JPG}~\\[1cm]
\textsc{\LARGE Université Catholique de Louvain}\\[1.5cm]
\textsc{\Large #2}\\[0.5cm]
\rule{\linewidth}{0.5mm} \\[0.4cm]
{ \huge \bfseries #1\\[0.4cm] }
\rule{\linewidth}{0.5mm} \\[1.5cm]
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\hyperauthors{#3}{#4}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\ifthenelse{\isempty{#5}}{}{\hypertutors{#5}}
\end{flushright}
\end{minipage}
\ifthenelse{\isempty{#6}}{}{\tableofcontents}
\vfill
{\large #7}
\end{center}
\end{titlepage}
\clearpage
\pagenumbering{arabic}
\newpage
\thispagestyle{empty}
}