create components for the template

This commit is contained in:
Sina Atalay 2023-09-03 19:37:37 +02:00
parent 70da19dc9b
commit c13781d2be
8 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,7 @@
((* macro LinkedIn(username) *))\href{https://www.linkedin.com/in/<<username>>}{\faLinkedin\hspace{0.13cm}<<username>>}((* endmacro *))
((* macro GitHub(username) *))\href{https://www.github.com/<<username>>}{\faGithub\hspace{0.13cm}<<username>>}((* endmacro *))
((* macro Instagram(username) *))\href{https://www.instagram.com/<<username>>}{\faInstagram\hspace{0.13cm}<<username>>}((* endmacro *))
((* macro phone(number) *))\faPhone\hspace{0.13cm}#2 \hspace{0.5cm}((* endmacro *))
((* macro email(email) *))\href{mailto:<<email>>}{\faEnvelopeO\hspace{0.13cm}<<email>>} \hspace{0.5cm}((* endmacro *))
((* macro website(url) *))\href{<<url>>}{\faLaptop\hspace{0.13cm}url} \hspace{0.5cm}((* endmacro *))

View File

@ -0,0 +1,9 @@
((* macro dates_and_locations(dates_and_locations) *))
((* for item in dates_and_locations *))
((* if loop.last *))
<<item>>
((* else *))
<<item>>\newline
((* endif *))
((* endfor *))
((* endmacro *))

View File

@ -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{<<study_type>>}
&
\textbf{<<institution>>}, <<area>>
<<print_higlights(highlights)|indent(4)>>
&
<<print_date_and_locations(dates_and_locations)|indent(4)>>
\end{tabularx}
\vspace{\YMarginBetweenEntries}
((* endmacro *))

View File

@ -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{<<company>>}, <<position>>
<<print_higlights(highlights)|indent(4)>>
&
<<print_date_and_locations(dates_and_locations)|indent(4)>>
\end{tabularx}
\vspace{\YMarginBetweenEntries}
((* endmacro *))

View File

@ -0,0 +1,15 @@
((* import "components/connections.tex.j2" as print_connections *))
((* macro header(name, connections) *))
\begin{header}
\Huge
\textbf{<<name>>}
\normalsize
((* for connection in connections *))
<<print_connections[connection.name](connection.value)>>
((* endfor *))
\end{header}
((* endmacro *))

View File

@ -0,0 +1,8 @@
((* macro highlights(highlights) *))
\vspace{\YMarginBetweenEntryAndHighlights}
\begin{highlights}
((* for item in highlights *))
\item <<item>>
((* endfor *))
\end{highlights}
((* endmacro *))

View File

@ -0,0 +1,7 @@
((* macro one_line_information(name, details)*))
\setlength{\leftskip}{0.2cm}
\textbf{<<name>>:} <<details>>
\vspace{\YMarginBetweenEntries}
\setlength{\leftskip}{0cm}
((* endmacro *))

View File

@ -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{<<name>>}
<<print_higlights(highlights)|indent(4)>>
&
<<print_date_and_locations(dates_and_locations)|indent(4)>>
\end{tabularx}
\vspace{\YMarginBetweenEntries}
((* endmacro *))