From d15afa567bf1e0ae3a8ea07eb20b60b9a3fbd319 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 15 Feb 2024 18:10:54 +0100 Subject: [PATCH] remove mcdowell theme --- .../themes/mcdowell/EducationEntry.j2.tex | 8 - .../themes/mcdowell/ExperienceEntry.j2.tex | 11 - rendercv/themes/mcdowell/Header.j2.tex | 1 - rendercv/themes/mcdowell/LICENSE | 22 -- rendercv/themes/mcdowell/NormalEntry.j2.tex | 11 - rendercv/themes/mcdowell/OneLineEntry.j2.tex | 3 - rendercv/themes/mcdowell/Preamble.j2.tex | 44 --- .../themes/mcdowell/PublicationEntry.j2.tex | 3 - .../themes/mcdowell/SectionBeginning.j2.tex | 1 - rendercv/themes/mcdowell/SectionEnding.j2.tex | 1 - rendercv/themes/mcdowell/TextEntry.j2.tex | 15 - rendercv/themes/mcdowell/__init__.py | 18 -- rendercv/themes/mcdowell/mcdowellcv.cls | 301 ------------------ 13 files changed, 439 deletions(-) delete mode 100644 rendercv/themes/mcdowell/EducationEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/ExperienceEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/Header.j2.tex delete mode 100644 rendercv/themes/mcdowell/LICENSE delete mode 100644 rendercv/themes/mcdowell/NormalEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/OneLineEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/Preamble.j2.tex delete mode 100644 rendercv/themes/mcdowell/PublicationEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/SectionBeginning.j2.tex delete mode 100644 rendercv/themes/mcdowell/SectionEnding.j2.tex delete mode 100644 rendercv/themes/mcdowell/TextEntry.j2.tex delete mode 100644 rendercv/themes/mcdowell/__init__.py delete mode 100644 rendercv/themes/mcdowell/mcdowellcv.cls diff --git a/rendercv/themes/mcdowell/EducationEntry.j2.tex b/rendercv/themes/mcdowell/EducationEntry.j2.tex deleted file mode 100644 index 2d9c570..0000000 --- a/rendercv/themes/mcdowell/EducationEntry.j2.tex +++ /dev/null @@ -1,8 +0,0 @@ -\begin{cvsubsection}{<>}{<>}{<>} - \begin{itemize} - \item <> in <> -((* for item in entry.highlights *)) - \item <> -((* endfor *)) - \end{itemize} -\end{cvsubsection} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/ExperienceEntry.j2.tex b/rendercv/themes/mcdowell/ExperienceEntry.j2.tex deleted file mode 100644 index 6f518f9..0000000 --- a/rendercv/themes/mcdowell/ExperienceEntry.j2.tex +++ /dev/null @@ -1,11 +0,0 @@ -\begin{cvsubsection}{<>}{<>}{<>} -((* for item in entry.highlights *)) - ((* if loop.first *)) - \begin{itemize} - ((* endif *)) - \item <> - ((* if loop.last *)) - \end{itemize} - ((* endif *)) -((* endfor *)) -\end{cvsubsection} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/Header.j2.tex b/rendercv/themes/mcdowell/Header.j2.tex deleted file mode 100644 index fa1fd8c..0000000 --- a/rendercv/themes/mcdowell/Header.j2.tex +++ /dev/null @@ -1 +0,0 @@ -\makeheader \ No newline at end of file diff --git a/rendercv/themes/mcdowell/LICENSE b/rendercv/themes/mcdowell/LICENSE deleted file mode 100644 index 9d349e1..0000000 --- a/rendercv/themes/mcdowell/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -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. - diff --git a/rendercv/themes/mcdowell/NormalEntry.j2.tex b/rendercv/themes/mcdowell/NormalEntry.j2.tex deleted file mode 100644 index 274de1c..0000000 --- a/rendercv/themes/mcdowell/NormalEntry.j2.tex +++ /dev/null @@ -1,11 +0,0 @@ -\begin{cvpublicationsubsection}[1]{<>}{}{<>} -((* for item in entry.highlights *)) - ((* if loop.first *)) - \begin{itemize} - ((* endif *)) - \item <> - ((* if loop.last *)) - \end{itemize} - ((* endif *)) -((* endfor *)) -\end{cvpublicationsubsection} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/OneLineEntry.j2.tex b/rendercv/themes/mcdowell/OneLineEntry.j2.tex deleted file mode 100644 index 4473964..0000000 --- a/rendercv/themes/mcdowell/OneLineEntry.j2.tex +++ /dev/null @@ -1,3 +0,0 @@ -\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} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/Preamble.j2.tex b/rendercv/themes/mcdowell/Preamble.j2.tex deleted file mode 100644 index 8732335..0000000 --- a/rendercv/themes/mcdowell/Preamble.j2.tex +++ /dev/null @@ -1,44 +0,0 @@ -%% 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{<>} -\address{<>} -\contacts{((* if cv.phone *))<> \linebreak((* endif *)) <>} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/PublicationEntry.j2.tex b/rendercv/themes/mcdowell/PublicationEntry.j2.tex deleted file mode 100644 index 0834136..0000000 --- a/rendercv/themes/mcdowell/PublicationEntry.j2.tex +++ /dev/null @@ -1,3 +0,0 @@ -\begin{cvpublicationsubsection}[2]{<> (\href{<>}{<>})}{}{<>} -<> -\end{cvpublicationsubsection} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/SectionBeginning.j2.tex b/rendercv/themes/mcdowell/SectionBeginning.j2.tex deleted file mode 100644 index 2e73c79..0000000 --- a/rendercv/themes/mcdowell/SectionBeginning.j2.tex +++ /dev/null @@ -1 +0,0 @@ -\begin{cvsection}{<>} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/SectionEnding.j2.tex b/rendercv/themes/mcdowell/SectionEnding.j2.tex deleted file mode 100644 index f37fb4d..0000000 --- a/rendercv/themes/mcdowell/SectionEnding.j2.tex +++ /dev/null @@ -1 +0,0 @@ -\end{cvsection} \ No newline at end of file diff --git a/rendercv/themes/mcdowell/TextEntry.j2.tex b/rendercv/themes/mcdowell/TextEntry.j2.tex deleted file mode 100644 index 6f40ea9..0000000 --- a/rendercv/themes/mcdowell/TextEntry.j2.tex +++ /dev/null @@ -1,15 +0,0 @@ -((* if not is_first_entry *)) -\vspace{<>} -((* endif *)) -{ -((* if design.text_alignment == "left-aligned" *)) -\raggedright -((* endif *)) -\setlength{\leftskip}{<>} -\setlength{\rightskip}{<>} - -<> - -\setlength{\leftskip}{0cm} -\setlength{\rightskip}{0cm} -} diff --git a/rendercv/themes/mcdowell/__init__.py b/rendercv/themes/mcdowell/__init__.py deleted file mode 100644 index 8ada56c..0000000 --- a/rendercv/themes/mcdowell/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -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): - """ """ - - model_config = pydantic.ConfigDict(extra="forbid") - - theme: Literal["mcdowell"] diff --git a/rendercv/themes/mcdowell/mcdowellcv.cls b/rendercv/themes/mcdowell/mcdowellcv.cls deleted file mode 100644 index d8fb41d..0000000 --- a/rendercv/themes/mcdowell/mcdowellcv.cls +++ /dev/null @@ -1,301 +0,0 @@ -%% 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. - -\ProvidesClass{mcdowellcv}[2022/03/18 v1.2.0 McDowell CV class] - -% Set up the fonts according to options -\def\mainfontsize{11pt} -\def\mainfontface{Times New Roman} - -\DeclareOption{calibri}{% - \def\mainfontface{Calibri} -} - -% Set up papersize according to options, default to US letter -\def\papersize{letterpaper} -%Set up bool for adjusting vspacing later -\newif\ifpapersize - -\DeclareOption{a4paper}{% - \def\papersize{a4paper} - \papersizetrue -} - -\DeclareOption{letterpaper}{% - \def\papersize{letterpaper} - \papersizefalse -} -\ProcessOptions\relax - -% Set font size and paper type -\LoadClass[\papersize,\mainfontsize]{article} - -% Set document margins -\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} - -% Set font face -% \usepackage{fontspec} -% \setmainfont[SmallCapsFeatures={Renderer=Basic}, -% Ligatures={TeX, NoCommon, NoDiscretionary}]{\mainfontface} - -% Remove paragraph indentation -\usepackage[parfill]{parskip} - -% Required for boldface (\bf and \bfseries) tabular columns -\usepackage{array} - -% Required for ifthenelse statements -\usepackage{etoolbox} - -% Suppress page numbers -\pagestyle{empty} - -% Flexible tables -\usepackage{tabu} - -% For custom margins -\usepackage{changepage} - -% To customize lists -\usepackage{enumitem} -% Remove left margin from lists, suppress vertical item separation and set top -% separation to a negative value to suppress a single parskip before lists -\setlist{leftmargin=*, noitemsep, topsep=-1\parskip} - -% For adjusting spacing based on the platform used -\usepackage{ifthen} -\usepackage{ifplatform} - -% For spcaed small caps -\usepackage{microtype} - -\DeclareMicrotypeSet*{smallcapsi} { - encoding = {OT1,T1,T2A,LY1,OT4,QX,T5,TS1,EU1,EU2}, - shape = {sc*,si,scit} -} - -%-------------------------------------------------------------------------------- -% Constants - -%-------------------------------------------------------------------------------- - -\ifthenelse{\equal{\platformname}{\notwindowsname}}{ - \def\namespaceskip{0.575em} - \def\afterheaderspace{1.1pt} - \def\beforesectionheaderspace{5pt} - \def\sectionheadermargin{6pt} - \def\beforesectionheaderhrulespace{2.85pt} - \def\sectionheaderhrlueheight{0.518pt} - \def\aftersectionheaderspace{-5.8pt} - - \ifpapersize - \def\aftersinglelinesubsectionheaderspace{-5.75pt} - \else - \def\aftersinglelinesubsectionheaderspace{-20.25pt} - \fi - - \def\afterdoublelinesubsectionheaderspace{-11.75pt} - \def\aftermultilinesubsectionheaderspace{-7.75pt} - \def\afteremptysubsectionheaderspace{1.25pt} - \def\subsectionmargin{9pt} - \def\aftersubsectionspace{2.1pt} -}{ - \def\namespaceskip{0.4em} - \def\afterheaderspace{3pt} - \def\beforesectionheaderspace{4.75pt} - \def\sectionheadermargin{6pt} - \def\beforesectionheaderhrulespace{3pt} - \def\sectionheaderhrlueheight{0.5pt} - \def\aftersectionheaderspace{-4pt} - - \ifpapersize - \def\aftersinglelinesubsectionheaderspace{-4pt} - \else - \def\aftersinglelinesubsectionheaderspace{-18.5pt} - \fi - - \def\afterdoublelinesubsectionheaderspace{-10pt} - \def\aftermultilinesubsectionheaderspace{-6pt} - \def\afteremptysubsectionheaderspace{3pt} - \def\subsectionmargin{9pt} - \def\aftersubsectionspace{4pt} -} - -%-------------------------------------------------------------------------------- -% Header Setup and Printing - -%-------------------------------------------------------------------------------- - -% Address -\makeatletter - -\newcommand\address[1]{\def\@address{#1}} -\address{} - -\newcommand\printaddress{ - \small{\@address} -} - -\makeatother - -% Name -\makeatletter - -\newcommand\name[1]{\def\@name{#1}} -\name{} - -\newcommand\printname{ - \typeout {kokoko} - \typeout \spaceskip - \spaceskip \namespaceskip \relax - \textbf{\LARGE\textls[110]{\textsc{\@name}}} -} - -\makeatother - -% Contacts -\makeatletter - -\newcommand\contacts[1]{\def\@contacts{#1}} -\contacts{} - -\newcommand\printcontacts{ - \small{\@contacts} -} - -\makeatother - -\makeatletter -\newcommand\makeheader{ - \begin{center} - \begin{tabu} to 1\textwidth { X[l,m] X[2,c,m] X[r,m] } - \printaddress & \printname & \printcontacts \\ - \end{tabu} - \end{center} - \vspace*{\afterheaderspace} -} -\makeatother - -%-------------------------------------------------------------------------------- -% Sections and Subsections - -%-------------------------------------------------------------------------------- - -% Print a section header -\makeatletter -\newenvironment{cvsection}[1]{ - \vspace*{\beforesectionheaderspace} - % Set text margins to equal \tabcolsep (6pt by default) - \begin{adjustwidth}{\sectionheadermargin}{\sectionheadermargin} - \textsc{\textbf{#1}} - \end{adjustwidth} - \vspace*{\beforesectionheaderhrulespace} - \hrule height \sectionheaderhrlueheight - \vspace*{\aftersectionheaderspace} -}{} -\makeatother - -% Print a subsection -\makeatletter -% Define toggles checking if titles were defined -\newtoggle{lefttitledefined} -\newtoggle{centertitledefined} -\newtoggle{righttitledefined} - -\newenvironment{cvsubsection}[4][1]{ - \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[l,p] X[c,p] X[r,p] } - \textbf{#2} & \textbf{#3} & \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{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}}{} - \notblank{#4}{\toggletrue{righttitledefined}}{} - \ifboolexpr{togl {lefttitledefined} or togl {centertitledefined} or togl {righttitledefined}}{ - \begin{tabu} to 1\textwidth { X[l,p] X[c,p] X[r,p] } - \textbf{#2} & \textbf{#3} & \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*{-5pt} -} -\makeatother