memoire-m2

My M2 Memoire on mapping class groups & their representations

Commit
a116b7ad2e3a23bb6a96e4387778553202cc2c29
Parent
1dc8cd931711d51d8d0831504b208f59a9bca7df
Author
Pablo <pablo-pie@riseup.net>
Date

Created a custom document class

Moved the styling code to the custom document class

Refactored the \maketitle command to print the license and the dedication too

Removed unnecessary biblatex settings

Removed the use of the imakeidx package

Removed unrelated text from the About section

Diffstat

6 files changed, 794 insertions, 200 deletions

Status File Name N° Changes Insertions Deletions
Modified cover.tex 24 1 23
Added memoire.cls 777 777 0
Modified memoire.tex 19 3 16
Modified preamble.tex 123 5 118
Modified sections/introduction.tex 3 0 3
Modified sections/preface.tex 48 8 40
diff --git a/cover.tex b/cover.tex
@@ -1,11 +1,5 @@
 % Taken from https://latexdraw.com/tikz-cover-pages-gallery/
 
-% Configure the PDF title and author
-\hypersetup{
-  pdftitle={\thetitle},
-  pdfauthor={\theauthor}
-}
-
 % The cover itself
 \thispagestyle{empty}
 \begin{tikzpicture}[remember picture,overlay]
@@ -52,7 +46,7 @@
   %%%%%%%%%%%%%%%%%%%% Author Name %%%%%%%%%%%%%%%%%%%%
   \node[left,highlight!5,minimum width=0.625*\paperwidth,minimum height=2cm, rounded corners] at ($(current page.north east)+(-.6,-11)$)
   {
-    {\Large \textsc{\theauthor}}
+    {\Large \textsc{Thiago Brevidelli Garcia}}
   };
 
   %%%%%%%%%%%%%%%%%%%% Year %%%%%%%%%%%%%%%%%%%%
@@ -65,19 +59,3 @@
 \null
 \thispagestyle{empty}
 \clearpage
