|
| 1 | +%\definecolor{titlepagecolor}{HTML}{436491} |
| 2 | +\definecolor{titlepagecolor}{HTML}{A92D35}% |
| 3 | + |
| 4 | +% https://tex.stackexchange.com/questions/492913/cannot-use-numexpr-in-horizontal-mode |
| 5 | +\def\CurrentYear{\year}% or use \year |
| 6 | + |
| 7 | +\newgeometry{left=2.5cm, right=2.5cm, top=2.2cm, bottom=2.0cm} % defines the geometry for the titlepage |
| 8 | +\pagecolor{titlepagecolor} |
| 9 | +\noindent |
| 10 | +%\includegraphics[width=10cm]{unizar-white}\\[-1em] |
| 11 | +\begin{minipage}{0.45\textwidth} |
| 12 | +% \color{white}{\fontsize{80pt}{80pt}\selectfont\bfseries{\texttt{UNIZAR}}}\\% |
| 13 | + \color{white}\includegraphics[width=6cm]{unizar-fisica-white}\\% logo-crop |
| 14 | + \makebox[0pt][l]{\rule{2.22\textwidth}{1pt}} |
| 15 | +\end{minipage} |
| 16 | +\hspace*{-2.6cm} |
| 17 | +\begin{minipage}{0.45\textwidth}\raggedright |
| 18 | + \vspace*{0.4cm}\color{white}{\fontsize{14pt}{20pt}\selectfont\bold{\textsf{\vspace*{0.15cm}\THEUNIVERSITY}}} |
| 19 | +\end{minipage} |
| 20 | +\color{white} |
| 21 | +\begin{tikzpicture}[overlay, remember picture] |
| 22 | +\draw [] (-8.7,-0.6) -- (-8.7,1.25); |
| 23 | +\end{tikzpicture} |
| 24 | +\color{white} |
| 25 | +\vspace*{0.3cm} |
| 26 | +\begin{minipage}{0.45\textwidth}\raggedright |
| 27 | +%\includegraphics[width=10cm]{unizar-white} |
| 28 | +\includegraphics[width=10cm]{unizar-fisica-white} |
| 29 | +\end{minipage} |
| 30 | +%\makebox[0pt][l]{\rule{1.3\textwidth}{1pt}} |
| 31 | +\par |
| 32 | +\noindent |
| 33 | +%\textbf{\textsf{\THEUNIVERSITY}}% | \textsf{\bold{Facultad de ciencias}}} |
| 34 | +%\textbf{\fontsize{13pt}{20pt}\selectfont\textsf{\THEMASTERPROGRAMME\ (2023-2024)}} |
| 35 | +%\vfill |
| 36 | +\vskip 5cm |
| 37 | +\noindent%% |
| 38 | +\hrule height 1.6pt% |
| 39 | +\vspace{2pt}% |
| 40 | +\hrule height 0.4pt% |
| 41 | +%\vspace{\medskipamount}% |
| 42 | +\vspace{\smallskipamount}% |
| 43 | +\noindent\makebox[\textwidth][c]{% |
| 44 | +% https://tex.stackexchange.com/questions/18496/how-to-center-the-minipage#18497 |
| 45 | +% https://tex.stackexchange.com/questions/679016/space-between-words-one-line-only |
| 46 | +% https://tex.stackexchange.com/questions/239056/handling-spacing-between-multiple-lines-of-a-title-text |
| 47 | +\begin{minipage}{0.8\textwidth}% |
| 48 | + \newgeometry{left=1.7cm, right=1.7cm, top=0cm, bottom=0cm}% |
| 49 | + \centering\noindent% |
| 50 | + \strut\fontsize{38pt}{45pt}\selectfont\bold{\textsf{\vspace*{-0.18cm}\hspace*{-0.12cm}\spaceskip 0.2em \relax\THETHESISTITLE}}\strut\par% |
| 51 | +\end{minipage}% |
| 52 | +}% |
| 53 | +\vspace{\medskipamount}% |
| 54 | +\hrule height 0.4pt% |
| 55 | +\vspace{2pt}% |
| 56 | +\hrule height 1.6pt% |
| 57 | +\vfill% |
| 58 | +\vskip 0.2\baselineskip% |
| 59 | +\noindent |
| 60 | +\textsf{\fontsize{13pt}{20pt}\spaceskip 0.2em \relax\selectfont\bold{\THEMASTERPROGRAMME\ (Course: \number\CurrentYear-\addNums{\CurrentYear}{1})}} |
| 61 | +\vskip 0.01cm |
| 62 | +\noindent |
| 63 | +%\textsf{\fontsize{13pt}{20pt}\selectfont\bold{\THETITLE. \THEAUTHOR}} |
| 64 | +\textsf{\fontsize{13pt}{20pt}\spaceskip 0.2em \relax\selectfont\bold{Supervisors: John Doe \& Dr.John Doe}} |
| 65 | +\vskip 0.01cm |
| 66 | +\noindent |
| 67 | +\textsf{\fontsize{13pt}{20pt}\spaceskip 0.2em \relax\selectfont\bold{Author: \THEAUTHOR}} |
| 68 | +\vskip 0.01cm |
| 69 | +\noindent |
| 70 | +%\textsf{\bold{Zaragoza, Junio 2023}} |
| 71 | +\bold{\fontsize{13pt}{20pt}\spaceskip 0.2em \relax\selectfont\textsf{Somewhere, \coverdate\today}} |
| 72 | +\hfill |
| 73 | +%\begin{tikzpicture}[overlay, remember picture] |
| 74 | + |
| 75 | +%\node[align=center,opacity=0.25] at ($(current page.south)+(6.5,1.38)$) { |
| 76 | +% % LOGOS: https://unizar.es/identidad-corporativa/logos |
| 77 | +% {\includegraphics[scale=2.2]{logo-simple-white}}%\\[1cm] |
| 78 | +% % {\fontsize{40}{72} \selectfont {\THETITLE}} \\[1cm] |
| 79 | +% % % {\fontsize{40}{72} \selectfont \THETITLEA}\\[1cm] |
| 80 | +% % % {\fontsize{40}{72} \selectfont \THETITLEB}\\[1cm] |
| 81 | +% % {\fontsize{16}{19.2} \selectfont \textcolor{orange}{ \bf \THEAUTHOR}}\\[3pt] |
| 82 | +% % \THEUNIVERSITY\\[3pt] |
| 83 | +% % \bold{Viena, Agosto 2021 - Octubre 2021} |
| 84 | +% % \coverdate\today |
| 85 | +%}; |
| 86 | + |
| 87 | +%\end{tikzpicture} |
| 88 | + |
| 89 | +\begin{tikzpicture}[remember picture,overlay] |
| 90 | +\draw[white, line width=1mm] ($(current page.north west)+(9.5mm,-10mm)$) -- ($(current page.north west)+(140mm,-10mm)$); |
| 91 | +\draw[white, line width=1mm] ($(current page.north west)+(10mm,-10.45mm)$) -- ($(current page.north west)+(10mm,-220mm)$); |
| 92 | +\draw[white, opacity=0.5, line width=0.5mm] ($(current page.north west)+(11.5mm,-11.5mm)$) -- ($(current page.north west)+(11.5mm,-210mm)$); |
| 93 | +\draw[white, opacity=0.5, line width=0.5mm] ($(current page.north west)+(11.25mm,-11.5mm)$) -- ($(current page.north west)+(130mm,-11.5mm)$); |
| 94 | +\draw[white, line width=1mm] ($(current page.south east)+(-10mm,9.5mm)$) -- ($(current page.south east)+(-10mm,220mm)$); |
| 95 | +\draw[white, line width=1mm] ($(current page.south east)+(-10mm,10mm)$) -- ($(current page.south east)+(-160mm,10mm)$); |
| 96 | +\draw[white, opacity=0.5, line width=0.5mm] ($(current page.south east)+(-11.5mm,11.25mm)$) -- ($(current page.south east)+(-11.5mm,210mm)$); |
| 97 | +\draw[white, opacity=0.5, line width=0.5mm] ($(current page.south east)+(-11.25mm,11.5mm)$) -- ($(current page.south east)+(-150mm,11.5mm)$); |
| 98 | +\end{tikzpicture} |
| 99 | + |
| 100 | +% https://tex.stackexchange.com/questions/580299/afterpage-not-working-for-newgeometry-and-restoregeometry |
| 101 | +\makeatletter |
| 102 | + |
| 103 | +\newcommand{\globalsetgeometry}{ % |
| 104 | + |
| 105 | + \global\textheight\textheight |
| 106 | + \global\@colht\textheight |
| 107 | + \global\@colroom\textheight |
| 108 | + \global\vsize\textheight |
| 109 | + \global\headheight\headheight |
| 110 | + \global\topskip\topskip |
| 111 | + \global\headsep\headsep |
| 112 | + \global\topmargin\topmargin |
| 113 | + \global\footskip\footskip |
| 114 | + %% The following are not used in most cases |
| 115 | + \global\textwidth\textwidth |
| 116 | + \global\evensidemargin\evensidemargin |
| 117 | + \global\oddsidemargin\oddsidemargin |
| 118 | + \global\baselineskip\baselineskip |
| 119 | + \global\marginparwidth\marginparwidth |
| 120 | + \global\marginparsep\marginparsep |
| 121 | + \global\columnsep\columnsep |
| 122 | + \global\hoffset\hoffset |
| 123 | + \global\voffset\voffset |
| 124 | +} |
| 125 | + |
| 126 | +\makeatother |
| 127 | + |
| 128 | +% import afterpage package |
| 129 | +\afterpage{\restoregeometry\globalsetgeometry} |
| 130 | +\afterpage{\nopagecolor} % Use this to restore the color pages to white |
0 commit comments