-
Notifications
You must be signed in to change notification settings - Fork 59
/
Research.tex
82 lines (57 loc) · 1.83 KB
/
Research.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
\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{Research Statement\\ January 2020}
\lhead{Daniel Mangrum\\ Vanderbilt University}
%\rfoot{Page \thepage}
}
\fancypagestyle{style2}{
\fancyhf{}
\rhead{Research Statement\\ page \thepage}
\lhead{Daniel Mangrum\\ Vanderbilt University}
%\rfoot{Page \thepage}
}
\begin{document}
\DTLloaddb{sample}{Jobs_export.csv}
\DTLforeach{sample}{%
\Complete=Complete,%
\ResearchStatementCat=ResearchStatementCat,%
\Submitted=Submitted,%
\ResearchBonus=ResearchBonus%
}{%
\ifthenelse{\equal{\ResearchStatementCat}{} \OR \equal{\Submitted}{Yes}}{}{
\ifthenelse{\equal{\Complete}{Yes}}{
\setcounter{page}{1} % Resets the page counter back to 1 at the beginning of each new sub-document
\pagestyle{style1}
% I only used one Research Statement. If you have others, you can use the if/then statements as I did in the teaching statements
\ifthenelse{\equal{\ResearchStatementCat}{econ_general}}{
\Blindtext[1]% Only used to fill space
\bigskip
\noindent\textbf{Research Papers}\\
\Blindtext[6]% Only used to fill space
\bigskip
\noindent\textbf{Works in Progress}\\
\Blindtext[3]% Only used to fill space
\bigskip
\pagestyle{style2} % Switches from first page style to remaining page style (I had date in the first page and page numbers in remaining)
\noindent\textbf{Future Work}\\
\Blindtext[2]% Only used to fill space
\noindent \ResearchBonus
\clearpage
}{}
}{}
}
}
\end{document}