memoire-m2

My M2 Memoire on mapping class groups & their representations

memoire.cls (24022B)

  1 %% This is file `memoire.cls',
  2 %%
  3 %% It may be distributed and/or modified under the
  4 %% conditions of the LaTeX Project Public License, either version 1.3c
  5 %% of this license or (at your option) any later version.
  6 %% The latest version of this license is in
  7 %%    https://www.latex-project.org/lppl.txt
  8 %% and version 1.3c or later is part of all distributions of LaTeX
  9 %% version 2008 or later.
 10 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 11 \ProvidesClass{memoire}[2024/06/13 LaTeX document class]
 12 
 13 \newcommand\@ptsize{}
 14 \newif\if@restonecol
 15 \newif\if@titlepage
 16 \@titlepagetrue
 17 \newif\if@openright
 18 \newif\if@mainmatter \@mainmattertrue
 19 \if@compatibility\else
 20   \DeclareOption{a4paper}
 21      {\setlength\paperheight {297mm}%
 22       \setlength\paperwidth  {210mm}}
 23   \DeclareOption{a5paper}
 24      {\setlength\paperheight {210mm}%
 25       \setlength\paperwidth  {148mm}}
 26   \DeclareOption{b5paper}
 27      {\setlength\paperheight {250mm}%
 28       \setlength\paperwidth  {176mm}}
 29   \DeclareOption{letterpaper}
 30      {\setlength\paperheight {11in}%
 31       \setlength\paperwidth  {8.5in}}
 32   \DeclareOption{legalpaper}
 33      {\setlength\paperheight {14in}%
 34       \setlength\paperwidth  {8.5in}}
 35   \DeclareOption{executivepaper}
 36      {\setlength\paperheight {10.5in}%
 37       \setlength\paperwidth  {7.25in}}
 38   \DeclareOption{landscape}
 39      {\setlength\@tempdima   {\paperheight}%
 40       \setlength\paperheight {\paperwidth}%
 41       \setlength\paperwidth  {\@tempdima}}
 42 \fi
 43 \if@compatibility
 44   \renewcommand\@ptsize{0}
 45 \else
 46   \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
 47 \fi
 48 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
 49 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
 50 \if@compatibility\else
 51   \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
 52 \fi
 53 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
 54 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
 55 \if@compatibility\else
 56   \DeclareOption{final}{\setlength\overfullrule{0pt}}
 57 \fi
 58 \DeclareOption{titlepage}{\@titlepagetrue}
 59 \if@compatibility\else
 60   \DeclareOption{notitlepage}{\@titlepagefalse}
 61 \fi
 62 \if@compatibility
 63 \@openrighttrue
 64 \else
 65 \DeclareOption{openright}{\@openrighttrue}
 66 \DeclareOption{openany}{\@openrightfalse}
 67 \fi
 68 \if@compatibility\else
 69   \DeclareOption{onecolumn}{\@twocolumnfalse}
 70 \fi
 71 \DeclareOption{twocolumn}{\@twocolumntrue}
 72 \DeclareOption{leqno}{\input{leqno.clo}}
 73 \DeclareOption{fleqn}{\input{fleqn.clo}}
 74 \DeclareOption{openbib}{%
 75   \AtEndOfPackage{%
 76     \renewcommand\@openbib@code{%
 77       \advance\leftmargin\bibindent
 78       \itemindent -\bibindent
 79       \listparindent \itemindent
 80       \parsep \z@
 81       }%
 82     \renewcommand\newblock{\par}}%
 83 }
 84 \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
 85 \ProcessOptions
 86 \input{bk1\@ptsize.clo}
 87 \setlength\lineskip{1\p@}
 88 \setlength\normallineskip{1\p@}
 89 \renewcommand\baselinestretch{}
 90 \setlength\parskip{0\p@ \@plus \p@}
 91 \@lowpenalty   51
 92 \@medpenalty  151
 93 \@highpenalty 301
 94 \setcounter{topnumber}{2}
 95 \renewcommand\topfraction{.7}
 96 \setcounter{bottomnumber}{1}
 97 \renewcommand\bottomfraction{.3}
 98 \setcounter{totalnumber}{3}
 99 \renewcommand\textfraction{.2}
100 \renewcommand\floatpagefraction{.5}
101 \setcounter{dbltopnumber}{2}
102 \renewcommand\dbltopfraction{.7}
103 \renewcommand\dblfloatpagefraction{.5}
104 \if@twoside
105   \def\ps@headings{%
106       \let\@oddfoot\@empty\let\@evenfoot\@empty
107       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
108       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
109       \let\@mkboth\markboth
110     \def\chaptermark##1{%
111       \markboth {\MakeUppercase{%
112         \ifnum \c@secnumdepth >\m@ne
113           \if@mainmatter
114             \@chapapp\ \thechapter. \ %
115           \fi
116         \fi
117         ##1}}{}}%
118     \def\sectionmark##1{%
119       \markright {\MakeUppercase{%
120         \ifnum \c@secnumdepth >\z@
121           \thesection. \ %
122         \fi
123         ##1}}}}
124 \else
125   \def\ps@headings{%
126     \let\@oddfoot\@empty
127     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
128     \let\@mkboth\markboth
129     \def\chaptermark##1{%
130       \markright {\MakeUppercase{%
131         \ifnum \c@secnumdepth >\m@ne
132           \if@mainmatter
133             \@chapapp\ \thechapter. \ %
134           \fi
135         \fi
136         ##1}}}}
137 \fi
138 \def\ps@myheadings{%
139     \let\@oddfoot\@empty\let\@evenfoot\@empty
140     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
141     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
142     \let\@mkboth\@gobbletwo
143     \let\chaptermark\@gobble
144     \let\sectionmark\@gobble
145     }
146 
147 \newcommand*\chaptermark[1]{}
148 \setcounter{secnumdepth}{2}
149 \newcounter {part}
150 \newcounter {chapter}
151 \newcounter {section}[chapter]
152 \newcounter {subsection}[section]
153 \newcounter {subsubsection}[subsection]
154 \newcounter {paragraph}[subsubsection]
155 \newcounter {subparagraph}[paragraph]
156 \renewcommand \thepart {\@Roman\c@part}
157 \renewcommand \thechapter {\@arabic\c@chapter}
158 \renewcommand \thesection {\thechapter.\@arabic\c@section}
159 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
160 \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
161 \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
162 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
163 \newcommand\@chapapp{\chaptername}
164 \newcommand\frontmatter{%
165     \cleardoublepage
166   \@mainmatterfalse
167   \pagenumbering{roman}}
168 \newcommand\mainmatter{%
169     \cleardoublepage
170   \@mainmattertrue
171   \pagenumbering{arabic}}
172 \newcommand\backmatter{%
173   \if@openright
174     \cleardoublepage
175   \else
176     \clearpage
177   \fi
178   \@mainmatterfalse}
179 \newcommand\part{%
180   \if@openright
181     \cleardoublepage
182   \else
183     \clearpage
184   \fi
185   \thispagestyle{plain}%
186   \if@twocolumn
187     \onecolumn
188     \@tempswatrue
189   \else
190     \@tempswafalse
191   \fi
192   \null\vfil
193   \secdef\@part\@spart}
194 
195 \def\@part[#1]#2{%
196     \ifnum \c@secnumdepth >-2\relax
197       \refstepcounter{part}%
198       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
199     \else
200       \addcontentsline{toc}{part}{#1}%
201     \fi
202     \markboth{}{}%
203     {\centering
204      \interlinepenalty \@M
205      \normalfont
206      \ifnum \c@secnumdepth >-2\relax
207        \huge\bfseries \partname\nobreakspace\thepart
208        \par
209        \vskip 20\p@
210      \fi
211      \Huge \bfseries #2\par}%
212     \@endpart}
213 \def\@spart#1{%
214     {\centering
215      \interlinepenalty \@M
216      \normalfont
217      \Huge \bfseries #1\par}%
218     \@endpart}
219 \def\@endpart{\vfil\newpage
220               \if@twoside
221                \if@openright
222                 \null
223                 \thispagestyle{empty}%
224                 \newpage
225                \fi
226               \fi
227               \if@tempswa
228                 \twocolumn
229               \fi}
230 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
231                     \thispagestyle{plain}%
232                     \global\@topnum\z@
233                     \@afterindentfalse
234                     \secdef\@chapter\@schapter}
235 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
236                        \if@mainmatter
237                          \refstepcounter{chapter}%
238                          \typeout{\@chapapp\space\thechapter.}%
239                          \addcontentsline{toc}{chapter}%
240                                    {\protect\numberline{\thechapter}#1}%
241                        \else
242                          \addcontentsline{toc}{chapter}{#1}%
243                        \fi
244                     \else
245                       \addcontentsline{toc}{chapter}{#1}%
246                     \fi
247                     \chaptermark{#1}%
248                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
249                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
250                     \if@twocolumn
251                       \@topnewpage[\@makechapterhead{#2}]%
252                     \else
253                       \@makechapterhead{#2}%
254                       \@afterheading
255                     \fi}
256 \def\@makechapterhead#1{%
257   \vspace*{50\p@}%
258   {\parindent \z@ \raggedright \normalfont
259     \ifnum \c@secnumdepth >\m@ne
260       \if@mainmatter
261         \huge\bfseries \@chapapp\space \thechapter
262         \par\nobreak
263         \vskip 20\p@
264       \fi
265     \fi
266     \interlinepenalty\@M
267     \Huge \bfseries #1\par\nobreak
268     \vskip 40\p@
269   }}
270 \def\@schapter#1{\if@twocolumn
271                    \@topnewpage[\@makeschapterhead{#1}]%
272                  \else
273                    \@makeschapterhead{#1}%
274                    \@afterheading
275                  \fi}
276 \def\@makeschapterhead#1{%
277   \vspace*{50\p@}%
278   {\parindent \z@ \raggedright
279     \normalfont
280     \interlinepenalty\@M
281     \Huge \bfseries  #1\par\nobreak
282     \vskip 40\p@
283   }}
284 \newcommand\section{\@startsection {section}{1}{\z@}%
285                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
286                                    {2.3ex \@plus.2ex}%
287                                    {\normalfont\Large\bfseries}}
288 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
289                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
290                                      {1.5ex \@plus .2ex}%
291                                      {\normalfont\large\bfseries}}
292 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
293                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
294                                      {1.5ex \@plus .2ex}%
295                                      {\normalfont\normalsize\bfseries}}
296 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
297                                     {3.25ex \@plus1ex \@minus.2ex}%
298                                     {-1em}%
299                                     {\normalfont\normalsize\bfseries}}
300 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
301                                        {3.25ex \@plus1ex \@minus .2ex}%
302                                        {-1em}%
303                                       {\normalfont\normalsize\bfseries}}
304 \if@twocolumn
305   \setlength\leftmargini  {2em}
306 \else
307   \setlength\leftmargini  {2.5em}
308 \fi
309 \leftmargin  \leftmargini
310 \setlength\leftmarginii  {2.2em}
311 \setlength\leftmarginiii {1.87em}
312 \setlength\leftmarginiv  {1.7em}
313 \if@twocolumn
314   \setlength\leftmarginv  {.5em}
315   \setlength\leftmarginvi {.5em}
316 \else
317   \setlength\leftmarginv  {1em}
318   \setlength\leftmarginvi {1em}
319 \fi
320 \setlength  \labelsep  {.5em}
321 \setlength  \labelwidth{\leftmargini}
322 \addtolength\labelwidth{-\labelsep}
323 \@beginparpenalty -\@lowpenalty
324 \@endparpenalty   -\@lowpenalty
325 \@itempenalty     -\@lowpenalty
326 \renewcommand\theenumi{\@arabic\c@enumi}
327 \renewcommand\theenumii{\@alph\c@enumii}
328 \renewcommand\theenumiii{\@roman\c@enumiii}
329 \renewcommand\theenumiv{\@Alph\c@enumiv}
330 \newcommand\labelenumi{\theenumi.}
331 \newcommand\labelenumii{(\theenumii)}
332 \newcommand\labelenumiii{\theenumiii.}
333 \newcommand\labelenumiv{\theenumiv.}
334 \renewcommand\p@enumii{\theenumi}
335 \renewcommand\p@enumiii{\theenumi(\theenumii)}
336 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
337 \newcommand\labelitemi  {\labelitemfont \textbullet}
338 \newcommand\labelitemii {\labelitemfont \bfseries \textendash}
339 \newcommand\labelitemiii{\labelitemfont \textasteriskcentered}
340 \newcommand\labelitemiv {\labelitemfont \textperiodcentered}
341 \newcommand\labelitemfont{\normalfont}
342 \newenvironment{description}
343                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
344                         \let\makelabel\descriptionlabel}}
345                {\endlist}
346 \newcommand*\descriptionlabel[1]{\hspace\labelsep
347                                 \normalfont\bfseries #1}
348 \newenvironment{verse}
349                {\let\\\@centercr
350                 \list{}{\itemsep      \z@
351                         \itemindent   -1.5em%
352                         \listparindent\itemindent
353                         \rightmargin  \leftmargin
354                         \advance\leftmargin 1.5em}%
355                 \item\relax}
356                {\endlist}
357 \newenvironment{quotation}
358                {\list{}{\listparindent 1.5em%
359                         \itemindent    \listparindent
360                         \rightmargin   \leftmargin
361                         \parsep        \z@ \@plus\p@}%
362                 \item\relax}
363                {\endlist}
364 \newenvironment{quote}
365                {\list{}{\rightmargin\leftmargin}%
366                 \item\relax}
367                {\endlist}
368 \if@compatibility
369   \newenvironment{titlepage}
370     {%
371       \cleardoublepage
372       \if@twocolumn
373         \@restonecoltrue\onecolumn
374       \else
375         \@restonecolfalse\newpage
376       \fi
377       \thispagestyle{empty}%
378       \setcounter{page}\z@
379     }%
380     {\if@restonecol\twocolumn \else \newpage \fi
381     }
382 \else
383   \newenvironment{titlepage}
384     {%
385       \clearpage
386       \if@twocolumn
387         \@restonecoltrue\onecolumn
388       \else
389         \@restonecolfalse\newpage
390       \fi
391       \thispagestyle{empty}%
392       \setcounter{page}\@ne
393     }%
394     {\if@restonecol\twocolumn \else \newpage \fi
395      \if@twoside\else
396         \setcounter{page}\@ne
397      \fi
398     }
399 \fi
400 \newcommand\appendix{\par
401   \setcounter{chapter}{0}%
402   \setcounter{section}{0}%
403   \gdef\@chapapp{\appendixname}%
404   \gdef\thechapter{\@Alph\c@chapter}}
405 \setlength\arraycolsep{5\p@}
406 \setlength\tabcolsep{6\p@}
407 \setlength\arrayrulewidth{.4\p@}
408 \setlength\doublerulesep{2\p@}
409 \setlength\tabbingsep{\labelsep}
410 \skip\@mpfootins = \skip\footins
411 \setlength\fboxsep{3\p@}
412 \setlength\fboxrule{.4\p@}
413 \@addtoreset {equation}{chapter}
414 \renewcommand\theequation
415   {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
416 \newcounter{figure}[chapter]
417 \renewcommand \thefigure
418      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
419 \def\fps@figure{tbp}
420 \def\ftype@figure{1}
421 \def\ext@figure{lof}
422 \def\fnum@figure{\figurename\nobreakspace\thefigure}
423 \newenvironment{figure}
424                {\@float{figure}}
425                {\end@float}
426 \newenvironment{figure*}
427                {\@dblfloat{figure}}
428                {\end@dblfloat}
429 \newcounter{table}[chapter]
430 \renewcommand \thetable
431      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
432 \def\fps@table{tbp}
433 \def\ftype@table{2}
434 \def\ext@table{lot}
435 \def\fnum@table{\tablename\nobreakspace\thetable}
436 \newenvironment{table}
437                {\@float{table}}
438                {\end@float}
439 \newenvironment{table*}
440                {\@dblfloat{table}}
441                {\end@dblfloat}
442 \newlength\abovecaptionskip
443 \newlength\belowcaptionskip
444 \setlength\abovecaptionskip{10\p@}
445 \setlength\belowcaptionskip{0\p@}
446 \long\def\@makecaption#1#2{%
447   \vskip\abovecaptionskip
448   \sbox\@tempboxa{#1: #2}%
449   \ifdim \wd\@tempboxa >\hsize
450     #1: #2\par
451   \else
452     \global \@minipagefalse
453     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
454   \fi
455   \vskip\belowcaptionskip}
456 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
457 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
458 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
459 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
460 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
461 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
462 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
463 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
464 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
465 \newcommand\@pnumwidth{1.55em}
466 \newcommand\@tocrmarg{2.55em}
467 \newcommand\@dotsep{4.5}
468 \setcounter{tocdepth}{2}
469 \newcommand\tableofcontents{%
470     \if@twocolumn
471       \@restonecoltrue\onecolumn
472     \else
473       \@restonecolfalse
474     \fi
475     \chapter*{\contentsname
476         \@mkboth{%
477            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
478     \@starttoc{toc}%
479     \if@restonecol\twocolumn\fi
480     \thispagestyle{empty}
481     \newpage
482     \thispagestyle{empty}
483     \cleardoublepage
484     \thispagestyle{empty}
485     \setcounter{page}\z@
486     \pagenumbering{arabic}
487     }
488 \newcommand*\l@part[2]{%
489   \ifnum \c@tocdepth >-2\relax
490     \addpenalty{-\@highpenalty}%
491     \addvspace{2.25em \@plus\p@}%
492     \setlength\@tempdima{3em}%
493     \begingroup
494       \parindent \z@ \rightskip \@pnumwidth
495       \parfillskip -\@pnumwidth
496       {\leavevmode
497        \large \bfseries #1\hfil
498        \hb@xt@\@pnumwidth{\hss #2%
499                           \kern-\p@\kern\p@}}\par
500        \nobreak
501          \global\@nobreaktrue
502          \everypar{\global\@nobreakfalse\everypar{}}%
503     \endgroup
504   \fi}
505 \newcommand*\l@chapter[2]{%
506   \ifnum \c@tocdepth >\m@ne
507     \addpenalty{-\@highpenalty}%
508     \vskip 1.0em \@plus\p@
509     \setlength\@tempdima{1.5em}%
510     \begingroup
511       \parindent \z@ \rightskip \@pnumwidth
512       \parfillskip -\@pnumwidth
513       \leavevmode \bfseries
514       \advance\leftskip\@tempdima
515       \hskip -\leftskip
516       #1\nobreak\hfil
517       \nobreak\hb@xt@\@pnumwidth{\hss #2%
518                                  \kern-\p@\kern\p@}\par
519       \penalty\@highpenalty
520     \endgroup
521   \fi}
522 \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
523 \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
524 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
525 \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
526 \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
527 \newcommand\listoffigures{%
528     \if@twocolumn
529       \@restonecoltrue\onecolumn
530     \else
531       \@restonecolfalse
532     \fi
533     \chapter*{\listfigurename}%
534       \@mkboth{\MakeUppercase\listfigurename}%
535               {\MakeUppercase\listfigurename}%
536     \@starttoc{lof}%
537     \if@restonecol\twocolumn\fi
538     }
539 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
540 \newcommand\listoftables{%
541     \if@twocolumn
542       \@restonecoltrue\onecolumn
543     \else
544       \@restonecolfalse
545     \fi
546     \chapter*{\listtablename}%
547       \@mkboth{%
548           \MakeUppercase\listtablename}%
549          {\MakeUppercase\listtablename}%
550     \@starttoc{lot}%
551     \if@restonecol\twocolumn\fi
552     }
553 \let\l@table\l@figure
554 \newdimen\bibindent
555 \setlength\bibindent{1.5em}
556 \newenvironment{thebibliography}[1]
557      {\chapter*{\bibname}%
558       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
559       \list{\@biblabel{\@arabic\c@enumiv}}%
560            {\settowidth\labelwidth{\@biblabel{#1}}%
561             \leftmargin\labelwidth
562             \advance\leftmargin\labelsep
563             \@openbib@code
564             \usecounter{enumiv}%
565             \let\p@enumiv\@empty
566             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
567       \sloppy
568       \clubpenalty4000
569       \@clubpenalty \clubpenalty
570       \widowpenalty4000%
571       \sfcode`\.\@m}
572      {\def\@noitemerr
573        {\@latex@warning{Empty `thebibliography' environment}}%
574       \endlist}
575 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
576 \let\@openbib@code\@empty
577 \newenvironment{theindex}
578                {\if@twocolumn
579                   \@restonecolfalse
580                 \else
581                   \@restonecoltrue
582                 \fi
583                 \twocolumn[\@makeschapterhead{\indexname}]%
584                 \@mkboth{\MakeUppercase\indexname}%
585                         {\MakeUppercase\indexname}%
586                 \thispagestyle{plain}\parindent\z@
587                 \parskip\z@ \@plus .3\p@\relax
588                 \columnseprule \z@
589                 \columnsep 35\p@
590                 \let\item\@idxitem}
591                {\if@restonecol\onecolumn\else\clearpage\fi}
592 \newcommand\@idxitem{\par\hangindent 40\p@}
593 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
594 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
595 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
596 \renewcommand\footnoterule{%
597   \kern-3\p@
598   \hrule\@width.4\columnwidth
599   \kern2.6\p@}
600 \@addtoreset{footnote}{chapter}
601 \newcommand\@makefntext[1]{%
602     \parindent 1em%
603     \noindent
604     \hb@xt@1.8em{\hss\@makefnmark}#1}
605 \newcommand\contentsname{Contents}
606 \newcommand\listfigurename{List of Figures}
607 \newcommand\listtablename{List of Tables}
608 \newcommand\bibname{Bibliography}
609 \newcommand\indexname{Index}
610 \newcommand\figurename{Figure}
611 \newcommand\tablename{Table}
612 \newcommand\partname{Part}
613 \newcommand\chaptername{Chapter}
614 \newcommand\appendixname{Appendix}
615 \def\today{\ifcase\month\or
616   January\or February\or March\or April\or May\or June\or
617   July\or August\or September\or October\or November\or December\fi
618   \space\number\day, \number\year}
619 \setlength\columnsep{10\p@}
620 \setlength\columnseprule{0\p@}
621 
622 
623 \if@twoside
624 \else
625   \raggedbottom
626 \fi
627 \if@twocolumn
628   \twocolumn
629   \sloppy
630   \flushbottom
631 \else
632   \onecolumn
633 \fi
634 
635 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
636 
637 % General imports
638 \RequirePackage{amsmath, amssymb, amsthm, stmaryrd, mathrsfs, gensymb}
639 \RequirePackage{hyperref}
640 
641 % Configure page size and margins
642 \RequirePackage[total={6in, 9in}]{geometry}
643 
644 % Configure colors
645 \RequirePackage{xcolor}
646 \definecolor{highlight}{RGB}{44, 76, 237}
647 \definecolor{thmbackground}{RGB}{249, 249, 249}
648 \definecolor{thmrule}{RGB}{230, 230, 230}
649 \hypersetup{
650   colorlinks,
651   citecolor=black,
652   filecolor=black,
653   linkcolor=black,
654   urlcolor=highlight,
655 }
656 \RequirePackage[labelfont={color=highlight, bf}]{caption}
657 
658 % Configure fonts
659 \RequirePackage[lf]{Baskervaldx}             % lining figures
660 \RequirePackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
661 \RequirePackage[cal=boondoxo]{mathalfa}      % mathcal from STIX, unslanted a bit
662 \renewcommand*\oldstylenums[1]{\textosf{#1}}
663 
664 % Configure the enumerate environment to use bold roman numerals
665 \RequirePackage{enumitem}
666 \setenumerate[0]{label={\color{highlight}\normalfont \bfseries(\roman*)}}
667 
668 % Fancy footnotes
669 \RequirePackage{footnote}
670 
671 % Configure page numbering
672 \RequirePackage{fancyhdr}
673 \fancypagestyle{momoire}{%
674     \fancyhead[EL]{%
675     \raisebox{0.5em}{\thepage}%
676     }
677     \fancyhead[ER]{%
678     \raisebox{0.5em}{\nouppercase{\leftmark}}%
679     }
680     \fancyhead[OL]{%
681     \raisebox{0.5em}{\S\nouppercase{\rightmark}}%
682     \vspace*{-0.5em}%
683     }
684     \fancyhead[OR]{%
685     \raisebox{0.5em}{\thepage}%
686     }
687     \fancyfoot{}
688 }
689 \pagestyle{momoire}
690 \pagenumbering{arabic}
691 
692 % Macro for creating boxed theorem environments
693 \RequirePackage{tcolorbox}
694 \newcounter{theorem}[chapter]
695 \renewcommand{\thetheorem}{\thechapter.\arabic{theorem}}
696 \newcommand{\newboxedtheorem}[2]
697   {
698     \newtheorem{inner#1}[theorem]{#2}
699     \newenvironment{#1}[1][{}]
700       {
701         \savenotes
702         \begin{tcolorbox}[colback=thmbackground, colframe=thmrule]
703         \begin{inner#1}[##1]
704       }
705       {\end{inner#1}\end{tcolorbox}\spewnotes}
706   }
707 
708 % Colored theorem styles
709 \newtheoremstyle{theorem}{}{}{\em}{}{\bf\color{highlight}}{.}{.5em}{}
710 \newtheoremstyle{definition}{}{}{}{}{\bf\color{highlight}}{.}{.5em}{}
711 \newtheoremstyle{remark}{}{}{}{}{\itshape\color{highlight}}{.}{.5em}{}
712 
713 % Configure the PDF title and author
714 \hypersetup{
715   pdftitle={\@title},
716   pdfauthor={\@author}
717 }
718 
719 % Redefine the \maketitle command
720 % The command now prints the title, the license and the dedication
721 \newcommand\dedication[1]{\def\@dedication{#1}}
722 \renewcommand\maketitle{
723   \begin{titlepage}%
724     \null
725     \vspace*{\stretch{1}} % Some space at the top
726     \begin{center}        % Centralize text
727     \huge                 % Make the text larger
728     {\bfseries\@title}
729     \par
730     \bigskip
731     \LARGE                % Make the text not that large
732     \@author
733     \par
734     \par                  % End the paragraph
735     \end{center}
736     \vspace{\stretch{3}}  % Space at bottom is three times that at the top
737   \end{titlepage}%
738   \begin{titlepage}%
739     \vspace*{1cm} % Some space at the top
740     \begin{center}
741     This work is licensed under a \textbf{Creative Commons Attributions 4.0
742     International License}
743     \par
744     \vspace{1em}
745     \includegraphics[width=2cm]{images/by.eps}
746     \end{center}
747     \null\vfill
748     \begin{center}Last updated \today\end{center}
749   \end{titlepage}%
750   \ifdefined\@dedication
751   \begin{titlepage}%
752     \vspace*{\stretch{1}} % Some space at the top
753     \raggedleft
754     {\Large\itshape\@dedication}
755     \par
756     \vspace{\stretch{3}}  % Space at bottom is three times that at the top
757   \end{titlepage}%
758   \fi
759   \setcounter{footnote}{0}%
760   \setcounter{page}{1}%
761   \global\let\thanks\relax
762   \global\let\maketitle\relax
763   \global\let\@thanks\@empty
764   \global\let\@author\@empty
765   \global\let\@date\@empty
766   \global\let\@title\@empty
767   \global\let\@dedication\@empty
768   \global\let\title\relax
769   \global\let\dedication\relax
770   \global\let\author\relax
771   \global\let\date\relax
772   \global\let\and\relax
773 }
774 
775 \endinput
776 %%
777 %% End of file `memoire.cls'.