summaryrefslogtreecommitdiff
path: root/resumeconfig.sty
blob: 8753f57f9cdf287bc3be7b3d1d6e4b56685ae48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\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\ignorespaces\DTMdisplaydate{#4}{#5}{#6}{-1}%
  }
}
\newcommand*{\DatetoPresent}[3]{%
  \textsc{\small%
    \DTMdisplaydate{#1}{#2}{#3}{-1}\numdash{}Present%
  }
}

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

\newcommand{\Location}[1]{{\footnotesize #1}}

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

\newcommand{\Advisor}[1]{\textsc{Advisor(s): #1}}