% Desciption: tfccapa.sty (this file) defines the command coverp 
% that creates the first page of a thesis given a certain number of parameters, 
% namely: doctype, faculty, department, course, supervisor, submitdate, 
% university, title and author.
% Example: 
%------------------------------------------------------
% \doctype{Trabalho Final de Curso}
% \university{Universidade Técnica de Lisboa}
% \faculty{Instituto Superior Técnico}
%    .
%    .
%    .
% \coverp
%------------------------------------------------------
% Ack: Most commands are copied and slightly adapted from a file named my_thesis.sty 
% given to me by a student (Alexandre Francisco), authors unknown (so far)
% F. Miguel Dionisio, 8.4.2003


\def\doctype#1{\gdef\@doctype{#1}}
\def\faculty#1{\gdef\@faculty{#1}}
\def\department#1{\gdef\@department{#1}}

\def\course#1{\gdef\@course{#1}}
\def\supervisor#1{\gdef\@supervisor{#1}}
\def\submitdate#1{\gdef\@submitdate{#1}}
\def\university#1{\gdef\@university{#1}}
\def\@title{}
\def\@author{}
\def\@doctype{}
\def\@faculty{}
\def\@course{}
\def\@supervisor{}
\def\@submitdate{}
\def\@university{}


\def\coverp{%
        \thispagestyle{empty}%
        \begin{center}
%\includegraphics{dm}
            {\Large \textsc{\@university}}
            \vskip0.5cm
            {\large \textsc{\@faculty}}
            \vskip0.5cm
            { \textsc{\@department}}
        \end{center}
        \vfill
        \begin{center}
            {\LARGE {\expandafter{\textsc{\@title}}}}
        \end{center}
   \vskip0.5cm
        \begin{center}
                {\large \@author}
        \end{center}
        \vfill\vfill
        \begin{center}
            {\large \textsl{\@doctype}}
             \vskip0.3cm
            {\large \textsl{\@course}}
            \vskip0.8cm
           {\large Orientador:}
            \vskip0.3cm
            {\large \@supervisor}
        \end{center}
        \vskip2cm
        \begin{center}
                {\large \@submitdate }\\
        \end{center}
        \vskip1cm
%        \newpage
	\clearpage{\pagestyle{empty}\cleardoublepage}
        \pagenumbering{roman}}


\def\tocpage{
        \addtocounter{page}{-2}
        \pagenumbering{arabic}
        \tableofcontents
        }


