From b55d6d724254c05ac0ea05c026154b8bd6e4cf1d Mon Sep 17 00:00:00 2001
From: Karl Hallsby <karl@hallsby.com>
Date: Sun, 2 Oct 2022 12:48:36 -0500
Subject: Use package to configure datetime2 for consistent range & font
 formatting

---
 resumeconfig.sty | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 resumeconfig.sty

(limited to 'resumeconfig.sty')

diff --git a/resumeconfig.sty b/resumeconfig.sty
new file mode 100644
index 0000000..0531d8b
--- /dev/null
+++ b/resumeconfig.sty
@@ -0,0 +1,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}}}
\ No newline at end of file
-- 
cgit v1.2.3

