% This is a modified title page that includes U of R OER branding.
% Command for creating the title page for a unit.  Put it after the \begin{document}
\makeatletter
\def\makecoursetitle{\newgeometry{top=0cm, bottom=0cm, left=1.6cm, right=1.6cm}
\begin{titlepage}
% The following is unnecessary assuming the \frontmatter command is used
%\pagenumbering{roman}
%\setcounter{page}{1}
 \null
 \resizebox{8.2cm}{!}{%
   \raisebox{-.5\height}{\includegraphics[height=1.8cm]{logo/u_of_r_oer_duo_logo}}~%
 }%
 \begin{center}
   \Huge
   \bfseries
   %Note this page has useful discussion on centering images:
   %http://tex.stackexchange.com/questions/7219/how-to-vertically-center-two-images
   \vfill
   {\fontsize{45}{60}\selectfont\textsf{\@coursenumber} \\[.5em]
   \textsf{\@coursetitle}}
   \vfill
\begin{center}
%\fbox{\includegraphics[height=3.8in]{\@coverpic}}
\includegraphics[height=12cm]{\@coverpic}
\end{center}
   \vfill
       {\huge \textsf{\@author} \par}
   \vfill
   \@ifundefined{logofiletwo}{%Only one logo
   \resizebox{.7textwidth}{!}{%
     \raisebox{-0.5\height}{\includegraphics[height=1em]{\@logofile}}~%
     \raisebox{-0.5\height}{\resizebox{!}{.8em}{\@institution}}%
     }%
     }{%Two logos
   \resizebox{10cm}{!}{%
     \raisebox{-0.5\height}{\includegraphics[height=1em]{\@logofile}}~%
     \raisebox{-0.5\height}{\resizebox{!}{.8em}{\@institution}}\hfill%
     \raisebox{-0.5\height}{\includegraphics[height=1em]{\@logofiletwo}}~%
     \raisebox{-0.5\height}{\resizebox{!}{.8em}{\@institutiontwo}}%
   }%
   }\\[.5em]
   {\scriptsize published by \@publisher \par}
   \vfill
 \end{center} \par
 \null
 \begin{tikzpicture}[overlay, remember picture]
\node[anchor=north west, %anchor is upper left corner of the graphic
      xshift=.3cm, %shifting around
      yshift=-8.5cm] 
     at (current page.north west) %left upper corner of the page
     {\includegraphics[height=13cm]{logo/oer_branding_bar}}; 
\end{tikzpicture}

\end{titlepage}
\restoregeometry
\let\thanks\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitle\relax}
\makeatother

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:
