summaryrefslogtreecommitdiff
path: root/resumeconfig.sty
blob: 7103514b33cde7d070dbb0616460c7dda6adda91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{resumeconfig}[2022/10/02 resume configurations]

\RequirePackage[useregional]{datetime2}
\DTMlangsetup{abbr, showdayofmonth=false, monthyearsep={\space}}

\newcommand*{\numdash}{\texorpdfstring{\,--\,}{--}}
% A range of dates.
% Syntax: \daterange{yyyy1}{mm1}{dd1}{yyyy2}{mm2}{dd2}
\newcommand*{\Daterange}[6]{%
  \textsc{\small%
    \DTMdisplaydate{#1}{#2}{#3}{-1}\numdash\DTMdisplaydate{#4}{#5}{#6}{-1}%
  }
}

\newcommand*{\Displaydate}[3]{\textsc{\small\DTMdisplaydate{#1}{#2}{#3}{-1}}}

\newcommand{\GPA}[2][4.0]{\textbf{GPA}: \ensuremath{#2 / #1}}