-
-% Title page
-\clearpage
-\null
-\thispagestyle{empty}
-\vspace*{\stretch{1}} % Some space at the top
-\begin{center}        % Centralize text
-\huge                 % Make the text larger
-{\bfseries\thetitle}
-\par
-\LARGE                % Make the text not that large
-\theauthor
-\par
-\par                  % End the paragraph
-\end{center}
-\vspace{\stretch{3}}  % Space at bottom is three times that at the top
diff --git a/memoire.cls b/memoire.cls
@@ -0,0 +1,777 @@
+%% This is file `memoire.cls',
+%%
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%    https://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008 or later.
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{memoire}[2024/06/13 LaTeX document class]
+
+\newcommand\@ptsize{}
+\newif\if@restonecol
+\newif\if@titlepage
+\@titlepagetrue
+\newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
+\if@compatibility\else
+  \DeclareOption{a4paper}
+     {\setlength\paperheight {297mm}%
+      \setlength\paperwidth  {210mm}}
+  \DeclareOption{a5paper}
+     {\setlength\paperheight {210mm}%
+      \setlength\paperwidth  {148mm}}
+  \DeclareOption{b5paper}
+     {\setlength\paperheight {250mm}%
+      \setlength\paperwidth  {176mm}}
+  \DeclareOption{letterpaper}
+     {\setlength\paperheight {11in}%
+      \setlength\paperwidth  {8.5in}}
+  \DeclareOption{legalpaper}
+     {\setlength\paperheight {14in}%
+      \setlength\paperwidth  {8.5in}}
+  \DeclareOption{executivepaper}
+     {\setlength\paperheight {10.5in}%
+      \setlength\paperwidth  {7.25in}}
+  \DeclareOption{landscape}
+     {\setlength\@tempdima   {\paperheight}%
+      \setlength\paperheight {\paperwidth}%
+      \setlength\paperwidth  {\@tempdima}}
+\fi
+\if@compatibility
+  \renewcommand\@ptsize{0}
+\else
+  \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
+\fi
+\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
+\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
+\if@compatibility\else
+  \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
+\fi
+\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\if@compatibility\else
+  \DeclareOption{final}{\setlength\overfullrule{0pt}}
+\fi
+\DeclareOption{titlepage}{\@titlepagetrue}
+\if@compatibility\else
+  \DeclareOption{notitlepage}{\@titlepagefalse}
+\fi
+\if@compatibility
+\@openrighttrue
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\if@compatibility\else
+  \DeclareOption{onecolumn}{\@twocolumnfalse}
+\fi
+\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{leqno}{\input{leqno.clo}}
+\DeclareOption{fleqn}{\input{fleqn.clo}}
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+    \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
+      \parsep \z@
+      }%
+    \renewcommand\newblock{\par}}%
+}
+\ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
+\ProcessOptions
+\input{bk1\@ptsize.clo}
+\setlength\lineskip{1\p@}
+\setlength\normallineskip{1\p@}
+\renewcommand\baselinestretch{}
+\setlength\parskip{0\p@ \@plus \p@}
+\@lowpenalty   51
+\@medpenalty  151
+\@highpenalty 301
+\setcounter{topnumber}{2}
+\renewcommand\topfraction{.7}
+\setcounter{bottomnumber}{1}
+\renewcommand\bottomfraction{.3}
+\setcounter{totalnumber}{3}
+\renewcommand\textfraction{.2}
+\renewcommand\floatpagefraction{.5}
+\setcounter{dbltopnumber}{2}
+\renewcommand\dbltopfraction{.7}
+\renewcommand\dblfloatpagefraction{.5}
+\if@twoside
+  \def\ps@headings{%
+      \let\@oddfoot\@empty\let\@evenfoot\@empty
+      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+      \let\@mkboth\markboth
+    \def\chaptermark##1{%
+      \markboth {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
+            \@chapapp\ \thechapter. \ %
+          \fi
+        \fi
+        ##1}}{}}%
+    \def\sectionmark##1{%
+      \markright {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\z@
+          \thesection. \ %
+        \fi
+        ##1}}}}
+\else
+  \def\ps@headings{%
+    \let\@oddfoot\@empty
+    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \let\@mkboth\markboth
+    \def\chaptermark##1{%
+      \markright {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
+            \@chapapp\ \thechapter. \ %
+          \fi
+        \fi
+        ##1}}}}
+\fi
+\def\ps@myheadings{%
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \let\@mkboth\@gobbletwo
+    \let\chaptermark\@gobble
+    \let\sectionmark\@gobble
+    }
+
+\newcommand*\chaptermark[1]{}
+\setcounter{secnumdepth}{2}
+\newcounter {part}
+\newcounter {chapter}
+\newcounter {section}[chapter]
+\newcounter {subsection}[section]
+\newcounter {subsubsection}[subsection]
+\newcounter {paragraph}[subsubsection]
+\newcounter {subparagraph}[paragraph]
+\renewcommand \thepart {\@Roman\c@part}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter.\@arabic\c@section}
+\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
+\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
+\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
+\newcommand\@chapapp{\chaptername}
+\newcommand\frontmatter{%
+    \cleardoublepage
+  \@mainmatterfalse
+  \pagenumbering{roman}}
+\newcommand\mainmatter{%
+    \cleardoublepage
+  \@mainmattertrue
+  \pagenumbering{arabic}}
+\newcommand\backmatter{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmatterfalse}
+\newcommand\part{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \thispagestyle{plain}%
+  \if@twocolumn
+    \onecolumn
+    \@tempswatrue
+  \else
+    \@tempswafalse
+  \fi
+  \null\vfil
+  \secdef\@part\@spart}
+
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+    {\centering
+     \interlinepenalty \@M
+     \normalfont
+     \ifnum \c@secnumdepth >-2\relax
+       \huge\bfseries \partname\nobreakspace\thepart
+       \par
+       \vskip 20\p@
+     \fi
+     \Huge \bfseries #2\par}%
+    \@endpart}
+\def\@spart#1{%
+    {\centering
+     \interlinepenalty \@M
+     \normalfont
+     \Huge \bfseries #1\par}%
+    \@endpart}
+\def\@endpart{\vfil\newpage
+              \if@twoside
+               \if@openright
+                \null
+                \thispagestyle{empty}%
+                \newpage
+               \fi
+              \fi
+              \if@tempswa
+                \twocolumn
+              \fi}
+\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
+                    \thispagestyle{plain}%
+                    \global\@topnum\z@
+                    \@afterindentfalse
+                    \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+                       \if@mainmatter
+                         \refstepcounter{chapter}%
+                         \typeout{\@chapapp\space\thechapter.}%
+                         \addcontentsline{toc}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                       \else
+                         \addcontentsline{toc}{chapter}{#1}%
+                       \fi
+                    \else
+                      \addcontentsline{toc}{chapter}{#1}%
+                    \fi
+                    \chaptermark{#1}%
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
+                    \if@twocolumn
+                      \@topnewpage[\@makechapterhead{#2}]%
+                    \else
+                      \@makechapterhead{#2}%
+                      \@afterheading
+                    \fi}
+\def\@makechapterhead#1{%
+  \vspace*{50\p@}%
+  {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+        \huge\bfseries \@chapapp\space \thechapter
+        \par\nobreak
+        \vskip 20\p@
+      \fi
+    \fi
+    \interlinepenalty\@M
+    \Huge \bfseries #1\par\nobreak
+    \vskip 40\p@
+  }}
+\def\@schapter#1{\if@twocolumn
+                   \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                   \@makeschapterhead{#1}%
+                   \@afterheading
+                 \fi}
+\def\@makeschapterhead#1{%
+  \vspace*{50\p@}%
+  {\parindent \z@ \raggedright
+    \normalfont
+    \interlinepenalty\@M
+    \Huge \bfseries  #1\par\nobreak
+    \vskip 40\p@
+  }}
+\newcommand\section{\@startsection {section}{1}{\z@}%
+                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
+                                   {2.3ex \@plus.2ex}%
+                                   {\normalfont\Large\bfseries}}
+\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
+                                     {1.5ex \@plus .2ex}%
+                                     {\normalfont\large\bfseries}}
+\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
+                                     {1.5ex \@plus .2ex}%
+                                     {\normalfont\normalsize\bfseries}}
+\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+                                    {3.25ex \@plus1ex \@minus.2ex}%
+                                    {-1em}%
+                                    {\normalfont\normalsize\bfseries}}
+\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+                                       {3.25ex \@plus1ex \@minus .2ex}%
+                                       {-1em}%
+                                      {\normalfont\normalsize\bfseries}}
+\if@twocolumn
+  \setlength\leftmargini  {2em}
+\else
+  \setlength\leftmargini  {2.5em}
+\fi
+\leftmargin  \leftmargini
+\setlength\leftmarginii  {2.2em}
+\setlength\leftmarginiii {1.87em}
+\setlength\leftmarginiv  {1.7em}
+\if@twocolumn
+  \setlength\leftmarginv  {.5em}
+  \setlength\leftmarginvi {.5em}
+\else
+  \setlength\leftmarginv  {1em}
+  \setlength\leftmarginvi {1em}
+\fi
+\setlength  \labelsep  {.5em}
+\setlength  \labelwidth{\leftmargini}
+\addtolength\labelwidth{-\labelsep}
+\@beginparpenalty -\@lowpenalty
+\@endparpenalty   -\@lowpenalty
+\@itempenalty     -\@lowpenalty
+\renewcommand\theenumi{\@arabic\c@enumi}
+\renewcommand\theenumii{\@alph\c@enumii}
+\renewcommand\theenumiii{\@roman\c@enumiii}
+\renewcommand\theenumiv{\@Alph\c@enumiv}
+\newcommand\labelenumi{\theenumi.}
+\newcommand\labelenumii{(\theenumii)}
+\newcommand\labelenumiii{\theenumiii.}
+\newcommand\labelenumiv{\theenumiv.}
+\renewcommand\p@enumii{\theenumi}
+\renewcommand\p@enumiii{\theenumi(\theenumii)}
+\renewcommand\p@enumiv{\p@enumiii\theenumiii}
+\newcommand\labelitemi  {\labelitemfont \textbullet}
+\newcommand\labelitemii {\labelitemfont \bfseries \textendash}
+\newcommand\labelitemiii{\labelitemfont \textasteriskcentered}
+\newcommand\labelitemiv {\labelitemfont \textperiodcentered}
+\newcommand\labelitemfont{\normalfont}
+\newenvironment{description}
+               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
+                        \let\makelabel\descriptionlabel}}
+               {\endlist}
+\newcommand*\descriptionlabel[1]{\hspace\labelsep
+                                \normalfont\bfseries #1}
+\newenvironment{verse}
+               {\let\\\@centercr
+                \list{}{\itemsep      \z@
+                        \itemindent   -1.5em%
+                        \listparindent\itemindent
+                        \rightmargin  \leftmargin
+                        \advance\leftmargin 1.5em}%
+                \item\relax}
+               {\endlist}
+\newenvironment{quotation}
+               {\list{}{\listparindent 1.5em%
+                        \itemindent    \listparindent
+                        \rightmargin   \leftmargin
+                        \parsep        \z@ \@plus\p@}%
+                \item\relax}
+               {\endlist}
+\newenvironment{quote}
+               {\list{}{\rightmargin\leftmargin}%
+                \item\relax}
+               {\endlist}
+\if@compatibility
+  \newenvironment{titlepage}
+    {%
+      \cleardoublepage
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+    }
+\else
+  \newenvironment{titlepage}
+    {%
+      \clearpage
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
+      \else
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
+    }
+\fi
+\newcommand\appendix{\par
+  \setcounter{chapter}{0}%
+  \setcounter{section}{0}%
+  \gdef\@chapapp{\appendixname}%
+  \gdef\thechapter{\@Alph\c@chapter}}
+\setlength\arraycolsep{5\p@}
+\setlength\tabcolsep{6\p@}
+\setlength\arrayrulewidth{.4\p@}
+\setlength\doublerulesep{2\p@}
+\setlength\tabbingsep{\labelsep}
+\skip\@mpfootins = \skip\footins
+\setlength\fboxsep{3\p@}
+\setlength\fboxrule{.4\p@}
+\@addtoreset {equation}{chapter}
+\renewcommand\theequation
+  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
+\newcounter{figure}[chapter]
+\renewcommand \thefigure
+     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\fnum@figure{\figurename\nobreakspace\thefigure}
+\newenvironment{figure}
+               {\@float{figure}}
+               {\end@float}
+\newenvironment{figure*}
+               {\@dblfloat{figure}}
+               {\end@dblfloat}
+\newcounter{table}[chapter]
+\renewcommand \thetable
+     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\fnum@table{\tablename\nobreakspace\thetable}
+\newenvironment{table}
+               {\@float{table}}
+               {\end@float}
+\newenvironment{table*}
+               {\@dblfloat{table}}
+               {\end@dblfloat}
+\newlength\abovecaptionskip
+\newlength\belowcaptionskip
+\setlength\abovecaptionskip{10\p@}
+\setlength\belowcaptionskip{0\p@}
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip
+  \sbox\@tempboxa{#1: #2}%
+  \ifdim \wd\@tempboxa >\hsize
+    #1: #2\par
+  \else
+    \global \@minipagefalse
+    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
+\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
+\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
+\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
+\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
+\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
+\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
+\newcommand\@pnumwidth{1.55em}
+\newcommand\@tocrmarg{2.55em}
+\newcommand\@dotsep{4.5}
+\setcounter{tocdepth}{2}
+\newcommand\tableofcontents{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\contentsname
+        \@mkboth{%
+           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+    \@starttoc{toc}%
+    \if@restonecol\twocolumn\fi
+    \thispagestyle{empty}
+    \newpage
+    \thispagestyle{empty}
+    \cleardoublepage
+    \thispagestyle{empty}
+    \setcounter{page}\z@
+    \pagenumbering{arabic}
+    }
+\newcommand*\l@part[2]{%
+  \ifnum \c@tocdepth >-2\relax
+    \addpenalty{-\@highpenalty}%
+    \addvspace{2.25em \@plus\p@}%
+    \setlength\@tempdima{3em}%
+    \begingroup
+      \parindent \z@ \rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      {\leavevmode
+       \large \bfseries #1\hfil
+       \hb@xt@\@pnumwidth{\hss #2%
+                          \kern-\p@\kern\p@}}\par
+       \nobreak
+         \global\@nobreaktrue
+         \everypar{\global\@nobreakfalse\everypar{}}%
+    \endgroup
+  \fi}
+\newcommand*\l@chapter[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 1.0em \@plus\p@
+    \setlength\@tempdima{1.5em}%
+    \begingroup
+      \parindent \z@ \rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode \bfseries
+      \advance\leftskip\@tempdima
+      \hskip -\leftskip
+      #1\nobreak\hfil
+      \nobreak\hb@xt@\@pnumwidth{\hss #2%
+                                 \kern-\p@\kern\p@}\par
+      \penalty\@highpenalty
+    \endgroup
+  \fi}
+\newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
+\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
+\newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
+\newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
+\newcommand\listoffigures{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listfigurename}%
+      \@mkboth{\MakeUppercase\listfigurename}%
+              {\MakeUppercase\listfigurename}%
+    \@starttoc{lof}%
+    \if@restonecol\twocolumn\fi
+    }
+\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand\listoftables{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listtablename}%
+      \@mkboth{%
+          \MakeUppercase\listtablename}%
+         {\MakeUppercase\listtablename}%
+    \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
+    }
+\let\l@table\l@figure
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+\newenvironment{thebibliography}[1]
+     {\chapter*{\bibname}%
+      \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
+      \list{\@biblabel{\@arabic\c@enumiv}}%
+           {\settowidth\labelwidth{\@biblabel{#1}}%
+            \leftmargin\labelwidth
+            \advance\leftmargin\labelsep
+            \@openbib@code
+            \usecounter{enumiv}%
+            \let\p@enumiv\@empty
+            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy
+      \clubpenalty4000
+      \@clubpenalty \clubpenalty
+      \widowpenalty4000%
+      \sfcode`\.\@m}
+     {\def\@noitemerr
+       {\@latex@warning{Empty `thebibliography' environment}}%
+      \endlist}
+\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+\let\@openbib@code\@empty
+\newenvironment{theindex}
+               {\if@twocolumn
+                  \@restonecolfalse
+                \else
+                  \@restonecoltrue
+                \fi
+                \twocolumn[\@makeschapterhead{\indexname}]%
+                \@mkboth{\MakeUppercase\indexname}%
+                        {\MakeUppercase\indexname}%
+                \thispagestyle{plain}\parindent\z@
+                \parskip\z@ \@plus .3\p@\relax
+                \columnseprule \z@
+                \columnsep 35\p@
+                \let\item\@idxitem}
+               {\if@restonecol\onecolumn\else\clearpage\fi}
+\newcommand\@idxitem{\par\hangindent 40\p@}
+\newcommand\subitem{\@idxitem \hspace*{20\p@}}
+\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
+\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand\footnoterule{%
+  \kern-3\p@
+  \hrule\@width.4\columnwidth
+  \kern2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{%
+    \parindent 1em%
+    \noindent
+    \hb@xt@1.8em{\hss\@makefnmark}#1}
+\newcommand\contentsname{Contents}
+\newcommand\listfigurename{List of Figures}
+\newcommand\listtablename{List of Tables}
+\newcommand\bibname{Bibliography}
+\newcommand\indexname{Index}
+\newcommand\figurename{Figure}
+\newcommand\tablename{Table}
+\newcommand\partname{Part}
+\newcommand\chaptername{Chapter}
+\newcommand\appendixname{Appendix}
+\def\today{\ifcase\month\or
+  January\or February\or March\or April\or May\or June\or
+  July\or August\or September\or October\or November\or December\fi
+  \space\number\day, \number\year}
+\setlength\columnsep{10\p@}
+\setlength\columnseprule{0\p@}
+
+
+\if@twoside
+\else
+  \raggedbottom
+\fi
+\if@twocolumn
+  \twocolumn
+  \sloppy
+  \flushbottom
+\else
+  \onecolumn
+\fi
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% General imports
+\RequirePackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb}
+\RequirePackage{hyperref}
+
+% Configure page size and margins
+\RequirePackage[total={6in, 9in}]{geometry}
+
+% Configure colors
+\RequirePackage{xcolor}
+\definecolor{highlight}{RGB}{44, 76, 237}
+\definecolor{thmbackground}{RGB}{249, 249, 249}
+\definecolor{thmrule}{RGB}{230, 230, 230}
+\hypersetup{
+  colorlinks,
+  citecolor=black,
+  filecolor=black,
+  linkcolor=black,
+  urlcolor=highlight,
+}
+\RequirePackage[labelfont={color=highlight, bf}]{caption}
+
+% Configure fonts
+\RequirePackage[lf]{Baskervaldx}             % lining figures
+\RequirePackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
+\RequirePackage[cal=boondoxo]{mathalfa}      % mathcal from STIX, unslanted a bit
+\renewcommand*\oldstylenums[1]{\textosf{#1}}
+
+% Configure the enumerate environment to use bold roman numerals
+\RequirePackage{enumitem}
+\setenumerate[0]{label={\color{highlight}\normalfont \bfseries(\roman*)}}
+
+% Fancy footnotes
+\RequirePackage{footnote}
+
+% Configure page numbering
+\RequirePackage{fancyhdr}
+\fancypagestyle{momoire}{%
+    \fancyhead[EL]{%
+    \raisebox{0.5em}{\thepage}%
+    }
+    \fancyhead[ER]{%
+    \raisebox{0.5em}{\nouppercase{\leftmark}}%
+    }
+    \fancyhead[OL]{%
+    \raisebox{0.5em}{\S\nouppercase{\rightmark}}%
+    \vspace*{-0.5em}%
+    }
+    \fancyhead[OR]{%
+    \raisebox{0.5em}{\thepage}%
+    }
+    \fancyfoot{}
+}
+\pagestyle{momoire}
+\pagenumbering{arabic}
+
+% Macro for creating boxed theorem environments
+\RequirePackage{tcolorbox}
+\newcounter{theorem}[chapter]
+\renewcommand{\thetheorem}{\thechapter.\arabic{theorem}}
+\newcommand{\newboxedtheorem}[2]
+  {
+    \newtheorem{inner#1}[theorem]{#2}
+    \newenvironment{#1}[1][{}]
+      {
+        \savenotes
+        \begin{tcolorbox}[colback=thmbackground, colframe=thmrule]
+        \begin{inner#1}[##1]
+      }
+      {\end{inner#1}\end{tcolorbox}\spewnotes}
+  }
+
+% Colored theorem styles
+\newtheoremstyle{theorem}{}{}{\em}{}{\bf\color{highlight}}{.}{.5em}{}
+\newtheoremstyle{definition}{}{}{}{}{\bf\color{highlight}}{.}{.5em}{}
+\newtheoremstyle{remark}{}{}{}{}{\itshape\color{highlight}}{.}{.5em}{}
+
+% Configure the PDF title and author
+\hypersetup{
+  pdftitle={\@title},
+  pdfauthor={\@author}
+}
+
+% Redefine the \maketitle command
+% The command now prints the title, the license and the dedication
+\newcommand\dedication[1]{\def\@dedication{#1}}
+\renewcommand\maketitle{
+  \begin{titlepage}%
+    \null
+    \vspace*{\stretch{1}} % Some space at the top
+    \begin{center}        % Centralize text
+    \huge                 % Make the text larger
+    {\bfseries\@title}
+    \par
+    \bigskip
+    \LARGE                % Make the text not that large
+    \@author
+    \par
+    \par                  % End the paragraph
+    \end{center}
+    \vspace{\stretch{3}}  % Space at bottom is three times that at the top
+  \end{titlepage}%
+  \begin{titlepage}%
+    \vspace*{1cm} % Some space at the top
+    \begin{center}
+    This work is licensed under a \textbf{Creative Commons Attributions 4.0
+    International License}
+    \par
+    \vspace{1em}
+    \includegraphics[width=2cm]{images/by.eps}
+    \end{center}
+    \null\vfill
+    \begin{center}Last updated \today\end{center}
+  \end{titlepage}%
+  \ifdefined\@dedication
+  \begin{titlepage}%
+    \vspace*{\stretch{1}} % Some space at the top
+    \raggedleft
+    {\Large\itshape\@dedication}
+    \par
+    \vspace{\stretch{3}}  % Space at bottom is three times that at the top
+  \end{titlepage}%
+  \fi
+  \setcounter{footnote}{0}%
+  \setcounter{page}{1}%
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\@dedication\@empty
+  \global\let\title\relax
+  \global\let\dedication\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+}
+
+\endinput
+%%
+%% End of file `memoire.cls'.
diff --git a/memoire.tex b/memoire.tex
@@ -1,33 +1,21 @@
+\documentclass{memoire}
 \input{./preamble.tex}
 \addbibresource{references.bib}
 
 \title{Mapping Class Groups \\ \& \\ their Representations}
 \author{Thiago Brevidelli Garcia}
+\dedication{This master thesis is dedicated to my dear friend Lucas Schiezari. \\ May he rest in peace.}
 
 \begin{document}
 
 \input{cover}
 
-\printlicense
-
-\begin{dedication}
-  This master thesis is dedicated to my dear friend Lucas Schiezari. May he
-  rest in peace.
-\end{dedication}
-
-\pagenumbering{roman}
-\setcounter{page}{1}
+\maketitle
 
 \input{sections/preface}
 
 \tableofcontents
 
-\thispagestyle{empty}
-
-\newpage
-
-\thispagestyle{empty}
-
 \input{sections/introduction}
 
 \input{sections/twists}
@@ -37,6 +25,5 @@
 \input{sections/representations}
 
 \printbibliography
-\printindex
 \end{document}
 
diff --git a/preamble.tex b/preamble.tex
@@ -1,135 +1,27 @@
-\documentclass{book}
-\usepackage[total={6in, 9in}]{geometry}
-\usepackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb, dsfont}
 \usepackage{mathtools, adjustbox}
-\usepackage{enumitem, xfrac, xcolor, cancel, multicol, tabularx, relsize}
+\usepackage{xfrac, cancel, multicol, tabularx, relsize}
 \usepackage[normalem]{ulem}
-\usepackage{hyperref, refcount}
-\usepackage{fancyhdr, titling}
-\usepackage[labelfont={color=highlight, bf}]{caption}
-\usepackage[backend=biber, citetracker=true, citestyle=alphabetic, bibstyle=ieee-alphabetic, sorting=nty, sortcites=true]{biblatex}
+\usepackage[backend=biber, bibstyle=ieee]{biblatex}
 \usepackage{pgfplots, tikz, tikz-cd}
 \usepackage{graphicx, wrapfig}
-\usepackage{imakeidx}
-\usepackage{tcolorbox}
-\usepackage{footnote}
-
-% Set the default colors
-\definecolor{highlight}{RGB}{44, 76, 237}
-\definecolor{thmbackground}{RGB}{249, 249, 249}
-\definecolor{thmrule}{RGB}{230, 230, 230}
-
-% Configure fonts
-\usepackage[lf]{Baskervaldx}             % lining figures
-\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
-\usepackage[cal=boondoxo]{mathalfa}      % mathcal from STIX, unslanted a bit
-\renewcommand*\oldstylenums[1]{\textosf{#1}}
-\hypersetup{
-  colorlinks,
-  citecolor=black,
-  filecolor=black,
-  linkcolor=black,
-  urlcolor=highlight,
-}
 
 % Configure graphics
 \usetikzlibrary{calc, shadows.blur, shapes.geometric, patterns, arrows}
 \pgfplotsset{compat=1.16}
 
-% Initialize the imakeidx package
-\makeindex
-
-% Configure the enumerate environment to use bold roman numerals
-\setenumerate[0]{label={\color{highlight}\normalfont \bfseries(\roman*)}}
-
-% Macro for creating boxed theorem environments
-\newcounter{theorem}[chapter]
-\renewcommand{\thetheorem}{\thechapter.\arabic{theorem}}
-\newcommand{\newboxedtheorem}[2]
-  {
-    \newtheorem{inner#1}[theorem]{#2}
-    \newenvironment{#1}[1][{}]
-      {
-        \savenotes
-        \begin{tcolorbox}[colback=thmbackground, colframe=thmrule]
-        \begin{inner#1}[##1]
-      }
-      {\end{inner#1}\end{tcolorbox}\spewnotes}
-  }
-
-% Green theorem styles
-\newtheoremstyle{coloredtheorem}{}{}{\em}{}{\bf\color{highlight}}{.}{.5em}{}
-\newtheoremstyle{coloreddefinition}{}{}{}{}{\bf\color{highlight}}{.}{.5em}{}
-\newtheoremstyle{coloredremark}{}{}{}{}{\itshape\color{highlight}}{.}{.5em}{}
-
 % Useful theorem definitions
-\theoremstyle{coloredtheorem}
+\theoremstyle{theorem}
 \newboxedtheorem{theorem}{Theorem}
 \newboxedtheorem{lemma}{Lemma}
 \newboxedtheorem{corollary}{Corollary}
 \newboxedtheorem{proposition}{Proposition}
-\theoremstyle{coloreddefinition}
+\theoremstyle{definition}
 \newboxedtheorem{definition}{Definition}
 \newtheorem{example}[theorem]{Example}
 \newtheorem{fact}[theorem]{Fact}
-\theoremstyle{coloredremark}
+\theoremstyle{remark}
 \newtheorem*{note}{Remark}
 
-% Custom page style
-\fancypagestyle{custom}{%
-    \fancyhead[EL]{%
-    \raisebox{0.5em}{\thepage}%
-    }
-    \fancyhead[ER]{%
-    \raisebox{0.5em}{\nouppercase{\leftmark}}%
-    }
-    \fancyhead[OL]{%
-    \raisebox{0.5em}{\S\nouppercase{\rightmark}}%
-    \vspace*{-0.5em}%
-    }
-    \fancyhead[OR]{%
-    \raisebox{0.5em}{\thepage}%
-    }
-    \fancyfoot{}
-}
-\pagestyle{custom}
-
-% Dedication environment
-\newenvironment{dedication}
-  {\clearpage            % We want a new page
-   \thispagestyle{empty} % No header and footer
-   \vspace*{\stretch{1}} % Some space at the top
-   \begin{center}        % Centralize text
-   \huge                 % Make the text larger
-   \itshape              % The text is in italics
-   \raggedleft           % Flush to the right margin
-  }
-  {\par                  % End the paragraph
-   \end{center}
-   \vspace{\stretch{3}}  % Space at bottom is three times that at the top
-   \clearpage            % Finish off the page
-   \null
-   \thispagestyle{empty}
-   \clearpage            % Skip a page
-  }
-
-% Command to print licensing information
-\newcommand{\printlicense}
-  {\clearpage
-   \thispagestyle{empty}
-   \vspace*{1cm} % Some space at the top
-   \begin{center}
-   This work is licensed under a \textbf{Creative Commons Attributions 4.0
-   International License}
-   \par
-   \vspace{1em}
-   \includegraphics[width=2cm]{images/by.eps}
-   \end{center}
-   \null\vfill
-   \begin{center}Last updated \today\end{center}
-   \clearpage
-  }
-
 % Use \blacksquare for \qed
 \renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
 
@@ -189,8 +81,3 @@
 
 % A normal subobject in a pointed cathegory
 \newcommand{\normal}{\triangleleft}
-
-% Command for printing the number of pages between two labels
-\newcommand{\pagedifference}[2]{%
-  \number\numexpr\getpagerefnumber{#2}-\getpagerefnumber{#1}\relax}
-
diff --git a/sections/introduction.tex b/sections/introduction.tex
@@ -1,8 +1,5 @@
 \chapter{Introduction}
 
-\pagenumbering{arabic}
-\setcounter{page}{1}
-
 \begin{definition}
   The \emph{mapping class group \(\Mod(S)\) of an orientable surface \(S\)} is
   the group of isotopy classes of orientation-preserving homeomorphisms \(S
diff --git a/sections/preface.tex b/sections/preface.tex
@@ -1,53 +1,23 @@
-\chapter*{About These Notes}
+\chapter*{About}
 
 \thispagestyle{empty}
 
-These notes are perhaps better understood as a coming-of-age tale. They were
-originally part of some notes of mine on representations of Lie groups, written
-in early 2021 as part of my second scientific internship project with professor
-Iryna Kashuba of the department of mathematics of the Institute of Mathematics
-and Statistics of the University of São Paulo (IME-USP), Brazil. These were
-later adapted and expanded into my undergraduate dissertation, produced in late
-2022 under the supervision of professor Kashuba. In mid 2023, after the
-publication of my undergraduate dissertation, the notes were once again
-expanded with the addition of their final chapter. All in all, I have been
-working on the prose that follows for the better part of my early higher
-education.
-
-As they currently stand, the subject of these notes is a select topic in the
-representation theory of semisimple Lie algebras: Olivier Mathieu's
-classification of simple weight modules. Its first four chapters consist of a
-pretty standard account of the basic theory of semisimple Lie algebras and
-their finite-dimensional representations, providing a concise exposition of the
-background required for understanding the classification. On the other hand,
-the last two chapter of the notes should be understood as a reading guide for
-Mathieu's original paper \cite{mathieu}, with an emphasis on the intuition
-behind its major results.
+% TODO: Say this is my memoire
+% TODO: Explain we will dive into Korkmaz' paper
 
+% TODO: Say that we have no space for most proofs
 Throughout these notes we will follow some guiding principles. First, lengthy
 proofs are favored as opposed to collections of smaller lemmas. This is a
 deliberate effort to emphasize the relevant results. Secondly, and this is more
-important, we are primarily interested in the broad strokes of the theory
-highlighted in the following chapters. This is because the topic of the
-dissertation at hand is a profoundly technical one. In particular, certain
 proofs can sometimes feel like an unmotivated pile of technical arguments.
 Instead, we prefer to focus on the intuition behind the relevant results.
 
-Hence some results are left unproved. Nevertheless, we include numerous
-references throughout the text to other materials where the reader can find
-complete proofs. We will assume basic knowledge of abstract algebra. In
-particular, we assume that the reader is familiarized with multi-linear
-algebra, the theory of modules over an algebra and exact sequences. We also
-assume familiarity with the language of categories, functors and adjunctions.
-Understanding some examples in the introductory chapter requires basic
-knowledge of differential and algebraic geometry, as well as rings of
-differential operators, but these examples are not necessary to the
-comprehension of the notes as a whole. Additional topics will be covered in the
-notes as needed.
+% TODO: Say what you assume
 
 \section*{Acknowledgments}
 
-I would like to thank my family and my girlfriend for their tireless love and
+% TODO: Thank my girlfriend
+I would like to thank my family for their tireless love and
 support. I would also like to thank my dear friend Lucas Dias Schiezari for
 somehow convincing me to apply for a bachelors degree in pure mathematics, as
 well as the moments of joy we shared. May he rest in peace.
@@ -55,8 +25,7 @@ well as the moments of joy we shared. May he rest in peace.
 \section*{License}
 
 This document was typeset and compiled using free software. Its \LaTeX~source
-code is freely available at
-\url{https://git.pablopie.xyz/lie-algebras-and-their-representations}, for
+code is freely available at \url{https://git.pablopie.xyz/memoire-m2}, for
 distribution under the terms of the
 \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons
 Attribution 4.0 license}.
@@ -64,4 +33,3 @@ Attribution 4.0 license}.
 \newpage
 
 \thispagestyle{empty}
-