summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2025-02-01 10:20:37 -0500
committerBenji Dial <benji@benjidial.net>2025-02-01 10:20:37 -0500
commit313165cb47c64cdb0ee4206c2173daebc7d34b1f (patch)
tree54d3fb211675fd4596015f10aae2343b93b8bf7e
parentac4559cba75f38f287f2b7017a4fb6d24d06192d (diff)
downloadlatex-classes-313165cb47c64cdb0ee4206c2173daebc7d34b1f.tar.gz
add juneau class for homeworks
-rw-r--r--juneau.cls51
1 files changed, 51 insertions, 0 deletions
diff --git a/juneau.cls b/juneau.cls
new file mode 100644
index 0000000..8a1ac88
--- /dev/null
+++ b/juneau.cls
@@ -0,0 +1,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.}}}