forked from danielmangrum/jobmarkethacker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diversity.tex
64 lines (48 loc) · 1.44 KB
/
Diversity.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
\documentclass[11pt,letterpaper]{article}
\usepackage[margin=1.00in]{geometry}
\usepackage{setspace}
\usepackage{placeins}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{import}
\usepackage{datatool}
\usepackage{ifthen}
\usepackage{pxfonts}
\usepackage{blindtext} % Only used to fill space
\fancypagestyle{style1}{
\fancyhf{}
\rhead{Diversity Statement\\ November 2019}
\lhead{Daniel Mangrum\\ Vanderbilt University}
%\rfoot{Page \thepage}
}
\fancypagestyle{style2}{
\fancyhf{}
\rhead{Diversity Statement\\ page \thepage}
\lhead{Daniel Mangrum\\ Vanderbilt University}
%\rfoot{Page \thepage}
}
\begin{document}
\DTLloaddb{sample}{Jobs_export.csv}
\DTLforeach{sample}{%
\Complete=Complete,%
\DiversityStatementCat=DiversityStatementCat,%
\Submitted=Submitted,%
\DiversityBonus=DiversityBonus%
}{
\ifthenelse{\equal{\DiversityStatementCat}{} \OR \equal{\Submitted}{Yes}}{}{
\ifthenelse{\equal{\Complete}{Yes}}{
\setcounter{page}{1}
\pagestyle{style1}
% I only had one version of my diversity and inclusion statement and used the DiversityBonus wildcard in the Job_details csv to customize it when needed. You can create multiple statements using a similar template as the teaching statement if you'd like.
\ifthenelse{\equal{\DiversityStatementCat}{standard}}{
\Blindtext[6]% Only used to fill space
\bigskip
\DiversityBonus
\clearpage
}{}
}{}
}
}
\end{document}