-
Notifications
You must be signed in to change notification settings - Fork 2
/
template_attendance.tex
175 lines (141 loc) · 4.1 KB
/
template_attendance.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[11pt, a4paper]{article}
% LAYOUT
%--------------------------------
\usepackage{geometry}
\geometry{a4paper, left=45mm, right=45mm, top=15mm, bottom=50mm}
$if(geometry)$\geometry{$geometry$}$endif$
% No page numbers
\pagenumbering{gobble}
\usepackage[dvipsnames]{xcolor}
% Headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{%
\begin{minipage}{3.0cm}
\includegraphics[width=2.5cm]{cern}
\end{minipage}
\begin{minipage}{0.9\textwidth}
European Organization for Nuclear Research\\
\textit{Organisation européenne pour la recherche nucléaire}
\end{minipage}
}
\chead{}
\rhead{}
\lfoot{%
\href{https://home.cern}{\scriptsize\color{Gray}home.cern}
}
\rfoot{%
\scriptsize\color{Gray}\textbf{Switzerland}: CH-1211 Geneva CERN
\ensuremath{\vert} \textbf{France} F-01631 CERN CEDEX
}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{3.5cm}
\fancyhfoffset[l,r]{35mm}
% Left align
\usepackage[document]{ragged2e}
$if(letterhead)$
% To include the letterhead
\usepackage{wallpaper}
\ULCornerWallPaper{1}{letterhead.pdf}
$endif$
% TYPOGRAPHY
%--------------------------------
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
% converts LaTeX specials (quotes, dashes etc.) to Unicode
\defaultfontfeatures{Mapping=tex-text, Numbers={OldStyle}}
\setromanfont[Ligatures={Common}, Numbers={OldStyle}]{$seriffont$}
\setsansfont{$sansfont$}
% Set paragraph break
\setlength{\parskip}{1em}
% Custom ampersand
\newcommand{\amper}{{\fontspec[Scale=.95]{$seriffont$}\selectfont\itshape\&}}
$if(seriffont)$
\setmainfont[SmallCapsFeatures={LetterSpace=5,Letters=SmallCaps}]{$seriffont$}
$endif$
$if(sansfont)$
\setsansfont{$sansfont$}
$endif$
% Command required by how Pandoc handles the list conversion
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% TABLE CUSTOMIZATION
%--------------------------------
\usepackage{spreadtab}
\usepackage[compact]{titlesec} % For customizing title sections
\titlespacing*{\section}{0pt}{3pt}{-7pt} % Remove margin bottom from the title
\usepackage{arydshln} % For the dotted line on the table
\renewcommand{\arraystretch}{1.5} % Apply vertical padding to table cells
\usepackage{hhline} % For single-cell borders
\usepackage{enumitem} % For customizing lists
\setlist{nolistsep} % No whitespace around list items
\setlist[itemize]{leftmargin=0.5cm} % Reduce list left indent
\setlength{\tabcolsep}{9pt} % Larger gutter between columns
% LANGUAGE
%--------------------------------
$if(lang)$
\usepackage{polyglossia}
\setmainlanguage{$lang$}
$endif$
% PDF SETUP
%--------------------------------
\usepackage[xetex, bookmarks, colorlinks, breaklinks]{hyperref}
\hypersetup
{
pdfauthor=$author$,
linkcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black
}
\usepackage[strict]{changepage}
\newcounter{pos}
% DOCUMENT
%--------------------------------
\begin{document}
\setlength{\parindent}{0pt}
$for(registrants)$
\begin{minipage}{0.5\textwidth}
LHCb secretariat\\
Office 2/1-051\\
CERN\\
+41~22\,767\,73\,55\\
\href{mailto:[email protected]}{[email protected]}\\
\end{minipage}%
\hfill%
\begin{minipage}{0.5\textwidth}
\raggedleft
$registrants.name$\\
$registrants.institute$\\
\href{mailto:$registrants.email$}{$registrants.email$}\\
\end{minipage}
% END HEADER
% \vspace{2em}
\begin{flushright}
{\small $city$, \today}
\end{flushright}
\vspace{8em}
\section*{\centering\textcolor{blue}{CERTIFICATE OF ATTENDANCE}}
\vspace{2em}
This certificate is awarded to \textbf{$registrants.name$} for their attendance at the LHCb Starterkit 2020 workshop held virtually between 2nd-6th November, 2020.
\vspace{10em}
%\begin{minipage}[b]{0.3\textwidth}
% \raggedright \today
%\end{minipage}
\begin{minipage}[b]{0.5\textwidth}
% \small
$if(logo)$\includegraphics[width=3.5cm]{$logo$}\\$endif$
% \textsc{\textbf{\MakeLowercase{$author$}}}
\end{minipage}
\begin{minipage}[b]{0.5\textwidth}
\raggedleft
LHCb Secretariat \\
\today
\end{minipage}
$separator$\pagebreak
$endfor$
\end{document}