update template folder structure

This commit is contained in:
Sina Atalay 2023-10-14 18:31:43 +02:00
parent ec530c9eb1
commit 58835d553a
7 changed files with 25 additions and 13 deletions

View File

@ -1,8 +1,8 @@
((# IMPORT MACROS #)) ((# IMPORT MACROS #))
((* from "components/classic/section_contents.tex.j2" import section_contents with context *)) ((* from "components/section_contents.tex.j2" import section_contents with context *))
((* from "components/classic/header.tex.j2" import header with context *)) ((* from "components/header.tex.j2" import header with context *))
\documentclass[<<design.font_size>>, a4paper]{article} \documentclass[<<design.font_size>>, <<design.page_size>>]{article}
% Packages: % Packages:
\usepackage[ \usepackage[
@ -117,10 +117,21 @@
((* endif *)) ((* endif *))
<<header(name=cv.name, connections=cv.connections)|indent(4)>> <<header(name=cv.name, connections=cv.connections)|indent(4)>>
((* if cv.summary is not none *))
\section{Summary}
\setlength{\leftskip}{<<theme_options.margins.entry_area.left>>}
\setlength{\rightskip}{<<theme_options.margins.entry_area.right>>}
<<cv.summary>>
\setlength{\leftskip}{0cm}
\setlength{\rightskip}{0cm}
((* endif *))
((* for section in cv.sections *)) ((* for section in cv.sections *))
\section{<<section.title>>} \section{<<section.title>>}
<<section_contents(entries=section.entries, entry_type=section.entry_type)|indent(4)>> <<section_contents(title=section.title, entries=section.entries, entry_type=section.entry_type, link_text=section.link_text)|indent(4)>>
((* endfor *)) ((* endfor *))
\end{document} \end{document}

View File

@ -1,5 +1,5 @@
((* from "components/classic/highlights.tex.j2" import highlights as print_higlights with context *)) ((* from "components/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 with context *)) ((* from "components/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)*)) ((* macro education(study_type, institution, area, highlights, date_and_location_strings)*))
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))

View File

@ -1,4 +1,4 @@
((* import "components/classic/header_connections.tex.j2" as print_connections *)) ((* import "components/header_connections.tex.j2" as print_connections *))
((* macro header(name, connections) *)) ((* macro header(name, connections) *))
\begin{header} \begin{header}
\Huge \Huge

View File

@ -1,8 +1,12 @@
((* import "components/classic/entry.tex.j2" as entry with context *)) ((* import "components/entry.tex.j2" as entry with context *))
((* macro section_contents(entries, entry_type, link_text=none)*)) ((* macro section_contents(title, entries, entry_type, link_text=none)*))
((* for value in entries *)) ((* for value in entries *))
((* set date_and_location_strings = value.date_and_location_strings_without_timespan *)) ((* if title in theme_options.show_timespan_in *))
((* set date_and_location_strings = value.date_and_location_strings_with_timespan *))
((* else *))
((* set date_and_location_strings = value.date_and_location_strings_without_timespan *))
((* endif *))
((* if entry_type == "EducationEntry" *)) ((* if entry_type == "EducationEntry" *))
<<entry["education"]( <<entry["education"](
study_type=value.study_type, study_type=value.study_type,
@ -12,9 +16,6 @@
date_and_location_strings=date_and_location_strings date_and_location_strings=date_and_location_strings
)|indent(4)>> )|indent(4)>>
((* elif entry_type == "ExperienceEntry" *)) ((* elif entry_type == "ExperienceEntry" *))
((* if theme_options.show_timespan_in_experience_entries *))
((* set date_and_location_strings = value.date_and_location_strings_with_timespan *))
((* endif *))
<<entry["experience"]( <<entry["experience"](
company=value.company, company=value.company,
position=value.position, position=value.position,