jsonresume/themes/tex/resume_template.tex

94 lines
2.7 KiB
TeX

\documentclass[a4paper,10pt]{article}
\usepackage{parskip}
\usepackage[cm]{fullpage}
\usepackage{titlesec}
\usepackage{array}
\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
{{.Basic.Location.Address}}\\
{{.Basic.Location.PostalCode}} {{.Basic.Location.City}}\\
{{.Basic.Location.CountryCode}}\\
{{.Basic.Phone}}\\
{{.Basic.Email}}\\
\href{ {{- .Basic.URL -}} }{ {{- .Basic.URL -}} }
\par}
{{if .Skills -}}
\section{ {{- .Lang.Skills -}} }
\renewcommand{\arraystretch}{0.5}
\begin{tabular}{>{\centering}p{2.5cm}|p{14.8cm}}
{{range .Skills -}}
{{- .Name}}&{{if gt (len .Name) 10}}\vspace*{\stretch{1}}{{end -}}
{{- range $i, $k := .Keywords}}{{if eq $i 0}}{{$k}}{{else}}, {{$k}}{{end}}{{end -}}
{{- if gt (len .Name) 10}}\vspace*{\stretch{1}} {{end}}\\
\multicolumn{2}{c}{} \\
{{end -}}
\end{tabular}
\renewcommand{\arraystretch}{1}
{{- end}}
{{if .Languages -}}
\begin{tabular}{>{\centering}p{2.5cm}|p{14.8cm}}
{{.Lang.Languages}}&
{{- range $i, $l := .Languages -}}
{{- if gt $i 0}}, {{end -}}
{{- .Language}} ({{.Fluency}})
{{- end -}}\\
\multicolumn{2}{c}{} \\
\end{tabular}
{{- end}}
{{if .Work -}}
\section{ {{- .Lang.WorkExperience -}} }
\begin{tabular}{>{\centering}p{2.5cm}|p{14.8cm}}
{{range .Work -}}
{{formatDateMY .EndDate}}&\textbf{ {{- .Name -}} }, \textbf{ {{- .Position -}} }{{if .Location}}, {{md2tex .Location}}{{end}}\\
{{formatDateMY .StartDate -}}
{{range $i, $h := .Highlights -}}
&\textbf{--} {{$h.Title}}\\
{{range $h.Items -}}
&\hspace{0.5cm}\textbf{\labelitemiv} {{.}}\\
{{end -}}
{{end -}}
\multicolumn{2}{c}{} \\
{{end -}}
\end{tabular}
{{- end}}
{{if .Education -}}
\section{ {{- .Lang.Education -}} }
\begin{tabular}{>{\centering}p{2.5cm}|p{14.8cm}}
{{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{tabular}
{{- end}}
{{if .Volunteer -}}
\section{ {{- .Lang.Volunteer -}} }
\begin{tabular}{>{\centering}p{2.3cm}|p{15cm}}
{{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{tabular}
{{- end}}
\end{document}