-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover.sty
103 lines (81 loc) · 2.27 KB
/
cover.sty
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
\ProvidesPackage{cover}
\RequirePackage{xcolor}
\RequirePackage{changepage}
\RequirePackage{eso-pic}
\RequirePackage{geometry}
\RequirePackage{graphicx}
\definecolor{PortadaBlue}{HTML}{31489F}
\def\director{Falta \textbackslash{Director\{Nombre de tu director\}}}
\newcommand\Director[1]{
\def\director{#1}
}
\def\lugar{Madrid}
\newcommand\Lugar[1]{
\def\lugar{#1}
}
\def\grado{Graduado en Ingeniería Informática}
\newcommand\Grado[1]{
\def\grado{#1}
}
\def\trabajo{TRABAJO FIN DE GRADO}
\newcommand\Trabajo[1]{
\def\trabajo{#1}
}
\renewcommand*{\maketitle}{\begin{titlepage}
\AddToShipoutPicture*{
\put(-36,0){
\parbox[b][\paperheight]{\paperwidth}{
\vfill
\centering
\includegraphics[width=1.1\paperwidth,height=1\paperheight]{cover/background.png}
\vfill
}
}
}
\newgeometry{inner=1.5cm,outer=1.5cm,top=1.5cm,bottom=1.5cm}
\begin{figure}
\begin{minipage}{.5\linewidth}
\begin{flushleft}
\includegraphics[scale=1]{cover/upm.png}
\end{flushleft}
\end{minipage}
\begin{minipage}{.5\linewidth}
\begin{flushright}
\includegraphics[scale=0.185]{cover/etsiinf.png}
\end{flushright}
\end{minipage}
\end{figure}
\vspace*{1cm}
\begin{center}
{\color{PortadaBlue}
{\LARGE\bf \grado}\\[1.5cm]
{\LARGE Universidad Politécnica de Madrid}\\[0.2cm]
{\LARGE Escuela Técnica Superior de\\Ingenieros Informáticos}\\[1.5cm]
{\LARGE\bf \trabajo}\\[1.5cm]
{\LARGE\bfseries{\@title}}
}
\end{center}
\AddToShipoutPictureFG*{
\put(\LenToUnit{0.50\paperwidth},\LenToUnit{0.28\paperheight}){
\vtop{{\null}\makebox[0pt][c]{
\color{PortadaBlue}
\begin{tabular}{rl}
\LARGE Autor: & \LARGE \@author \\[0.5cm]
\LARGE Director: & \LARGE \director
\end{tabular}
}}
}
}
\AddToShipoutPictureFG*{
\put(\LenToUnit{0.70\paperwidth},\LenToUnit{0.12\paperheight}){
\vtop{{\null}\makebox[0pt][c]{
\color{PortadaBlue}
\LARGE\MakeUppercase{\lugar, \@date}
}}
}
}
\restoregeometry
\ClearShipoutPicture
\end{titlepage}
\newpage
}