summaryrefslogtreecommitdiff
path: root/juneau.cls
blob: 8a1ac88816f0ec78357f70bb0e2a4d528946689e (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% juneau.cls
%   https://git.benjidial.net/latex-classes
% Written by Benji Dial, 2025
% Released under CC0 1.0
%   https://creativecommons.org/publicdomain/zero/1.0/

\ProvidesClass{juneau}
\LoadClass{article}

\usepackage{amssymb}
\usepackage{geometry}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{unicode-math}
\usepackage{fancyhdr}
\usepackage{lastpage}

%\setmainfont{Libertinus Serif}
\setmainfont{EBGaramond}
\setmathfont{Libertinus Math}

\declaretheorem[style=definition]{question}
\declaretheorem[style=definition,numbered=no]{claim}
\declaretheorem[style=definition]{lemma}

\setlist[itemize]{itemsep=0pt,topsep=0pt}
\setlist[enumerate]{itemsep=0pt,topsep=0pt,label=\alph*)}
\setlist[enumerate,2]{label=\roman*)}

\newcommand{\theclass}{}
\newcommand{\theassignment}{}
\newcommand{\thename}{}
\newcommand{\thedate}{}

\newcommand{\setclass}[1]{\renewcommand{\theclass}{#1}}
\newcommand{\setassignment}[1]{\renewcommand{\theassignment}{#1}}
\newcommand{\setname}[1]{\renewcommand{\thename}{#1}}
\newcommand{\setdate}[1]{\renewcommand{\thedate}{#1}}

\AtBeginDocument{
  \fancyhead[L]{\theclass---\theassignment}
  \fancyhead[R]{\thename---\thedate}
  \fancyfoot[C]{\thepage{} of \pageref{LastPage}}
  \pagestyle{fancy}
}

\newcommand{\prto}{\overset{\text{pr}}{\to}}
\newcommand{\asto}{\overset{\text{a.s.}}{\to}}
\newcommand{\io}{\mathop{\text{i.o.}}}