engineeringresumes: finalize

This commit is contained in:
Sina Atalay 2024-04-08 00:29:17 +00:00 committed by GitHub
parent 43f938d1bb
commit bddcb5971a
7 changed files with 54 additions and 51 deletions

View File

@ -2,14 +2,8 @@
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))
((* if entry.date_string == "" *))
\begin{onecolentry}
((* else *))
\begin{twocolentry}{
<<entry.date_string>>
}
((* endif *))
\textbf{<<entry.institution>>}, ((* if entry.degree *))<<entry.degree>> in ((* endif *))<<entry.area>>((* if entry.location *)) -- <<entry.location>>((* endif *))
\textbf{<<entry.institution>>}, ((* if entry.degree *))<<entry.degree>> in ((* endif *))<<entry.area>>((* if entry.location *)) -- <<entry.location>>((* endif *)) \hfill <<entry.date_string>>
((* for item in entry.highlights *))
((* if loop.first *))
\begin{highlights}
@ -19,8 +13,4 @@
\end{highlights}
((* endif *))
((* endfor *))
((* if entry.date_string == "" *))
\end{onecolentry}
((* else *))
\end{twocolentry}
((* endif *))
\end{onecolentry}

View File

@ -2,14 +2,8 @@
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))
((* if entry.date_string == "" *))
\begin{onecolentry}
((* else *))
\begin{twocolentry}{
<<entry.date_string>>
}
((* endif *))
\textbf{<<entry.position>>}, <<entry.company>>((* if entry.location *)) -- <<entry.location>>((* endif *))
\textbf{<<entry.position>>}, <<entry.company>>((* if entry.location *)) -- <<entry.location>>((* endif *)) \hfill <<entry.date_string>>
((* for item in entry.highlights *))
((* if loop.first *))
\begin{highlights}
@ -19,8 +13,4 @@
\end{highlights}
((* endif *))
((* endfor *))
((* if entry.date_string == "" *))
\end{onecolentry}
((* else *))
\end{twocolentry}
((* endif *))
\end{onecolentry}

View File

