-
Notifications
You must be signed in to change notification settings - Fork 0
/
thearticle.cls
89 lines (71 loc) · 1.99 KB
/
thearticle.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{thearticle}[2023/07/26 Minerva project's article class.]
% pictures and colors
\RequirePackage[rgb]{xcolor}
\RequirePackage{tikz}
\RequirePackage{calculator}
% class options
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\DeclareOption{spanish}{
\PassOptionsToPackage{\CurrentOption}{thebasis}
}
\DeclareOption{english}{
\PassOptionsToPackage{\CurrentOption}{thebasis}
}
\ProcessOptions\relax
\LoadClass{article}
% bibliography
\RequirePackage[%
backend=bibtex,
bibstyle=numeric,
citestyle=numeric-comp,
sorting=nyt,
sortcites=true,
isbn=false,
url=false,
doi=false,
date=year,
eprint=false,
maxbibnames=99]{biblatex}
\AtEveryBibitem{%
\clearlist{language}%
}
% todonotes
\RequirePackage{todonotes}
\setuptodonotes{linecolor = lightgray, bordercolor = lightgray, backgroundcolor = white, figcolor = white, size = \footnotesize}
\tikzset{notestyleraw/.append style={rounded corners = 0pt}}
% Own Packages
\RequirePackage{thebasis} % Common class configuration.
\RequirePackage{thetheorems} % Theorem configuration.
% TOC
\RequirePackage[titles]{tocloft}
\renewcommand{\cftsecfont}{\sffamily}
\renewcommand{\cftsecpagefont}{\sffamily}
\renewcommand{\cftsubsecfont}{\sffamily}
\renewcommand{\cftsubsecpagefont}{\sffamily}
\renewcommand{\cftsubsubsecfont}{\sffamily}
\renewcommand{\cftsubsubsecpagefont}{\sffamily}
\renewcommand{\cftsubsecdotsep}{\cftnodots}
\renewcommand{\cftsubsubsecdotsep}{\cftnodots}
% enumitem
\RequirePackage{enumitem}
% margins
\usepackage[top=2.54cm, bottom=2.54cm, left=2.54cm, right=2.54cm]{geometry}
%page numbers
\let\oldthepage\thepage
\renewcommand*\thepage{\sffamily \oldthepage}
% titlepage
\makeatletter
\def\@maketitle{%
\begin{center}
{\large\bfseries\sffamily\scshape \@title \par}%
\vskip 1em%
{\normalsize\bfseries\sffamily\@author \par}%
{\normalsize\bfseries\sffamily\@date \par}%
\end{center}%
\par
\vskip 1em%
}
\makeatother
% appendices
\RequirePackage[page, toc, titletoc, title]{appendix}