diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-09-15 22:08:41 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-09-15 22:08:41 +0200 |
| commit | 27f65d4799b0d1abdb7d983511d8cbf6b886800d (patch) | |
| tree | 3eafd82cede6fcedc4b8a8b85c11d561fe25bdcd | |
| parent | c234aa390d67a7e217b2eaed45879fa5e7f5b991 (diff) | |
add custom class
| -rw-r--r-- | cv.cls | 60 |
1 files changed, 60 insertions, 0 deletions
@@ -0,0 +1,60 @@ +\LoadClass{article} +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{cv}[Sept 2023 custom cv class] +\RequirePackage{titlesec} +\RequirePackage{tabularx} +\RequirePackage{pgffor} +\RequirePackage{pbox} +\RequirePackage{geometry} + +% lengths and orientation +\setlength{\parindent}{0ex} % Remove indent +\setlength{\parskip}{0ex} +\geometry{letterpaper, portrait, margin=1in} + +\titleformat{\section} +{\Large\scshape\raggedright} +{}{0em} +{} +[\titlerule] + +\titlespacing*{\section}{0pt}{1.6ex}{2.5ex} + +\titleformat{\subsection} +{\large\bfseries\raggedright} +{}{0em} +{} + +\newcommand{\contact}[5]{ + #1\newline + #2\newline + #3\newline + \href{mailto:#4}{#4}\newline + \href{https://#5}{#5} +} + +\newcommand{\experience}[5]{ + #1 #2, #3, #4, + \begin{itemize} + #5 + \end{itemize} +} + +\newcommand{\talk}[4]{ + \textit{#1}. #2, #3, #4. +} + +% Command to produce a paper: +% #1 (optional) joint authors +% #2 title +% #3 status - in preparation, submitted, accepted by..., to appear in..., etc. +% #4 Anything else, e.g. links +\newcommand{\paper}[4][\@nil]{% + \def\tmp{#1}% + + \ifx\tmp\@nnil + \textbf{#2}. #3. #4 + \else + \textbf{#2} (joint with #1). #3. #4 + \fi +} |
