[Tex/LaTex] How to color only Cover page for PhD thesis

colorcovers

Can you help me in formatting my title page (cover page). It is for my PhD thesis.
I have to follow this example https://www.dropbox.com/s/clexb8dauxom2k4/tamplate.jpg
For this purpose I am using these codes for title page

\begin{titlepage}

\pagecolor{gray}\afterpage{\nopagecolor}

%Cover image
   \begin{center}
    \includegraphics[width=0.8\textwidth]{images.eps}
   \end{center}
    %Autor name
    \begin{center}
 \vspace*{2cm}
  {\LARGE\bf Gilson Manuel Gomes Pina}

    %Thesis title
      \vspace*{1.2cm}
  {\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets}


 \vspace*{1.2cm}

  {\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University of Coimbra.}

    \vspace*{1.0cm}

    {\small September 2014}

    \end{center}

  \vspace*{1.6cm}

    \begin{center}
    \includegraphics[width=0.3\textwidth]{insigniafeuc.eps}
        \end{center}
    \begin{center}
    \textsc{\small Faculty of Economics, University of Coimbra}
    \end{center}

\end{titlepage}

and for the full thesis compilation I am using:

\documentclass{dmathesis}
%% uncommand the following line to print equation labels next to
%% equation numbers. 
\usepackage{lipsum}% for auto generating text
\usepackage{xcolor}


\usepackage{showlabel}
%% The following is to control the format of the thesis
\input{format}

%% File to be included while running latex.
\includeonly{chapter1,chapter2,chapter3%
                 ,chapter4,chapter5,chapter6,ref,append}

\begin{document}

%% Front page of thesis
\input{coverpage}
\input{frontpage}

%% Main text
% set page number starts from 1
\pagenumbering{arabic}
\setcounter{page}{1}

%% To ensure the equation counter works correctly
\eqlabon
\eqlaboff

\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{chapter6}
\include{ref}
\include{append}
\end{document}

So, the problem are: first one, I need to include the "color page" just for cover page, but it will appear in the full thesis. I'm trying many examples from the web, but anything is working. How can I do that? And the second one, How can I put the image to occupy full top of the cover page, as in the example?
Thank you for your help.

Best Answer

I have used the book class but it should work for your class too.

\documentclass{book}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage[a4paper,margin=1in]{geometry}
\begin{document}

\newgeometry{centering,top=0in}
  \begin{titlepage}
    \pagecolor{gray}
    \afterpage{\pagecolor{white}}

    %Cover image
    \centering
    \noindent
    \makebox[0pt]{%
    \includegraphics[width=\paperwidth,height=0.4\textheight]{example-image-a}%
    }

    %Author name
    \vspace*{2cm}
    {\LARGE\bf Gilson Manuel Gomes Pina\par}

    %Thesis title
      \vspace*{1.2cm}
    {\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets \par}

    \vspace*{1.2cm}

    {\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor 
    Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University 
    of Coimbra. \par}

    \vspace*{1.0cm}

    {\small September 2014 \par}

    \vspace*{1.6cm}
    \includegraphics[width=0.3\textwidth]{example-image-b}

    \textsc{\small Faculty of Economics, University of Coimbra}
    \par
\end{titlepage}
\cleardoublepage
Some text
\end{document}

enter image description here

With dmathesis class:

\documentclass{dmathesis}
\usepackage{xcolor}
\usepackage[math]{blindtext}     %% for demo
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage[pass]{geometry}   %% pass in important
\begin{document}
%% cover.tex starts--------------------------
\newgeometry{centering,top=0in}
  \begin{titlepage}
    \pagecolor{gray}
    \afterpage{\pagecolor{white}}

    %Cover image
    \centering
    \setlength{\hoffset}{0in}
    \noindent
    \makebox[0pt]{%
    \includegraphics[width=\paperwidth,height=0.5\textheight]{example-image-a}%
    }

    %Author name
    \vspace*{1cm}
    {\LARGE\bf Gilson Manuel Gomes Pina\par}

    %Thesis title
      \vspace*{0.75cm}
    {\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets \par}

    \vspace*{0.75cm}

    {\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor
    Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University
    of Coimbra. \par}

    \vspace*{0.5cm}

    {\small September 2014 \par}

    \vspace*{1.1cm}
    \includegraphics[width=0.3\textwidth]{example-image-b}

    \textsc{\small Faculty of Economics, University of Coimbra}
    \par
\end{titlepage}
\cleardoublepage     %% imp
\restoregeometry     %% imp
%% cover.tex ends--------------------------
\Blinddocument       %% for demo
\end{document}