-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlai-guide.cls
119 lines (99 loc) · 2.91 KB
/
mlai-guide.cls
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mlai-guide}[2020/09/25 MLAI Student guide]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions \relax
\LoadClass[a4paper,fleqn,10pt]{article}
\RequirePackage[margin=2.25cm]{geometry}
\let\old@maketitle\@maketitle
\renewcommand*{\@maketitle}{
\includegraphics[height=16mm]{gfx/ubn-logo}%
\includegraphics[height=16mm]{gfx/mlai-logo}%
\newpage%
\par\noindent
\hfill%
\begin{minipage}[t]{0.4\textwidth}%
\begin{flushright}%
\raisebox{-\height}{\includegraphics[height=16mm]{gfx/ubn-logo}}%
\raisebox{-\height}{\includegraphics[height=16mm]{gfx/mlai-logo}}%
\end{flushright}
\end{minipage} \vskip2.5em
\newpage
\begin{center}
\let\footnote\thanks
{\LARGE \bfseries \@title \par} \vskip1.5em
{\large \lineskip.5em
\begin{tabular}[t]{c}
\@author
\end{tabular}\par%
} \vskip1em
{\large \@date}\par\vskip1.5em
\end{center} \par \vskip1.5em
}
% \let\oldmaketitle\maketitle
% \renewcommand{\maketitle}{
% \par\begingroup%
% \renewcommand{\thefootnote}{%
% \@fnsymbol \c@footnote%
% }%
% \def\@makefnmark {\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
% \long\def\@makefntext##1{%
% \parindent1em\noindent\hb@[email protected]{\hss\@textsuperscript{\normalfont\@thefnmark}}##1%
% }
% \if@twocolumn\ifnum\col@number=\@ne\@maketitle
% }
\RequirePackage{xcolor,graphicx,enumitem,booktabs}
\definecolor{ub-blue}{cmyk}{1,0.7,0,0}
\definecolor{ub-yellow}{cmyk}{0,0.3,1,0}
\definecolor{ub-gray}{cmyk}{0,0,0.15,0.55}
\RequirePackage[hidelinks,breaklinks]{hyperref}
\hypersetup{colorlinks=true,
linkcolor=black,
filecolor=black,
urlcolor=ub-blue,
citecolor=ub-blue, %black, %darkblue,
bookmarksnumbered=true
}
\RequirePackage[fleqn,intlimits]{mathtools}
\RequirePackage[amsmath]{ntheorem}
\theoremstyle{break}
\theorembodyfont{\normalfont}
\theoremseparator{.}
\theorempreskip{1em}
\theorempostskip{1em}
\theoremsymbol{\ensuremath{\diamond}}
\newtheorem{thm}{Theorem}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{exa}[thm]{Example}
\newtheorem{exas}[thm]{Examples}
\newtheorem{probT}[thm]{Problem}
\newtheorem{probsT}[thm]{Problems}
\newtheorem{quest}{Question}
\newtheorem{quests}{Questions}
\newtheorem{rem}[thm]{Remark}
\newtheorem{rems}[thm]{Remarks}
\newtheorem{defn}[thm]{Definition}
\theoremstyle{nonumberplain}
\theoremheaderfont{\itshape}
\theoremsymbol{\rule{1ex}{1ex}}
\newtheorem{proof}{Proof}
\RequirePackage{iftex}
\ifPDFTeX
\wlog{PDF LaTeX detected}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp,tgpagella}
\else
\ifLuaTeX
\wlog{LuaLaTeX detected}
\RequirePackage{fontspec}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\else
\ifXeTeX
\wlog{XeLaTeX detected}
\RequirePackage{fontspec}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\fi
\fi
\fi