diff --git a/rendercv/themes/sb2nov/Header.j2.tex b/rendercv/themes/sb2nov/Header.j2.tex index 5df8505b..7dcabfa0 100644 --- a/rendercv/themes/sb2nov/Header.j2.tex +++ b/rendercv/themes/sb2nov/Header.j2.tex @@ -1,22 +1,26 @@ -\begin{center} +{ + \centering \textbf{\fontsize{<>}{<>}\scshape <>} \\ \vspace{3pt} \small + \vspace{<>} + + \begin{spacing}{1.6} ((* if cv.phone *)) \mbox{\href{<>}{{\footnotesize\faPhone*}\hspace{4pt}<>}} - \hspace{<>} + \hspace{<>} ((* endif *)) ((* if cv.email *)) \mbox{\href{mailto:<>}{{\small\faEnvelope[regular]}\hspace{4pt}<>}} - \hspace{<>} + \hspace{<>} ((* endif *)) ((* if cv.location *)) \mbox{{\small\faMapMarker*}\hspace{4pt}<>} - \hspace{<>} + \hspace{<>} ((* endif *)) ((* if cv.website *)) \mbox{\href{<>}{{\small\faLink}\hspace{4pt}<>}} - \hspace{<>} + \hspace{<>} ((* endif *)) ((* set icon_dictionary = { @@ -30,13 +34,17 @@ ((* for network in cv.social_networks *)) ((* if network.network in icon_dictionary *)) \mbox{\href{<>}{{\small<>}\hspace{4pt}<>}} - \hspace{<>} + \hspace*{<>} ((* endif *)) ((* endfor *)) ((* endif *)) -\end{center} + \end{spacing} + \par +} + +\vspace{<>} % save the original href command in a new command: \let\hrefWithoutArrow\href - % new command for external links: -\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\color{<>}\mbox{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}} \ No newline at end of file +% new command for external links: +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\color{primaryColor}\mbox{\ifthenelse{\equal{#2}{}}{}{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} \ No newline at end of file diff --git a/rendercv/themes/sb2nov/OneLineEntry.j2.tex b/rendercv/themes/sb2nov/OneLineEntry.j2.tex index 3117c9f9..e7d40242 100644 --- a/rendercv/themes/sb2nov/OneLineEntry.j2.tex +++ b/rendercv/themes/sb2nov/OneLineEntry.j2.tex @@ -1,2 +1,5 @@ +((* if is_first_entry *)) +\vspace{0.08cm} +((* endif *)) \resumeSubItem{<>} {<>} \ No newline at end of file diff --git a/rendercv/themes/sb2nov/Preamble.j2.tex b/rendercv/themes/sb2nov/Preamble.j2.tex index e7f4b38f..f544191f 100644 --- a/rendercv/themes/sb2nov/Preamble.j2.tex +++ b/rendercv/themes/sb2nov/Preamble.j2.tex @@ -8,26 +8,27 @@ \usepackage[ ignoreheadfoot, % set margins without considering header and footer - top=<>, % seperation between body and page edge from the top - bottom=<>, % seperation between body and page edge from the bottom - left=<>, % seperation between body and page edge from the left - right=<>, % seperation between body and page edge from the right + top=<>, % seperation between body and page edge from the top + bottom=<>, % seperation between body and page edge from the bottom + left=<>, % seperation between body and page edge from the left + right=<>, % seperation between body and page edge from the right + footskip=<>, % seperation between body and footer % showframe % for debugging ]{geometry} % for adjusting page geometry \usepackage{latexsym} -\usepackage[empty]{fullpage} \usepackage{titlesec} \usepackage{marvosym} -\usepackage[usenames,dvipsnames]{color} \usepackage{verbatim} +\usepackage{setspace} +\usepackage{xcolor} \usepackage{enumitem} \usepackage[hidelinks]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tabularx} \usepackage{ifthen} -\usepackage{enumitem} \usepackage{fontawesome5} +\usepackage{calc} % for calculating lengths \input{glyphtounicode} \pagestyle{fancy} @@ -36,68 +37,71 @@ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} -% Adjust margins -\addtolength{\oddsidemargin}{-0.5in} -\addtolength{\evensidemargin}{-0.5in} -\addtolength{\textwidth}{1in} -\addtolength{\topmargin}{-.5in} -\addtolength{\textheight}{1.0in} +\definecolor{primaryColor}{RGB}{<>} % define primary color \urlstyle{same} -\raggedbottom -\raggedright +\setcounter{secnumdepth}{0} % no section numbering +\setlength{\parindent}{0pt} % no indentation +\setlength{\topskip}{0pt} % no top skip + +% \raggedbottom +% \raggedright \setlength{\tabcolsep}{0in} % Sections formatting \titleformat{\section}{ - \vspace{-4pt}\scshape\raggedright\large -}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}] + \scshape\raggedright\large +}{}{0em}{}[\color{black}\titlerule] % Ensure that generate pdf is machine readable/ATS parsable \pdfgentounicode=1 -\setlist{rightmargin=5pt} +\setlist{rightmargin=<>} \newcolumntype{R}[1]{ >{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1} } % right-aligned fixed width column type +\titlespacing{\section}{ + % left space: + 0pt + }{ + % top space: + <> - 0.1cm + }{ + % bottom space: + <> + } % section title spacing + %------------------------- % Custom commands \newcommand{\resumeItem}[2]{ \item\small{ - \ifthenelse{\equal{#1}{}}{#2 \vspace{-2pt}}{\textbf{#1}{: #2 \vspace{-2pt}}} + \ifthenelse{\equal{#1}{}}{#2}{\textbf{#1}{: #2}} } } -% Just in case someone needs a heading that does not need to be in a list \newcommand{\resumeSubheading}[4]{ - \vspace{-1pt}\item - \begin{tabularx}{0.97\textwidth}[t]{X R{<>}} + \item + \begin{tabularx}{0.98\textwidth-<>}[t]{X R{<>}} \textbf{#1} & \textit{\small\ifthenelse{\equal{#2}{}}{#4}{#2}} \\ \textit{\small#3} & \textit{\small\ifthenelse{\equal{#2}{}}{}{#4}} \\ - \end{tabularx}\vspace{-5pt} + \end{tabularx} } \newcommand{\resumeNormalSubheading}[2]{ - \vspace{-1pt}\item - \begin{tabularx}{0.97\textwidth}[t]{X R{<>}} + \item + \begin{tabularx}{0.97\textwidth-<>}[t]{X R{<>}} \textbf{#1} & \textit{\small #2} - \end{tabularx}\vspace{-5pt} + \end{tabularx} } -\newcommand{\resumeSubSubheading}[2]{ - \begin{tabularx}{0.97\textwidth}{l@{\extracolsep{\fill}}r} - \textit{\small#1} & \textit{\small #2} \\ - \end{tabularx}\vspace{-5pt} -} - -\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}\vspace{-4pt}} +\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}} \renewcommand{\labelitemii}{$\circ$} -\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=*]} +\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[left=<>, topsep=0pt, parsep=<>, partopsep=0pt]} \newcommand{\resumeSubHeadingListEnd}{\end{itemize}} -\newcommand{\resumeItemListStart}{\begin{itemize}} -\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}} +\newcommand{\resumeItemListStart}{\vspace{<>}\begin{itemize}[left=<>, topsep=-<>, itemsep=<>, partopsep=0pt]} +\newcommand{\resumeItemListEnd}{\end{itemize}}