%% cover_ubo.tex
%% Copyright (C) 2016-2017 Konstantinos A. Mountris.
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This work consists of the files cover_ubo.tex, cover_ubo.jpg.
% 
% This work can be used to set the cover of a thesis according
% to UBO (Université de Bretagne Occidentale) style 
% (Year 2016-2017)
%
% To use you can simply:
% 1) Put the following command in the begining of your document
%		\include{cover/cover_ubo}
% 
% 2) Update your permeable with the packages given below in
%    the PERMEABLE section and comment out the PERMEABLE
%    section of this file.
%
% 3) Be sure that the file cover_ubo.jpg can be found by your
%	 thesis document.
%
% 4) Set the values of ubo_variables in the COVER section.
%
% 5) Comment out the commands \begin{document} and \end{document}
%    of this file.
%
% HOPE IT HELPS AND GOOD LUCK IN YOUR MANUSCRIPT WRITTING.
%%
%%
%============================================================
%---------------- PERMEABLE section -------------------------
%***
%* You should may sure that the following packages exist in *
%* your thesis permeable and the given options are enabled. *
 \documentclass[a4paper]{memoir}
 \usepackage[T1]{fontenc}
 \usepackage[french,english]{babel}
 \usepackage{helvet} %helvetica font
 \usepackage{hyperref}
 \hypersetup{colorlinks=true}
 \usepackage{graphicx}
 \usepackage{overpic}
%***
%------------------------------------------------------------
%============================================================
%****
%Creating the titlepage for your UBO thesis (Memoir class) 
%Comment or delete \begin{document}, to be used only for standalone compilation
\begin{document}
\begin{titlingpage}
% Page layout (geometry)
\setlength\voffset{-0.667in}
\setlength\hoffset{-1.217in}
\setlength\topmargin{0.3937in}
\setlength\oddsidemargin{0.3937in}
\setlength\textheight{10.7083in}
\setlength\textwidth{7.4806995in}
\setlength\footskip{0.0cm}
\setlength\headheight{-0.2in}
\setlength\headsep{0cm}
%============================================================
%---------------- UBO variables section ---------------------
%***
%* Custom commands to set Thesis information
%*How to use: \ubomention{(\`a pr\'eciser)}
\newcommand{\ubomention}[1]
{
    \selectlanguage{french}{#1}
}
%*How to use: \uboecoledoctoral{(\`a pr\'eciser)}
\newcommand{\uboecoledoctoral}[1]
{
    \selectlanguage{french}{#1}
}
%*How to use: \uboauthor{Pr\'enom Nom}}
\newcommand{\uboauthor}[1]
{
    \selectlanguage{french}{#1}
}
%*How to use: \ubolab{(\`a pr\'eciser)}}
\newcommand{\ubolab}[1]
{
    \selectlanguage{french}{#1}
}
%*How to use: \ubothesistitle{Titre de la th\'ese}}
\newcommand{\ubothesistitle}[1]
{
    \selectlanguage{french}{#1}
}
%*How to use: \ubothesisdate{(date \`a pr\'eciser)}
\newcommand{\ubothesisdate}[1]{
    \selectlanguage{french}{#1}
}
%*How to use: \ubojurymember{Prenom}{Nom}{Titre}{Etablissement}{qualite}
\newcommand{\ubojurymember}[5]
{
    \selectlanguage{french}{
        {\small{\textsf{\textbf{\small{{#1} \MakeUppercase{#2}} } } } } 
        
        {\scriptsize{\textsf{{#3}, {#4} / \textit{{#5}} } } }
    }
}
%***
%------------------------------------------------------------
%============================================================
%===============================================================
%---------------- COVER section --------------------------------
%***
%* Setting of the cover geometries and the ubo variables values.
\begin{overpic}[width=7.458in,height=7.3in]{UBO_thesis_cover.jpg}
    %Ecole doctorale info.
    \put(-0.5,17.3){
    \begin{minipage}[t][1.24in][t]{3.85in}
    \begin{flushright}
        \selectlanguage{french}{
          
        {\sffamily\bfseries\color{white} \large{TH\`ESE / UNIVERSIT\'E DE BRETAGNE OCCIDENTALE} \par}
                        
        {\textsf{\textit{\textcolor{white}{sous le sceau de l{\textquoteright}Universit\'e Bretagne Loire}}} \par}
                        
        \bigskip
                        
        {\sffamily\color{white} pour obtenir le titre de \par}
                        
        {\sffamily\bfseries\color{white} \small{DOCTEUR DE L{\textquoteright}UNIVERSIT\'E DE BRETAGNE OCCIDENTALE} \par}
                        
        {\textsf{\textit{\textcolor{white}{Mention : \ubomention{(\`a pr\'eciser)}}}}\par}
                        
        {\textsf{\textbf{\textcolor{white}{\'Ecole Doctorale \uboecoledoctoral{(\`a pr\'eciser)}}}} \par}
                        
        \bigskip
        }%end french language
    
    \end{flushright}
    \end{minipage}
    }%end ecole doctorale info position.
    
    %Ph.D Candidate info.
    \put(53,17.3){
    \begin{minipage}[t][1.24in][t]{3.28in}
    \begin{flushleft}
        \selectlanguage{french}{
        
        {\small{\textsf{\textcolor{white} {pr\'esent\'ee par}}} \par}
           
        {\Huge{\textsf{\textcolor{white}{\uboauthor{Pr\'enom Nom}}}} \par}
            \bigskip
        {\textsf{\large{\textcolor{white}{Pr\'epar\'ee \`a \ubolab{(\`a pr\'eciser)}}}} \par}
        }
    
    \end{flushleft}
    \end{minipage}
    }%end Ph.D Candidate info.
     
     \put(-0.5,-1.5){
     %Thesis title.
     \begin{minipage}[t][3.5in][t]{3.85in}
     \begin{flushright}
         {\sffamily\color{black}\Huge{\ubothesistitle{Titre de la Th\'ese}}}
             
     \end{flushright}
     \end{minipage}
     }%end Thesis title position.
     
     %Thesis date and jury info.
     \put(55,-5.3){
     \begin{minipage}[t][3.22in][t]{3.1in}
     \begin{flushleft}
         \selectlanguage{french}{
         
         {\textsf{\textbf{\textcolor{black}{\small{Th\`ese soutenue le \ubothesisdate{(date a pr\'esiser)}}}}}}
        
         {\sffamily\color{black}{\small{devant le jury compos\'e de :}}}
        
         \bigskip
        
         \ubojurymember{Pr\'enom}{Nom1}{Titre}{Etablissement}{qualit\'e}
        
         \bigskip
        
         \ubojurymember{Pr\'enom}{Nom1}{Titre}{Etablissement}{qualit\'e}
        
         \bigskip
        
         \textsf{\textbf{etc\dots} }
        }%end french language.
    
    \end{flushleft}
    \end{minipage}
    }
\end{overpic}
%***
%---------------------------------------------------------------
%===============================================================
\end{titlingpage}
%Comment or delete \end{document}, to be used only for standalone compilation
\end{document}