diff --git a/rendercv/templates/classic.tex.j2 b/rendercv/templates/classic.tex.j2 index add0e91..2b8adaf 100644 --- a/rendercv/templates/classic.tex.j2 +++ b/rendercv/templates/classic.tex.j2 @@ -2,15 +2,16 @@ ((* from "components/classic/section_contents.tex.j2" import section_contents with context *)) ((* from "components/classic/header.tex.j2" import header with context *)) -\documentclass[10pt, a4paper]{memoir} +\documentclass[10pt, a4paper]{article} % Packages: \usepackage[ ignoreheadfoot, % set margins without considering header and footer - top=<>, % seperation between body and page edge from the top - bottom=<>, % seperation between body and page edge from the bottom - left=<>, % seperation between body and page edge from the left - right=<>, % seperation between body and page edge from the right + top=<>, % seperation between body and page edge from the top + bottom=<>, % seperation between body and page edge from the bottom + left=<>, % seperation between body and page edge from the left + right=<>, % seperation between body and page edge from the right + showframe % for debugging ]{geometry} % for adjusting page geometry \usepackage{fontspec} % for loading fonts \usepackage[explicit]{titlesec} % for customizing section titles @@ -44,7 +45,7 @@ \titleformat{\section}{ % make the font size of the section title large and color it with the primary color - \LARGE\color{primaryColor} + \Large\color{primaryColor} }{ }{ }{ @@ -58,10 +59,10 @@ 0pt }{ % top space: - <> + <> }{ % bottom space: - <> + <> } % section title spacing \newcolumntype{L}[1]{ @@ -70,15 +71,18 @@ \newcolumntype{R}[1]{ >{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1} } % right-aligned fixed width column type +\newcolumntype{K}[1]{ + >{\raggedright\let\newline\\\arraybackslash\hspace{-0.2cm}\hspace{#1}}X +} % left-aligned flexible width column type \newenvironment{highlights}{ \begin{itemize}[ topsep=0pt, - parsep=<>, + parsep=<>, partopsep=0pt, itemsep=0pt, - after=\vspace*{-\baselineskip}, - leftmargin=<> + after=\vspace*{-1\baselineskip}, + leftmargin=<> + 3pt ] }{ \end{itemize} @@ -95,28 +99,9 @@ \begin{document} <> - \section{Education} - <> - - \section{Work Experience} - <> - - \section{Academic Projects} - <> - - \section{Certificates} - <> - - \section{Skills} - <> - - \section{Test Scores} - <> - - \section{Personal Projects} - <> - - \section{Extracurricular Activities} - <> +((* for section in cv.sections *)) + \section{<>} + <> +((* endfor *)) \end{document} \ No newline at end of file diff --git a/rendercv/templates/components/classic/date_and_location_strings.tex.j2 b/rendercv/templates/components/classic/date_and_location_strings.tex.j2 index 0308348..768a81c 100644 --- a/rendercv/templates/components/classic/date_and_location_strings.tex.j2 +++ b/rendercv/templates/components/classic/date_and_location_strings.tex.j2 @@ -1,9 +1,9 @@ ((* macro date_and_location_strings(date_and_location_strings) *)) ((* for item in date_and_location_strings *)) ((* if loop.last *)) -<> +<> \hspace*{-0.2cm + <>} ((* else *)) -<>\newline +<> \hspace*{-0.2cm + <>} \newline ((* endif *)) ((* endfor *)) ((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/components/classic/entry.tex.j2 b/rendercv/templates/components/classic/entry.tex.j2 index b7d19a1..bda4bb4 100644 --- a/rendercv/templates/components/classic/entry.tex.j2 +++ b/rendercv/templates/components/classic/entry.tex.j2 @@ -1,21 +1,20 @@ ((* from "components/classic/highlights.tex.j2" import highlights as print_higlights with context *)) -((* from "components/classic/date_and_location_strings.tex.j2" import date_and_location_strings as print_date_and_locations *)) +((* from "components/classic/date_and_location_strings.tex.j2" import date_and_location_strings as print_date_and_locations with context *)) ((* macro education(study_type, institution, area, highlights, date_and_location_strings)*)) ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# width: \textwidth #)) ((# preamble: first column, second column, third column #)) ((# first column: p{0.55cm}; constant width, ragged left column #)) - ((# second column: X; variable width, ragged left column #)) + ((# second column: K{<>}; variable width, ragged left column #)) ((# third column: R{<>}; constant widthm ragged right column #)) -\begin{tabularx}{\textwidth}{p{0.55cm} X R{<>}} +\begin{tabularx}{\textwidth}{p{0.55cm} K{<>} R{<>}} \textbf{<>} & \textbf{<>}, <> - - <> + <> & - <> + <> \end{tabularx} ((* endmacro *)) @@ -23,9 +22,9 @@ ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# width: \textwidth #)) ((# preamble: first column, second column #)) - ((# first column:: X; variable width, ragged left column #)) + ((# first column:: K{<>}; variable width, ragged left column #)) ((# second column: R{<>}; constant width ragged right column #)) -\begin{tabularx}{\textwidth}{X R{<>}} +\begin{tabularx}{\textwidth}{K{<>} R{<>}} \textbf{<>}, <> <> & @@ -37,9 +36,9 @@ ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# width: \textwidth #)) ((# preamble: first column, second column #)) - ((# first column:: X; variable width, ragged left column #)) + ((# first column:: K{<>}; variable width, ragged left column #)) ((# second column: R{<>}; constant width ragged right column #)) -\begin{tabularx}{\textwidth}{X R{<>}} +\begin{tabularx}{\textwidth}{K{<>} R{<>}} ((* if markdown_url is not none *)) ((* if link_text is not none *)) ((* set markdown_url = "["+link_text+"]("+ markdown_url|markdown_url_to_url +")" *)) @@ -57,12 +56,8 @@ ((* endmacro *)) ((* macro one_line(name, details, markdown_url=none, link_text=none)*)) -((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) - ((# width: \textwidth #)) - ((# preamble: first column, second column #)) - ((# first column:: X; variable width, ragged left column #)) - ((# second column: R{<>}; constant width ragged right column #)) \setlength{\leftskip}{0.2cm} + ((* if markdown_url is not none *)) ((* if link_text is not none *)) ((* set markdown_url = "["+link_text+"]("+ markdown_url|markdown_url_to_url +")" *)) @@ -73,5 +68,6 @@ ((* else *)) \textbf{<>:} <
> ((* endif *)) + \setlength{\leftskip}{0cm} ((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/components/classic/header.tex.j2 b/rendercv/templates/components/classic/header.tex.j2 index e0542db..5db7c86 100644 --- a/rendercv/templates/components/classic/header.tex.j2 +++ b/rendercv/templates/components/classic/header.tex.j2 @@ -6,7 +6,7 @@ \normalsize ((* for connection in connections *)) - <> + <> ((* if not loop.last *)) \hspace{0.5cm} ((* endif *)) diff --git a/rendercv/templates/components/classic/highlights.tex.j2 b/rendercv/templates/components/classic/highlights.tex.j2 index 536a024..8e10897 100644 --- a/rendercv/templates/components/classic/highlights.tex.j2 +++ b/rendercv/templates/components/classic/highlights.tex.j2 @@ -1,5 +1,5 @@ ((* macro highlights(highlights) *)) -\vspace{<>} +\vspace*{<>} \begin{highlights} ((* for item in highlights *)) \item <> diff --git a/rendercv/templates/components/classic/section_contents.tex.j2 b/rendercv/templates/components/classic/section_contents.tex.j2 index f1aea28..92c083d 100644 --- a/rendercv/templates/components/classic/section_contents.tex.j2 +++ b/rendercv/templates/components/classic/section_contents.tex.j2 @@ -1,13 +1,13 @@ ((* import "components/classic/entry.tex.j2" as entry with context *)) -((* macro section_contents(data, entry_type, link_text=none, disableTimeSpan=True)*)) - ((* for value in data *)) +((* macro section_contents(entries, entry_type, link_text=none, disableTimeSpan=True)*)) + ((* for value in entries *)) ((* if disableTimeSpan *)) ((* set date_and_location_strings = value.date_and_location_strings_without_time_span *)) ((* else *)) ((* set date_and_location_strings = value.date_and_location_strings *)) ((* endif *)) - ((* if entry_type == "education" *)) + ((* if entry_type == "EducationEntry" *)) <> - ((* elif entry_type == "experience" *)) + ((* elif entry_type == "ExperienceEntry" *)) <> - ((* elif entry_type == "normal" *)) + ((* elif entry_type == "NormalEntry" *)) <> - ((* elif entry_type == "one_line" *)) + ((* elif entry_type == "OneLineEntry" *)) <> ((* endif *)) ((* if not loop.last *)) - \vspace*{<>} + \vspace*{<>} ((* endif *)) ((* endfor *))