forked from brainhackorg/brainhack_certificates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate_certificate.tex
122 lines (112 loc) · 3.12 KB
/
template_certificate.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\documentclass[16pt]{scrartcl}
\usepackage[letterpaper,left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{pdflscape,setspace,amsmath,amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{calligra}
\usepackage{tgschola}
\usepackage{fourier-orns}
\usepackage{graphicx}
\usepackage{wallpaper}
\usepackage[normalem]{ulem}
\usepackage[many]{tcolorbox}
\usepackage{charter}
\usepackage{microtype}
\hyphenpenalty 100000
%=============================
\input Zallman.fd
\newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}}
%=============================
\usepackage{datatool}
\DTLloaddb{names}{./data/namelist/certificate_namelist.csv}
%=============================
\def\signature#1#2{\parbox[b]{1in}{\smash{#1}\vskip12pt}
\hfill \parbox[t]{2.8in}{\shortstack{\vrule width 2.8in height 0.4pt\\\small#2}}}
\def\sigskip{\vskip0.4in plus 0.1in}
\def\beginskip{\vskip0.5875in plus 0.1in}
\newtcolorbox{cross}{blank,breakable,parbox=false,
overlay={\draw[black,line width=0.5pt] (interior.west)--(interior.east);
}}
%=============================
\definecolor{title}{RGB}{0,0,0}
\definecolor{other}{RGB}{171,0,255}
\definecolor{name}{RGB}{255,0,0}
\definecolor{phd}{RGB}{0,0,240}
%=============================
\begin{document}
\begin{landscape}
\linespread{1.25}\selectfont
\pagestyle{empty}
%\TileWallPaper{1\paperwidth}{1\paperheight}{border-2.jpg}
%=============================
\DTLforeach{names}{
\dg=degree, \name=Name, \dgn=Dgn, \sub=subject, \inst=inst, \place=place}{
%=============================
\noindent
\begin{minipage}[l]{1.5in}
\includegraphics[width=\linewidth]{./data/logos/OHBM_B.jpg}
\end{minipage}
\begin{minipage}[c]{6in}
{\centering
{\onehalfspacing
% {\LARGE\bfseries \color{title}{Certificate of Collaboration}}\\
\vskip1em
{\LARGE\bfseries 2022 OHBM Hackathon}\\%\initfamily
{Glasgow, United Kingdom\\}
{June 16 - 18\\}
}\par}
\hfill
\end{minipage}
\begin{minipage}[r]{1.5in}
\includegraphics[width=\linewidth]{./data/logos/brainhack_logo.png}
\end{minipage}
\vskip2em
{\centering
{\onehalfspacing
{\Large\bfseries \color{title}{Certificate of Participation}}\\
}\par}
\hfill
\vskip2em
{
\noindent\centering{This is to certify that}
{\bfseries{\dg. \MakeUppercase{\name}}}, { \dgn} of {\sub}, {\inst}, {\place},
\centering{participated in the
\emph{\bfseries 2022 Organization of Human Brain Mapping Hackathon}
organized by the
\textbf{Organization of Human Brain Mapping Open Science Special Interest Group}
in coordination with \textbf{brainhack.org}.}\\
}
\noindent
%\beginskip
{%
\vfill
\singlespacing
\begin{minipage}[l]{2in}
\begin{cross}
\includegraphics[width=.7\linewidth]{./data/signature/signature.png}
\end{cross}
\begin{footnotesize}
\center
Hao-Ting Wang\\
Open Science SIG\\
Hackathon Co-Chair\\
\end{footnotesize}
\end{minipage}
\hfill
\begin{minipage}[r]{2in}
\begin{cross}
\includegraphics[width=.7\linewidth]{./data/signature/signature.png}
\end{cross}
\center
\begin{footnotesize}
Stefano Moia\\
Open Science SIG\\
Hackathon Co-Chair\\
\end{footnotesize}
\end{minipage}
}
%=============================
\pagebreak
}
\end{landscape}
\end{document}