Commits

Panagiotis Mavrogiorgos committed 68b1ccf

Added code for typesetting the logo.

Comments (0)

Files changed (1)

 
 \RequirePackage{pgfopts}
 \RequirePackage{fancyhdr}
-\RequirePackage{mydate}
+\RequirePackage{greekmonths}
+\RequirePackage{ifthen}
 
 % Key definition
 \pgfkeys{
     /NTUA/mainauthor/.code = {\newcommand{\mainauthor}{#1}},
     /NTUA/thesistitle/.code = {\newcommand{\thesistitle}{#1}},
     /NTUA/thesissubtitle/.code = {\newcommand{\thesissubtitle}{#1}},
-    /NTUA/department/.code = {\newcommand{\department}{#1}},
+    /NTUA/faculty/.code = {\newcommand{\faculty}{#1}},
     /NTUA/university/.code = {\newcommand{\university}{#1}},
     /NTUA/supervisorNameA/.code = {\newcommand{\supervisorNameA}{#1}},
     /NTUA/supervisorTitleA/.code = {\newcommand{\supervisorTitleA}{#1}},
 \pgfkeysgetvalue{/NTUA/thesistitle}{\thesistitle}
 \pgfkeysgetvalue{/NTUA/thesissubtitle}{\thesissubtitle}
 \pgfkeysgetvalue{/NTUA/university}{\university}
-\pgfkeysgetvalue{/NTUA/department}{\department}
+\pgfkeysgetvalue{/NTUA/faculty}{\faculty}
 \pgfkeysgetvalue{/NTUA/supervisorNameA}{\supervisorNameA}
 \pgfkeysgetvalue{/NTUA/supervisorTitleA}{\supervisorTitleA}
 \pgfkeysgetvalue{/NTUA/supervisorNameB}{\supervisorNameB}
 
 \ProcessPgfOptions{/NTUA}
 
-% halftitlepage typesets the halftitle page. It is rather simple.
+% Calculate lengths
+\newlength{\widthuniversity}
+\newlength{\widthfaculty}
+\newlength{\widthmax}
+
+\setlength{\widthuniversity}{\widthof{\university}}
+\setlength{\widthfaculty}{\widthof{Τμήμα \faculty}}
+\ifthenelse{\widthuniversity > \widthfaculty}
+    {\setlength{\widthmax}{\widthuniversity}}
+    {\setlength{\widthmax}{\widthfaculty}}
+
+% halftitlepage typesets the halftitle page.
 \newcommand{\halftitlepage}{
     \clearpage
     \thispagestyle{empty}
+    %
+    \begin{minipage}[c][40pt][c]{0.2\linewidth}
+        \centering
+        \includegraphics[height=20mm]{photos/uni_logo.pdf}
+    \end{minipage}\hfill
+    \begin{minipage}[c][40pt][c]{0.7\linewidth}
+        \raggedright
+        \Large
+        \textsc{\university}\par
+        τμήμα \textsc{\faculty}\par
+        \vfill\null
+    \end{minipage}
+    %
     \begin{center}
-        \begin{Large}
-            \textsc{\university}\par
-            Τμήμα \textsc{\department}\par
-            \vspace*{3cm}
-        \end{Large}
+        \vspace*{2cm}
         \emph{Διπλωματική Εργασία}\par
         \vspace*{1cm}
         \begin{Large}
 \newcommand{\comiteepage}{
     \clearpage
     \thispagestyle{empty}
+    %
+    \begin{minipage}[b]{0.2\linewidth}
+        \centering
+        \includegraphics[height=20mm]{photos/uni_logo.pdf}
+    \end{minipage}
+    \begin{minipage}[b]{0.8\linewidth}
+        \raggedright
+        \Large
+        \textsc{\university}\par
+        Τμήμα \textsc{\faculty}\par
+        \vfill\null
+    \end{minipage}
+    %
     \begin{center}
-        \begin{Large}
-            \textsc{\university}\par
-            Τμήμα \textsc{\department}\par
-            \vspace*{3cm}
-        \end{Large}
+        \vspace*{2cm}
         \emph{Διπλωματική Εργασία}\par
         \vspace*{1cm}
         \begin{Large}
     \end{center}
 }
 
-% An attempt to typeset the NTUA LOGO. Not used right now
-%
-%    \begin{minipage}[b]{0.2\linewidth}
-%        \centering
-%        \includegraphics[height=20mm]{photos/uni_logo.pdf}
-%    \end{minipage}\hfill
-%    \begin{minipage}[b]{0.7\linewidth}
-%        \raggedright
-%        \Large
-%        \textsc{\university}\par
-%        Τμήμα \textsc{\department}\par
-%        \vfill\null
-%    \end{minipage}
-%
-
 % \copyrightpage typesets the copyright page
 \newcommand{\copyrightpage}{%
     \clearpage\null\vfill
     \thispagestyle{empty}
+    %
     \begin{minipage}[b]{0.9\textwidth}
         \footnotesize\raggedright
         \setlength{\parskip}{0.5\baselineskip}
         συγγραφείς και δεν πρέπει να ερμηνευτεί ότι αντιπροσωπεύουν τις επίσημες θέσεις του
         Εθνικού Μετσοβίου Πολυτεχνείου.\par
     \end{minipage}
+    %
     \vspace*{2\baselineskip}
     \cleardoublepage
-    \rfoot{\thepage}
 }