Dan Anglin
fa8dbe68e9
Allow users to limit the amount of employment history shown in the PDF document by specifying a time range. This is a breaking change as the structure of the CV needs to slightly change. The employment's start and end dates need to be represented as integers. Additional refactoring: - The CV type is now in the internal cv package. - The template functions are now in the internal templateFuncs package.
57 lines
1.5 KiB
TeX
57 lines
1.5 KiB
TeX
<<- /* Prepend the setup area */ ->>
|
|
<< template "cv_setup.tmpl.tex" .>>
|
|
|
|
\starttext
|
|
\starttitleAndContact
|
|
\cvtitle{<<.FirstName>> <<.LastName>>}{<<.JobTitle>>}
|
|
\titleAndContact
|
|
<<range $k, $v := .Contact>>
|
|
{\bf <<$k>>:} <<$v>>\blank[none]
|
|
<<end>>\blank[medium]
|
|
|
|
<<range $k, $v := .Links>>
|
|
{\bf <<$k>>:} <<$v>>\blank[none]
|
|
<<end>>
|
|
\stoptitleAndContact
|
|
|
|
\section{SUMMARY}
|
|
<<join .Summary>>
|
|
|
|
\section{SKILLS SUMMARY}
|
|
\starttabulate[|w(0.3\textwidth)lB|lp(0.7\textwidth)|]
|
|
<<$lenTech := len .Skills>>
|
|
<<range $i, $tech := .Skills>>
|
|
<<$lenValues := len $tech.Values>>
|
|
\NC <<$tech.Category>> \NC <<range $j, $val := $tech.Values>><<$val>><<if notLastElement $j $lenValues>>, <<end>><<end>>\NC\NR
|
|
<<if notLastElement $i $lenTech>>\TB[1mm]<<end>>
|
|
<<end>>
|
|
\stoptabulate
|
|
|
|
\section{EXPERIENCE}
|
|
<<- range .Employment>>
|
|
<<- if withinTimePeriod .Duration>>
|
|
\jobsection{<<.Company>>}{<<.Location>>}{<<.JobTitle>>}{<<durationToString .Duration>>}
|
|
\startitemize
|
|
<<range .Details>>
|
|
\item <<.>>
|
|
<<end>>
|
|
\stopitemize
|
|
<<end>>
|
|
<<end>>
|
|
|
|
\section{EDUCATION}
|
|
<<range .Education ->>
|
|
\jobsection{<<.School>>}{<<.Location>>}{<<.Qualification>>}{<<durationToString .Duration>>}
|
|
\startitemize
|
|
<<range .Details>>
|
|
\item <<.>>
|
|
<<end>>
|
|
\stopitemize
|
|
<<end>>
|
|
|
|
\section{INTERESTS AND HOBBIES}
|
|
<<join .Interests>>
|
|
|
|
\section{REFERENCES}
|
|
References are available upon request.
|
|
\stoptext
|