@ -10,11 +10,11 @@
\normalsize
((* if cv.phone *))
\mbox{\hrefWithoutArrow{<<cv.phone|replace("-","")>>}{\color{black}{\footnotesize\faPhone*}\hspace*{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}}
\mbox{\href{<<cv.phone|replace("-","")>>}{\color{black}{\footnotesize\faPhone*}\hspace*{0.13cm}<<cv.phone|replace("tel:", "")|replace("-"," ")>>}}
\hspace*{<<design.margins.header.horizontal_between_connections>>}
((* endif *))
((* if cv.email *))
\mbox{\hrefWithoutArrow{mailto:<<cv.email>>}{\color{black}{\small\faEnvelope[regular]}\hspace*{0.13cm}<<cv.email|escape_latex_characters>>}}
\mbox{\href{mailto:<<cv.email>>}{\color{black}{\small\faEnvelope[regular]}\hspace*{0.13cm}<<cv.email|escape_latex_characters>>}}
\hspace*{<<design.margins.header.horizontal_between_connections>>}
((* endif *))
((* if cv.location *))
@ -22,7 +22,7 @@
\hspace*{<<design.margins.header.horizontal_between_connections>>}
((* endif *))
((* if cv.website *))
\mbox{\hrefWithoutArrow{<<cv.website>>}{\color{black}{\small\faLink}\hspace*{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}}
\mbox{\href{<<cv.website>>}{\color{black}{\small\faLink}\hspace*{0.13cm}<<cv.website|replace("https://","")|reverse|replace("/", "", 1)|reverse>>}}
\hspace*{<<design.margins.header.horizontal_between_connections>>}
((* endif *))
((*
@ -37,7 +37,7 @@
((* if cv.social_networks *))
((* for network in cv.social_networks *))
((* if network.network in icon_dictionary *))
\mbox{\hrefWithoutArrow{<<network.url>>}{\color{black}{\small<<icon_dictionary[network.network]>>}\hspace*{0.13cm}<<network.username>>}}
\mbox{\href{<<network.url>>}{\color{black}{\small<<icon_dictionary[network.network]>>}\hspace*{0.13cm}<<network.username>>}}
\hspace*{<<design.margins.header.horizontal_between_connections>>}
((* endif *))
((* endfor *))

View File

@ -2,14 +2,8 @@
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))
((* if entry.date_string == "" *))
\begin{onecolentry}
((* else *))
\begin{twocolentry}{
<<entry.date_string>>
}
((* endif *))
\textbf{<<entry.name>>}((* if entry.location *)) -- <<entry.location>>((* endif *))
\textbf{<<entry.name>>}((* if entry.location *)) -- <<entry.location>>((* endif *)) \hfill <<entry.date_string>>
((* for item in entry.highlights *))
((* if loop.first *))
\begin{highlights}
@ -19,8 +13,4 @@
\end{highlights}
((* endif *))
((* endfor *))
((* if entry.date_string == "" *))
\end{onecolentry}
((* else *))
\end{twocolentry}
((* endif *))

View File

@ -68,7 +68,7 @@
\titlespacing{\section}{
% left space:
0pt
-1pt
}{
% top space:
<<design.margins.section_title.top>>
@ -88,6 +88,8 @@
]
}{
\end{itemize}
\vspace{-0.20cm}
} % new environment for highlights
@ -104,7 +106,7 @@
\newenvironment{twocolentry}[2][]{
\onecolentry
\def\secondColumn{#2}
\setcolumnwidth{\fill, 4.2cm}
\setcolumnwidth{\fill, <<design.margins.entry_area.date_and_location_width>>}
\begin{paracol}{2}
}{
\switchcolumn \raggedleft \secondColumn
@ -115,7 +117,7 @@
\newenvironment{threecolentry}[3][]{
\onecolentry
\def\thirdColumn{#3}
\setcolumnwidth{1cm, \fill, 4.2cm}
\setcolumnwidth{<<design.margins.entry_area.education_degree_width>>, \fill, <<design.margins.entry_area.date_and_location_width>>}
\begin{paracol}{3}
\raggedright #2 \switchcolumn
}{
@ -141,7 +143,7 @@
}%
}%
% save the original href command in a new command:
\let\hrefWithoutArrow\href
% new command for external links:
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}
% % save the original href command in a new command:
% \let\hrefWithoutArrow\href
% % new command for external links:
% \renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{ }{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}}

View File

@ -2,10 +2,8 @@
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))
\begin{twocolentry}{
<<entry.date_string>>
}
\textbf{<<entry.title>>}
\begin{onecolentry}
\textbf{<<entry.title>>} \hfill <<entry.date_string>>
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
@ -23,4 +21,4 @@
((*- endif -*))
((*- if entry.doi and entry.journal *)))((* endif -*))
\end{twocolentry}
\end{onecolentry}

View File

@ -84,6 +84,39 @@ class EngineeringresumesThemeOptions(ThemeOptions):
" 25 pt."
),
)
color: pydantic_color.Color = pydantic.Field(
default="rgb(0,0,0)",
validate_default=True,
title="Primary Color",
description=(
"The primary color of the theme. \nThe color can be specified either with"
" their [name](https://www.w3.org/TR/SVG11/types.html#ColorKeywords),"
" hexadecimal value, RGB value, or HSL value. The default value is"
" rgb(0,0,0)."
),
examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"],
)
disable_page_numbering: bool = pydantic.Field(
default=True,
title="Disable Page Numbering",
description=(
"If this option is set to true, then the page numbering will be disabled."
" The default value is true."
),
)
show_last_updated_date: bool = pydantic.Field(
default=False,
title="Show Last Updated Date",
description=(
"If this option is set to true, then the last updated date will be shown"
" in the header. The default value is false."
),
)
text_alignment: Literal["left-aligned", "justified", "justified-with-no-hyphenation"] = pydantic.Field(
default="left-aligned",
title="Text Alignment",
description="The alignment of the text. The default value is left-aligned.",
)
margins: MarginsForEngineeringresumes = pydantic.Field(
default=MarginsForEngineeringresumes(),
title="Margins",