add mcdowell theme

This commit is contained in:
Sina Atalay 2024-02-10 22:57:10 +01:00
parent f3a81b2ad1
commit 2e3acc8f23
13 changed files with 163 additions and 0 deletions

View File

@ -0,0 +1,8 @@
\begin{cvsubsection}{<<entry.location>>}{<<entry.institution>>}{<<entry.date_string>>}
\begin{itemize}
\item <<entry.degree>> in <<entry.area>>
((* for item in entry.highlights *))
\item <<item>>
((* endfor *))
\end{itemize}
\end{cvsubsection}

View File

@ -0,0 +1,11 @@
\begin{cvsubsection}{<<entry.position>>}{<<entry.company>>}{<<entry.date_string>>}
((* for item in entry.highlights *))
((* if loop.first *))
\begin{itemize}
((* endif *))
\item <<item>>
((* if loop.last *))
\end{itemize}
((* endif *))
((* endfor *))
\end{cvsubsection}

View File

@ -0,0 +1 @@
\makeheader

View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Daniil Belyakov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,11 @@
\begin{cvpublicationsubsection}[1]{<<entry.name>>}{}{<<entry.date_string>>}
((* for item in entry.highlights *))
((* if loop.first *))
\begin{itemize}
((* endif *))
\item <<item>>
((* if loop.last *))
\end{itemize}
((* endif *))
((* endfor *))
\end{cvpublicationsubsection}

View File

@ -0,0 +1,3 @@
\begin{cvonelinesubsection}{}{}{}
\textbullet\hspace{0.1cm} \textbf{Instructor (2003 2005):} Taught two full-credit Computer Science courses; average ratings of 4.8 out of 5.0.
\end{cvonelinesubsection}

View File

@ -0,0 +1,44 @@
%% The MIT License (MIT)
%%
%% Copyright (c) 2015 Daniil Belyakov
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
%% in the Software without restriction, including without limitation the rights
%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
%% copies of the Software, and to permit persons to whom the Software is
%% furnished to do so, subject to the following conditions:
%%
%% The above copyright notice and this permission notice shall be included in all
%% copies or substantial portions of the Software.
%%
%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
%% SOFTWARE.
% The font could be set to Windows-specific Calibri by using the 'calibri' option
\documentclass[]{mcdowellcv}
% For mathematical symbols
\usepackage{amsmath}
% For links
\usepackage[colorlinks]{hyperref}
\usepackage{xcolor}
% for icons
\usepackage{fontawesome5}
% save the original href command in a new command:
\let\hrefWithoutArrow\href
% new command for external links:
\renewcommand{\href}[2]{\textnormal{\hrefWithoutArrow{#1}{\color{blue}\mbox{#2 \raisebox{.15ex}{\scriptsize \faExternalLink*}}}}}
% Set applicant's personal data for header
\name{<<cv.name>>}
\address{<<cv.location>>}
\contacts{((* if cv.phone *))<<cv.phone|replace("tel:", "")|replace("-"," ")>> \linebreak((* endif *)) <<cv.email>>}

View File

@ -0,0 +1,3 @@
\begin{cvpublicationsubsection}[2]{<<entry.title>> (\href{<<entry.doi_url>>}{<<entry.doi>>})}{}{<<entry.date_string>>}
<<entry.authors|map("abbreviate_name")|map("make_it_nolinebreak")|join(", ")|make_it_bold(cv.name|abbreviate_name)|make_it_italic(cv.name|abbreviate_name)>>
\end{cvpublicationsubsection}

View File

@ -0,0 +1 @@
\begin{cvsection}{<<section_title>>}

View File

@ -0,0 +1 @@
\end{cvsection}

View File

@ -0,0 +1,15 @@
((* if not is_first_entry *))
\vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *))
{
((* if design.text_alignment == "left-aligned" *))
\raggedright
((* endif *))
\setlength{\leftskip}{<<design.margins.entry_area.left_and_right>>}
\setlength{\rightskip}{<<design.margins.entry_area.left_and_right>>}
<<entry>>
\setlength{\leftskip}{0cm}
\setlength{\rightskip}{0cm}
}

View File

@ -0,0 +1,16 @@
from typing import Literal, Annotated
import pydantic
LaTeXDimension = Annotated[
str,
pydantic.Field(
pattern=r"\d+\.?\d* *(cm|in|pt|mm|ex|em)",
),
]
class McdowellThemeOptions(pydantic.BaseModel):
""" """
theme: Literal["mcdowell"]

View File

@ -245,6 +245,33 @@ Ligatures={TeX, NoCommon, NoDiscretionary}]{\mainfontface}
\vspace*{\aftersubsectionspace}
}
\newenvironment{cvpublicationsubsection}[4][2]{
\notblank{#2}{\toggletrue{lefttitledefined}}{}
\notblank{#3}{\toggletrue{centertitledefined}}{}
\notblank{#4}{\toggletrue{righttitledefined}}{}
\ifboolexpr{togl {lefttitledefined} or togl {centertitledefined} or togl {righttitledefined}}{
\begin{tabu} to 1\textwidth { X[3.5,p] X[r,p] }
\textbf{#2} & \textbf{#4} \\
\end{tabu}
% Add space according to the specidied number of lines
\ifnumcomp{#1}{=}{1}{\vspace*{\aftersinglelinesubsectionheaderspace}}{
\ifnumcomp{#1}{=}{2}{\vspace*{\afterdoublelinesubsectionheaderspace}}{
\vspace*{\aftermultilinesubsectionheaderspace}
}
}
}{
\vspace*{\afteremptysubsectionheaderspace}
}
\togglefalse{lefttitledefined}
\togglefalse{centertitledefined}
\togglefalse{righttitledefined}
\begin{adjustwidth}{\subsectionmargin}{\subsectionmargin}
}
{
\end{adjustwidth}
\vspace*{\aftersubsectionspace}
}
\newenvironment{cvonelinesubsection}[4][1]{
\notblank{#2}{\toggletrue{lefttitledefined}}{}
\notblank{#3}{\toggletrue{centertitledefined}}{}