improve template components

This commit is contained in:
Sina Atalay 2023-09-06 21:16:14 +02:00
parent e81f1b800a
commit c7ddedca21
5 changed files with 10 additions and 9 deletions

View File

@ -26,7 +26,7 @@ if __name__ == "__main__":
template = environment.get_template(f"{templateName}.tex.j2")
input_file_path = os.path.join(workspace, "tests", "inputs", "test.json")
input_file_path = os.path.join(workspace, "tests", "inputs", "personal.json")
with open(input_file_path) as file:
raw_json = json.load(file)

View File

@ -9,7 +9,7 @@
((# second column: X; variable width, ragged left column #))
((# third column: R{<<design.date_and_location_width>>}; constant widthm ragged right column #))
\begin{tabularx}{\textwidth}{p{0.55cm} X R{<<design.date_and_location_width>>}}
\textbf{<<study_type>>}
\textbf{<<study_type if study_type is not none>>}
&
\textbf{<<institution>>}, <<area>>

View File

@ -7,6 +7,9 @@
\normalsize
((* for connection in connections *))
<<print_connections[connection.name](connection.value)>>
((* if not loop.last *))
\hspace{0.5cm}
((* endif *))
((* endfor *))
\end{header}

View File

@ -2,7 +2,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 *))
((* macro phone(number) *))\faPhone\hspace{0.13cm}<<number|replace("tel:", "")|replace("-"," ")>>((* endmacro *))
((* macro email(email) *))\href{mailto:<<email>>}{\faEnvelope[regular]\hspace{0.13cm}<<email>>}((* endmacro *))
((* macro website(url) *))\href{<<url>>}{\faLaptop\hspace{0.13cm}url}((* endmacro *))

View File

@ -23,13 +23,11 @@
"social_networks": [
{
"network": "LinkedIn",
"username": "sinaatalay",
"url": "https://www.linkedin.com/in/sinaatalay"
"username": "sinaatalay"
},
{
"network": "GitHub",
"username": "sinaatalay",
"url": "https://github.com/sinaatalay"
"username": "sinaatalay"
}
],
"education": [