jsonresume/themes/tex/resume_template.tex
2018-06-06 00:20:51 +02:00

91 lines
2.7 KiB
TeX

\documentclass[a4paper,10pt]{article}
\usepackage{parskip}
\usepackage[cm]{fullpage}
\usepackage{titlesec}
\usepackage{array}
\usepackage{tabularx}
\usepackage[hidelinks]{hyperref}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
\addtolength{\textheight}{3cm}
\pagestyle{empty}
\begin{document}
\par{\centering {\Large {{.Basic.Name -}} }\par}
\par{\centering {\large {{.Basic.Label -}} }\par}
\par{\centering
{{if .Basic.Location.Address}}{{.Basic.Location.Address}}\\{{end}}
{{if .Basic.Location.PostalCode}}{{.Basic.Location.PostalCode}} {{end}}{{.Basic.Location.City}}\\
{{if .Basic.Location.CountryCode}}{{.Basic.Location.CountryCode}}\\{{end}}
{{if .Basic.Phone}}{{.Basic.Phone}}\\{{end}}
{{if .Basic.Email}}{{.Basic.Email}}\\{{end}}
{{if .Basic.URL}}\href{ {{- .Basic.URL -}} }{ {{- .Basic.URL -}} }{{end}}
\par}
{{if or .Skills .Languages -}}
\section{ {{- .Lang.Skills -}} }
\renewcommand{\arraystretch}{0.5}
\begin{tabularx}{\textwidth}{c|X}
{{range .Skills -}}
{{- .Name}}&{{- range $i, $k := .Keywords}}{{if eq $i 0}}{{$k}}{{else}}, {{$k}}{{end}}{{end -}}\\
\multicolumn{2}{c}{} \\
{{end -}}
{{if .Languages -}}
\multicolumn{2}{c}{} \\
{{.Lang.Languages}}&
{{- range $i, $l := .Languages -}}
{{- if gt $i 0}}, {{end -}}
{{- .Language}} ({{.Fluency}})
{{- end -}}\\
{{end}}
\end{tabularx}
{{end}}
\renewcommand{\arraystretch}{1}
{{if .Work -}}
\section{ {{- .Lang.WorkExperience -}} }
\begin{tabularx}{\textwidth}{c|X}
{{range .Work -}}
{{formatDateMY .EndDate}}&\textbf{ {{- .Name -}} }, \textbf{ {{- .Position -}} }\\
{{formatDateMY .StartDate -}}
{{range $i, $h := .Highlights -}}
&\textbf{--} {{$h.Title}}\\
{{range $h.Items -}}
&\hspace{0.5cm}\textbf{\labelitemiv} {{.}}\\
{{end -}}
{{end -}}
\multicolumn{2}{c}{} \\
{{end -}}
\end{tabularx}
{{- end}}
{{if .Education -}}
\section{ {{- .Lang.Education -}} }
\begin{tabularx}{\textwidth}{c|X}
{{range $i, $e := .Education -}}
{{if gt $i 0}}\muticolumn{2}{c}{} \\{{end -}}
{{formatDateY $e.StartDate}} - {{formatDateY $e.EndDate}}&{{$e.StudyType}} {{$.Lang.In}} {{$e.Area}} {{$.Lang.At}} {{md2tex $e.Institution}}\\
{{end -}}
\end{tabularx}
{{- end}}
{{if .Volunteer -}}
\section{ {{- .Lang.Volunteer -}} }
\begin{tabularx}{\textwidth}{c|X}
{{range $i, $v := .Volunteer -}}
{{if gt $i 0}}\multicolumn{2}{c}{} \\{{end -}}
{{if $v.URL -}}
\href{ {{- $v.URL -}} }{ {{- $v.Organization -}} }&{{$v.Position}}\\
{{- else -}}
{{$v.Organization}}&{{$v.Position}}\\
{{- end}}
{{range $j, $h := $v.Highlights -}}
{{if gt $j 0}}& \\{{end -}}
&\textbf{--} {{md2tex .Title}}\\
{{range .Items -}}
&\hspace{0.5cm}\textbf{\labelitemiv} {{.}}\\
{{end -}}
{{end}}
{{- end -}}
\end{tabularx}
{{- end}}
\end{document}