From c13781d2be6cee5334de2da70ad7aa43a4e1e7e6 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 3 Sep 2023 19:37:37 +0200 Subject: [PATCH] create components for the template --- .../classic/components/connections.tex.j2 | 7 ++++++ .../components/dates_and_locations.tex.j2 | 9 ++++++++ .../classic/components/education.tex.j2 | 22 +++++++++++++++++++ .../classic/components/experience.tex.j2 | 19 ++++++++++++++++ .../classic/components/header.tex.j2 | 15 +++++++++++++ .../classic/components/highlights.tex.j2 | 8 +++++++ .../components/one_line_information.tex.j2 | 7 ++++++ .../classic/components/project.tex.j2 | 19 ++++++++++++++++ 8 files changed, 106 insertions(+) create mode 100644 rendercv/templates/classic/components/connections.tex.j2 create mode 100644 rendercv/templates/classic/components/dates_and_locations.tex.j2 create mode 100644 rendercv/templates/classic/components/experience.tex.j2 create mode 100644 rendercv/templates/classic/components/header.tex.j2 create mode 100644 rendercv/templates/classic/components/highlights.tex.j2 create mode 100644 rendercv/templates/classic/components/one_line_information.tex.j2 create mode 100644 rendercv/templates/classic/components/project.tex.j2 diff --git a/rendercv/templates/classic/components/connections.tex.j2 b/rendercv/templates/classic/components/connections.tex.j2 new file mode 100644 index 0000000..a3588de --- /dev/null +++ b/rendercv/templates/classic/components/connections.tex.j2 @@ -0,0 +1,7 @@ +((* macro LinkedIn(username) *))\href{https://www.linkedin.com/in/<>}{\faLinkedin\hspace{0.13cm}<>}((* endmacro *)) +((* macro GitHub(username) *))\href{https://www.github.com/<>}{\faGithub\hspace{0.13cm}<>}((* endmacro *)) +((* macro Instagram(username) *))\href{https://www.instagram.com/<>}{\faInstagram\hspace{0.13cm}<>}((* endmacro *)) +((* macro phone(number) *))\faPhone\hspace{0.13cm}#2 \hspace{0.5cm}((* endmacro *)) +((* macro email(email) *))\href{mailto:<>}{\faEnvelopeO\hspace{0.13cm}<>} \hspace{0.5cm}((* endmacro *)) +((* macro website(url) *))\href{<>}{\faLaptop\hspace{0.13cm}url} \hspace{0.5cm}((* endmacro *)) + diff --git a/rendercv/templates/classic/components/dates_and_locations.tex.j2 b/rendercv/templates/classic/components/dates_and_locations.tex.j2 new file mode 100644 index 0000000..9158773 --- /dev/null +++ b/rendercv/templates/classic/components/dates_and_locations.tex.j2 @@ -0,0 +1,9 @@ +((* macro dates_and_locations(dates_and_locations) *)) +((* for item in dates_and_locations *)) + ((* if loop.last *)) +<> + ((* else *)) +<>\newline + ((* endif *)) +((* endfor *)) +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/education.tex.j2 b/rendercv/templates/classic/components/education.tex.j2 index e69de29..b8aee60 100644 --- a/rendercv/templates/classic/components/education.tex.j2 +++ b/rendercv/templates/classic/components/education.tex.j2 @@ -0,0 +1,22 @@ +((* from "components/highlights.tex.j2" import highlights as print_higlights *)) +((* from "components/dates_and_locations.tex.j2" import dates_and_locations as print_date_and_locations *)) + +((* macro education(study_type, institution, area, highlights, dates_and_locations)*)) +((# \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 #)) + ((# third column: R{\DateandLocationWidth}; constant widthm ragged right column #)) +\begin{tabularx}{\textwidth}{p{0.55cm} X R{\DateandLocationWidth}} + \textbf{<>} + & + \textbf{<>}, <> + + <> + & + <> +\end{tabularx} + +\vspace{\YMarginBetweenEntries} +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/experience.tex.j2 b/rendercv/templates/classic/components/experience.tex.j2 new file mode 100644 index 0000000..7611bb4 --- /dev/null +++ b/rendercv/templates/classic/components/experience.tex.j2 @@ -0,0 +1,19 @@ +((* from "components/highlights.tex.j2" import highlights as print_higlights *)) +((* from "components/dates_and_locations.tex.j2" import dates_and_locations as print_date_and_locations *)) + +((* macro experience(company, position, highlights, dates_and_locations)*)) +((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) + ((# width: \textwidth #)) + ((# preamble: first column, second column #)) + ((# first column:: X; variable width, ragged left column #)) + ((# second column: R{\DateandLocationWidth}; constant width ragged right column #)) +\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}} + \textbf{<>}, <> + + <> + & + <> +\end{tabularx} + +\vspace{\YMarginBetweenEntries} +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/header.tex.j2 b/rendercv/templates/classic/components/header.tex.j2 new file mode 100644 index 0000000..c595791 --- /dev/null +++ b/rendercv/templates/classic/components/header.tex.j2 @@ -0,0 +1,15 @@ +((* import "components/connections.tex.j2" as print_connections *)) + + +((* macro header(name, connections) *)) +\begin{header} + \Huge + \textbf{<>} + + \normalsize +((* for connection in connections *)) + <> +((* endfor *)) + +\end{header} +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/highlights.tex.j2 b/rendercv/templates/classic/components/highlights.tex.j2 new file mode 100644 index 0000000..71c9b57 --- /dev/null +++ b/rendercv/templates/classic/components/highlights.tex.j2 @@ -0,0 +1,8 @@ +((* macro highlights(highlights) *)) +\vspace{\YMarginBetweenEntryAndHighlights} +\begin{highlights} +((* for item in highlights *)) + \item <> +((* endfor *)) +\end{highlights} +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/one_line_information.tex.j2 b/rendercv/templates/classic/components/one_line_information.tex.j2 new file mode 100644 index 0000000..e4bc7d6 --- /dev/null +++ b/rendercv/templates/classic/components/one_line_information.tex.j2 @@ -0,0 +1,7 @@ +((* macro one_line_information(name, details)*)) +\setlength{\leftskip}{0.2cm} +\textbf{<>:} <
> + +\vspace{\YMarginBetweenEntries} +\setlength{\leftskip}{0cm} +((* endmacro *)) \ No newline at end of file diff --git a/rendercv/templates/classic/components/project.tex.j2 b/rendercv/templates/classic/components/project.tex.j2 new file mode 100644 index 0000000..e14f0e8 --- /dev/null +++ b/rendercv/templates/classic/components/project.tex.j2 @@ -0,0 +1,19 @@ +((* from "components/highlights.tex.j2" import highlights as print_higlights *)) +((* from "components/dates_and_locations.tex.j2" import dates_and_locations as print_date_and_locations *)) + +((* macro project(name, highlights, datesAndLocations)*)) +((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) + ((# width: \textwidth #)) + ((# preamble: first column, second column #)) + ((# first column:: X; variable width, ragged left column #)) + ((# second column: R{\DateandLocationWidth}; constant width ragged right column #)) +\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}} + \textbf{<>} + + <> + & + <> +\end{tabularx} + +\vspace{\YMarginBetweenEntries} +((* endmacro *)) \ No newline at end of file