Commit ce4e92a9 authored by Jordi Masip's avatar Jordi Masip

Afegit tfgitic.cls

parent 1248b509
Pipeline #995 failed with stages
in 46 seconds
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{tfgitic}
\LoadClass[a4paper,
11pt,
DIV=12,
headings=big,
% parskip=full-,
twoside=semi
]{scrbook}
\RequirePackage[utf8]{inputenc}
\RequirePackage[catalan]{babel}
\RequirePackage{scrpage2}
\RequirePackage{hyperref}
\RequirePackage{ccbyncsa}
\RequirePackage{tikz,xcolor,booktabs}
\RequirePackage{gfsartemisia-euler}
\RequirePackage[T1]{fontenc}
% El color principal, Pantone 3005
\definecolor{upcblue}{HTML}{007AC9}
\DeclareFixedFont{\helvbupc}{OT1}{phv}{bx}{u}{2cm}
\DeclareFixedFont{\smallhelvbupc}{OT1}{phv}{bx}{u}{1.8cm}
\DeclareFixedFont{\helvupc}{OT1}{phv}{m}{u}{2cm}
% bola upc de 10cm
\def\bola@upc{
\fill [fill=upcblue] (0,0) circle (5);
\foreach \x in {-1.8,0,1.8}
\foreach \y in {-1.8,0,1.8}
{
\fill [fill=white,yshift=1cm] (\x,\y) circle (.7);
}
\draw [color=white,text centered,font=\helvbupc,yshift=0.2cm]
(-1.8,-3 ) node {U}
(0,-3) node {P}
(1.8,-3) node {C};
}
% bola upc amb les lletres centrades a sota
\def\bola@upc@text{
\bola@upc
\draw [color=upcblue,text centered,font=\helvupc]
(0,-7) node {UNIVERSITAT POLIT\`ECNICA DE CATALUNYA};
}
% comanda
\newcommand{\bolaupctext}[1][1cm]{\resizebox{!}{#1}{\tikz\bola@upc@text;}}
%% Portada ah-hoc
\renewcommand*{\maketitle}{%
\begin{titlepage}
\begin{center}
\bolaupctext[1.5cm]
\end{center}
\vfill
\begin{center}
\rule{0.9\textwidth}{1pt}\par
\noindent\Huge\textbf{\@title}\par
\bigskip\bigskip
\Large\today\par
\rule{0.9\textwidth}{1pt}\par
\end{center}
\vfill
\begin{flushright}
\Large
Dissertació que presenta \textsc{\@author}\par
sota la direcció de \textsc{\@advisor}\par
per assolir el grau d'Enginyer en Sistemes TIC.\par
\end{flushright}
\newpage\thispagestyle{empty}
\begin{minipage}{1.0\linewidth}
\large
Aquesta obra està subjecta a una llicència
Attribution-NonCommercial-ShareAlike 3.0 Spain de Creative
Commons. Per veure'n una còpia, visiteu
\url{http://creativecommons.org/licenses/by-nc-sa/3.0/es} o envieu una
carta a Creative Commons, 171 Second Street, Suite 300, San
Francisco, California 94105, USA.
\end{minipage}
\vfill
\end{titlepage}
%
\begin{titlepage}
\hbox{}
\vskip 3cm
\begin{raggedleft}
\large\@dedication\par
\end{raggedleft}
\vfill
\end{titlepage}
}%
\newcommand{\advisor}[1]{\def\@advisor{#1}}
\newcommand{\commitee}[1]{}
\pagestyle{scrheadings}
\setkomafont{pagehead}{\normalfont\rmfamily\itshape\scriptsize}
\setkomafont{pagenumber}{\normalfont\rmfamily\itshape\normalsize}
\setheadsepline{.4pt}
\AtBeginDocument{
\maketitle{}
\frontmatter
\tableofcontents
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment