change templates' folder structure

This commit is contained in:
Sina Atalay 2023-09-12 19:41:09 +02:00
parent 1dab52d229
commit fc366a7fd0
7 changed files with 170 additions and 170 deletions

View File

@ -1,6 +1,6 @@
((# IMPORT MACROS #)) ((# IMPORT MACROS #))
((* from "components/section_contents.tex.j2" import section_contents with context *)) ((* from "components/classic/section_contents.tex.j2" import section_contents with context *))
((* from "components/header.tex.j2" import header with context *)) ((* from "components/classic/header.tex.j2" import header with context *))
\documentclass[10pt, a4paper]{memoir} \documentclass[10pt, a4paper]{memoir}
@ -105,13 +105,13 @@
<<section_contents(data = cv.academic_projects, entry_type="normal")|indent(4)>> <<section_contents(data = cv.academic_projects, entry_type="normal")|indent(4)>>
\section{Certificates} \section{Certificates}
<<section_contents(data = cv.certificates, entry_type="normal", text_url="View the certificate")|indent(4)>> <<section_contents(data = cv.certificates, entry_type="normal", link_text="view the certificate")|indent(4)>>
\section{Skills} \section{Skills}
<<section_contents(data = cv.skills, entry_type="one_line")|indent(4)>> <<section_contents(data = cv.skills, entry_type="one_line")|indent(4)>>
\section{Test Scores} \section{Test Scores}
<<section_contents(data = cv.test_scores, entry_type="one_line", text_url="View the score report")|indent(4)>> <<section_contents(data = cv.test_scores, entry_type="one_line", link_text="view the score report")|indent(4)>>
\section{Personal Projects} \section{Personal Projects}
<<section_contents(data = cv.personal_projects, entry_type="normal")|indent(4)>> <<section_contents(data = cv.personal_projects, entry_type="normal")|indent(4)>>

View File

@ -1,5 +1,5 @@
((* from "components/highlights.tex.j2" import highlights as print_higlights with context *)) ((* from "components/classic/highlights.tex.j2" import highlights as print_higlights with context *))
((* from "components/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 *))
((* 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⟩} #))
@ -33,7 +33,7 @@
\end{tabularx} \end{tabularx}
((* endmacro *)) ((* endmacro *))
((* macro normal(name, highlights, date_and_location_strings, markdown_url=none, text_url=none)*)) ((* macro normal(name, highlights, date_and_location_strings, markdown_url=none, link_text=none)*))
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
((# width: \textwidth #)) ((# width: \textwidth #))
((# preamble: first column, second column #)) ((# preamble: first column, second column #))
@ -41,8 +41,8 @@
((# second column: R{<<design.date_and_location_width>>}; constant width ragged right column #)) ((# second column: R{<<design.date_and_location_width>>}; constant width ragged right column #))
\begin{tabularx}{\textwidth}{X R{<<design.date_and_location_width>>}} \begin{tabularx}{\textwidth}{X R{<<design.date_and_location_width>>}}
((* if markdown_url is not none *)) ((* if markdown_url is not none *))
((* if text_url is not none *)) ((* if link_text is not none *))
((* set markdown_url = "["+text_url+"]("+ markdown_url|markdown_url_to_url +")" *)) ((* set markdown_url = "["+link_text+"]("+ markdown_url|markdown_url_to_url +")" *))
\textbf{<<name>>}, <<markdown_url|markdown_to_latex>> \textbf{<<name>>}, <<markdown_url|markdown_to_latex>>
((* else *)) ((* else *))
\textbf{<<name>>}, <<markdown_url|markdown_to_latex>> \textbf{<<name>>}, <<markdown_url|markdown_to_latex>>
@ -56,7 +56,7 @@
\end{tabularx} \end{tabularx}
((* endmacro *)) ((* endmacro *))
((* macro one_line(name, details, markdown_url=none, text_url=none)*)) ((* macro one_line(name, details, markdown_url=none, link_text=none)*))
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #)) ((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
((# width: \textwidth #)) ((# width: \textwidth #))
((# preamble: first column, second column #)) ((# preamble: first column, second column #))
@ -64,8 +64,8 @@
((# second column: R{<<design.date_and_location_width>>}; constant width ragged right column #)) ((# second column: R{<<design.date_and_location_width>>}; constant width ragged right column #))
\setlength{\leftskip}{0.2cm} \setlength{\leftskip}{0.2cm}
((* if markdown_url is not none *)) ((* if markdown_url is not none *))
((* if text_url is not none *)) ((* if link_text is not none *))
((* set markdown_url = "["+text_url+"]("+ markdown_url|markdown_url_to_url +")" *)) ((* set markdown_url = "["+link_text+"]("+ markdown_url|markdown_url_to_url +")" *))
\textbf{<<name>>:} <<details>> (<<markdown_url|markdown_to_latex>>) \textbf{<<name>>:} <<details>> (<<markdown_url|markdown_to_latex>>)
((* else *)) ((* else *))
\textbf{<<name>>:} <<details>> (<<markdown_url|markdown_to_latex>>) \textbf{<<name>>:} <<details>> (<<markdown_url|markdown_to_latex>>)

View File

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

View File

@ -1,6 +1,6 @@
((* import "components/entry.tex.j2" as entry with context *)) ((* import "components/classic/entry.tex.j2" as entry with context *))
((* macro section_contents(data, entry_type, text_url=none, disableTimeSpan=True)*)) ((* macro section_contents(data, entry_type, link_text=none, disableTimeSpan=True)*))
((* for value in data *)) ((* for value in data *))
((* if disableTimeSpan *)) ((* if disableTimeSpan *))
((* set date_and_location_strings = value.date_and_location_strings_without_time_span *)) ((* set date_and_location_strings = value.date_and_location_strings_without_time_span *))
@ -28,14 +28,14 @@
highlights=value.highlight_strings, highlights=value.highlight_strings,
date_and_location_strings=date_and_location_strings, date_and_location_strings=date_and_location_strings,
markdown_url=value.markdown_url, markdown_url=value.markdown_url,
text_url=text_url, link_text=link_text,
)|indent(4)>> )|indent(4)>>
((* elif entry_type == "one_line" *)) ((* elif entry_type == "one_line" *))
<<entry["one_line"]( <<entry["one_line"](
name=value.name, name=value.name,
details=value.details, details=value.details,
markdown_url=value.markdown_url, markdown_url=value.markdown_url,
text_url=text_url, link_text=link_text,
)|indent(4)>> )|indent(4)>>
((* endif *)) ((* endif *))
((* if not loop.last *)) ((* if not loop.last *))