summaryrefslogtreecommitdiff
path: root/resumeconfig.sty
blob: 0531d8b9da83459a9870cce97b4141452b806b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\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}}}