Skip to content

Commit

Permalink
update handling of dates (yaml and latex)
Browse files Browse the repository at this point in the history
- use start- and end-dates in yaml syntax and latex template
  (appointment-positions, education, grants, service)
- write for-loop for appointment-positions
- use "dates" not "years" for teaching (for consistency with yaml-keys
  for other elements)
  • Loading branch information
icornelius committed Nov 16, 2023
1 parent 2179b8c commit 391c22d
Show file tree
Hide file tree
Showing 5 changed files with 304 additions and 86 deletions.
51 changes: 45 additions & 6 deletions config/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,18 @@
$for(appointments)$
\textsc{$appointments.institution$}\ignorespaces
$if(appointments.city)$, $appointments.city$$endif$\\
\note{$appointments.years$}\emph{$appointments.title$}\\[.2cm]
$for(appointments.position)$
$if(appointments.position.dates.literal)$
\note{$it.dates.literal$}\ignorespaces
$elseif(appointments.position.dates.begin)$
$if(appointments.position.dates.end)$
\note{$it.dates.begin.year$--$it.dates.end.year$}\ignorespaces
$else$
\note{$it.dates.begin.year$--present}\ignorespaces
$endif$
$endif$
\emph{$it.title$}\\[.2cm]
$endfor$
$endfor$
$endif$

Expand All @@ -114,7 +125,16 @@
$for(education)$
\textsc{$education.institution$}\ignorespaces
$if(education.city)$, $education.city$$endif$\\
\note{$education.years$}\emph{$education.degree$}\\[.2cm]
$if(education.dates.literal)$
\note{$education.dates.literal$}\ignorespaces
$elseif(education.dates.begin)$
$if(education.dates.end)$
\note{$education.dates.begin.year$--$education.dates.end.year$}\ignorespaces
$else$
\note{$education.dates.begin.year$--present}\ignorespaces
$endif$
$endif$
\emph{$education.degree$}\\[.2cm]
$endfor$
$endif$

Expand All @@ -123,7 +143,16 @@
$for(grants)$
\textsc{$grants.grantor$}\\
$for(grants.item)$
\note{$grants.item.years$}\emph{$grants.item.award$}\\
$if(grants.item.dates.literal)$
\note{$grants.item.dates.literal$}\ignorespaces
$elseif(grants.item.dates.begin)$
$if(grants.item.dates.end)$
\note{$grants.item.dates.begin.year$--$grants.item.dates.end.year$}\ignorespaces
$else$
\note{$grants.item.dates.begin.year$--present}\ignorespaces
$endif$
$endif$
\emph{$grants.item.award$}\\
$if(grants.item.collaborators)$
$for(grants.item.collaborators)${\small $it$}$sep$, $endfor$\\
$endif$
Expand All @@ -146,7 +175,7 @@
$for(teaching.course)$
{\footnotesize $teaching.course.number$}
\emph{$teaching.course.title$}
$if(teaching.course.years)${\small ($teaching.course.years$)}$endif$\\
$if(teaching.course.dates)${\small ($teaching.course.dates$)}$endif$\\
$endfor$
$endfor$
$endif$
Expand All @@ -162,8 +191,18 @@
$if(service.item.subitem.position)$
$for(service.item.subitem.position)$
{\small, $it.title$}
$if(service.item.subitem.position.years)$
{\small($service.item.subitem.position.years$)}\ignorespaces
$if(service.item.subitem.position.dates)$
$if(service.item.subitem.position.dates.literal)$
{\small($service.item.subitem.position.dates.literal$)}\ignorespaces
$elseif(service.item.subitem.position.dates.begin)$
$if(service.item.subitem.position.dates.end)$
{\small($service.item.subitem.position.dates.begin.year$--$service.item.subitem.position.dates.end.year$)}\ignorespaces
$else$
{\small($service.item.subitem.position.dates.begin.year$--present)}\ignorespaces
$endif$
$elseif(service.item.subitem.position.dates.end)$
{\small($service.item.subitem.position.dates.end.year$)}\ignorespaces
$endif$
$endif$
$endfor$
$endif$\\
Expand Down
58 changes: 42 additions & 16 deletions source/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,58 @@ website: icornelius.github.io

# Appointments and education
appointments:
- years: 2016--present
institution: Loyola University Chicago
department: Department of English
title: Associate Professor
- institution: Loyola University Chicago
city:
- years: 2009--2016
institution: Yale University
department: Department of English
title: Assistant Professor
position:
title: Associate Professor
dates:
begin:
year: 2016
month: 8
end:
- institution: Yale University
city:
department: Department of English
position:
title: Assistant Professor
dates:
begin:
year: 2009
month: 8
end:
year: 2016
month: 6

education:
- years: 2003--2009
- institution: University of Pennsylvania
city:
degree: Ph.D., English Literature
institution: University of Pennsylvania
dates:
begin:
year: 2003
month: 8
end:
year: 2009
month: 5
- institution: King's College, University of London
city:
- years: 2006/2007
degree: Non-degree research student
institution: King's College, University of London
dates:
literal: 2006/2007
- institution: Keble College, University of Oxford
city:
- years: 2000/2001
degree: Non-degree tutorial student in English literature
institution: Keble College, University of Oxford
dates:
literal: 2000/2001
- institution: Washington University in St. Louis
city:
- years: 1998--2002
degree: B.A., English Literature
institution: Washington University in St. Louis
city:
dates:
begin:
year: 1998
month: 8
end:
year: 2002
month: 5
---
41 changes: 35 additions & 6 deletions source/grants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,60 @@ grants:
- Sarah Noonan
- Michelle Dalmau
- Ian Cornelius
years: 2020--2023
dates:
begin:
year: 2020
month: 6
end:
year: 2024
month: 5

-
grantor: Loyola University Chicago
item:
- award: Faculty Development Award, supporting one semester of research leave
years: 2020
dates:
literal: 2020 # fall semester
- award: Edward L. Surtz, S.J. Endowed Term Chair
years: 2016--2021
dates:
begin:
year: 2016
month: 8
end:
year: 2021
month: 6

-
grantor: Yale University
item:
- award: Morse Fellowship, supporting two semesters of research leave
years: 2011/2012
dates:
begin:
year: 2011
month: 7
end:
year: 2012
month: 6

-
grantor: University of Pennsylvania
item:
- award: Penn-in-London Fellowship
years: 2006/2007
dates:
begin:
year: 2006
end:
year: 2007

-
grantor: Andrew W. Mellon Foundation
item:
- award: Fellowship in Humanistic Studies
years: 2003/2004
dates:
begin:
year: 2003
month: 8
end:
year: 2004
month: 6
---
Loading

0 comments on commit 391c22d

Please sign in to comment.