-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipn.cls
112 lines (100 loc) · 3.55 KB
/
ipn.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
% A LaTeX template for Thesis submissions to Instituto Politécnico Nacional (IPN)
% José Luis Castro García (https://github.com/JoseLuisC99/IPN-thesis-template)
% Last Revision: September 2023
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ipn}[2023/09/30 IPN thesis submission class]
\LoadClass[12pt, twoside]{book}
\RequirePackage[utf8]{inputenc}
\RequirePackage{xcolor}
\RequirePackage{geometry}
\RequirePackage[export]{adjustbox}
\RequirePackage{titlesec}
\definecolor{pantone_222_c}{RGB}{108, 29, 69}
\definecolor{black1}{RGB}{17, 17, 14}
\definecolor{gray1}{RGB}{54, 69, 79}
\geometry{
a4paper,
left=4cm,
right=1in,
top=1in,
bottom=1in
}
\def\schoolname#1{\def\@schoolname{#1}}
\def\degree#1{\def\@degree{#1}}
\def\advisor#1{\def\@advisor{#1}}
\def\coadvisor#1{\def\@coadvisor{#1}}
\def\academicyear#1{\def\@academicyear{#1}}
\coadvisor{}
\renewcommand{\maketitle}{
\begin{titlepage}
\centering
\begin{adjustbox}{max width=1.2\linewidth, right}
\begin{minipage}[c][0.99\textheight][t]{0.13\textwidth}
\centering
\includegraphics[width=\linewidth]{img/logo-ipn.png} \\
\vspace{5mm}
\hskip3pt
{\color{pantone_222_c} \vrule width1.5pt height0.75\textheight}
\hskip5pt
{\color{black1} \vrule width2.5pt height0.75\textheight}
\hskip3pt
{\color{pantone_222_c} \vrule width1.5pt height0.75\textheight} \\
\vspace{5mm}
\centerline{\includegraphics[width=1.3\linewidth]{img/logo-school.png}}
\end{minipage}
\begin{minipage}[c][0.99\textheight][t]{0.95\textwidth}
\centering
{\fontsize{22}{22}\selectfont\textsc{Instituto Politécnico Nacional\\}}
\vspace{10pt}
\begin{minipage}[t]{0.1\textwidth}
\end{minipage}
\hfill
\begin{minipage}[t]{0.9\textwidth}
{\color{pantone_222_c} \hrule width\textwidth height2.5pt}
\end{minipage}
\begin{minipage}[t]{0.9\textwidth}
{\color{black1} \hrule width\textwidth height2.5pt}
\end{minipage}
\begin{minipage}[t]{0.1\textwidth}
\end{minipage}
\vspace{20pt}
{\fontsize{16}{16}\selectfont\textsc{\@schoolname\\}}
\vspace{60pt}
{\fontsize{25}{20}\selectfont T E S I S\\}
\vspace{60pt}
{\fontsize{16}{16}\selectfont\textbf{``\@title''\\}}
\vspace{60pt}
{\fontsize{14}{14}\selectfont\textsc{Que para obtener el grado de:\\}}
\vspace{10pt}
{\fontsize{14}{14}\selectfont\textbf{\@degree\\}}
\vspace{60pt}
{\fontsize{14}{14}\selectfont\textsc{Presenta:\\}}
\vspace{10pt}
{\fontsize{14}{14}\selectfont\textbf{\@author\\}}
\vspace{60pt}
{\fontsize{14}{14}\selectfont\textsc{Directores de tesis:\\}}
\vspace{10pt}
{\fontsize{14}{14}\selectfont\textbf{\@advisor}\\}
\vspace{5pt}
{\fontsize{14}{14}\selectfont\textbf{\@coadvisor}}
\vfill
{\fontsize{12}{12}\selectfont Ciudad de México\\}
{\fontsize{12}{12}\selectfont \@academicyear\\}
\vspace{40pt}
\end{minipage}
\end{adjustbox}
\end{titlepage}
}
\titleformat{\chapter}[display]
{\bfseries\Large}
{
\filright
\textsc{\textcolor{pantone_222_c}{
\MakeUppercase{\chaptertitlename}
\Huge
\thechapter
}}
}
{1ex}
{\Huge}
[\vspace{1ex}\titlerule]