Compare commits

..
7 Commits
+98 -61
View File
@@ -5,32 +5,56 @@
% Χρήστος Χουτουρίδης ΑΕΜ 8997 % Χρήστος Χουτουρίδης ΑΕΜ 8997
% cchoutou@ece.auth.gr % cchoutou@ece.auth.gr
% Requirements % Configuration requirements as new commands
% =============================================================== % ===============================================================
% %
% \ClassName: To print Class name % \AuthorName: Author's name
% \DocTitle: To print document title % \AuthorMail: Author's mail
% \AuthorAEM: Author's AEM
% \CoAuthorName: Co-author's name [optional]
% \CoAuthorMail: Co-author's mail [optional]
% \DocTitle: To print document title (also in fancyheader)
% \CoAuthorAEM : Co-author's AEM [optional]
% \WorkGroup: Working group of the assignment/project
% \Department: The School
% \ClassName: Class name to print (also in fancyheader)
% \InstructorName: To print instructor's mame % \InstructorName: To print instructor's mame
% \InstructorMail: To print instructor's mame % \InstructorMail: To print instructor's mame
% \CurrentDate: To print the date % \CurrentDate: To print the date
%
% example:
% \newcommand{\AuthorName}{Χρήστος Χουτουρίδης}
% \newcommand{\AuthorMail}{cchoutou@ece.auth.gr}
% \newcommand{\AuthorAEM}{8997}
%
% \newcommand{\CoAuthorName}{John Doe}
% \newcommand{\CoAuthorMail}{doe@ece.auth.gr}
% \newcommand{\CoAuthorAEM}{1729}
%
% \newcommand{\DocTitle}{Universal computing machine}
% \newcommand{\Department}{Τμημα ΗΜΜΥ. Τομεάς Ηλεκτρονικής}
% \newcommand{\ClassName}{Computer Science lab}
%
% \newcommand{\InstructorName}{Allan Turing}
% \newcommand{\InstructorMail}{aturing@auth.gr}
% \newcommand{\CurrentDate}{\today}
%
% Exported commands % Exported commands
% =============================================================== % ===============================================================
% \eng{} % \eng{}
% \gr{}
% \setEnglish
% \setGreek
% \BottomTitleSpace{}
% \FirstPage % \FirstPage
% \FirstPageCoAuthor{}{}{} % \TitleHeader
% \SetFancyHead{}{} % \setFancyHeadLR{}{}
% \InsertFigure{}{}{} % \setFancyHeadLERO{}{}
% \InsertFigure{}{}{}{}
% \WrapFigure{}{}{}{}{}
% Global configuration
% ===============================================================
% Note: You can reassign them with \renewcommand
% AFTER the \input{AUTH_Settings_Report.tex}
%
\newcommand{\AuthorName}{Χρήστος Χουτουρίδης}
\newcommand{\AuthorMail}{cchoutou@ece.auth.gr}
\newcommand{\AuthorAEM}{8997}
\newcommand{\Department}{Τμημα ΗΜΜΥ. Τομεάς Ηλεκτρονικής}
% Packages and document configuration % Packages and document configuration
% =============================================================== % ===============================================================
@@ -54,10 +78,9 @@
% Custom captions under/above floats in tables or figures % Custom captions under/above floats in tables or figures
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}
% Allows customization of section/subsection titles % Allows customization of section/subsection titles
\usepackage{titlesec} \usepackage[nobottomtitles]{titlesec}
\renewcommand{\bottomtitlespace}{0.12\textheight}
\usepackage{titling} \usepackage{titling}
% Change the look of the section and subsection titles % Change the look of the section and subsection titles
@@ -71,6 +94,7 @@
\fancyfoot{} % Blank out the default footer \fancyfoot{} % Blank out the default footer
\fancyfoot[RO,LE]{\thepage} % Custom footer text \fancyfoot[RO,LE]{\thepage} % Custom footer text
\pagenumbering{arabic} \pagenumbering{arabic}
\usepackage[bottom]{footmisc} % Place footnotes always as much to the bottom as possible.
\usepackage{alphabeta} \usepackage{alphabeta}
\usepackage{amsmath,amsfonts,mathtools} \usepackage{amsmath,amsfonts,mathtools}
@@ -93,10 +117,27 @@
% =============================================================== % ===============================================================
% \eng{} % \eng{}
% syntactic suggar for english text % syntactic suggar for english text inside greek
% example \eng{A quick brown fox jumpedover the lazy dog} % example \eng{A quick brown fox jumpedover the lazy dog}
\newcommand{\eng}[1]{ \newcommand{\eng}[1]{\foreignlanguage{english}{#1}}
\foreignlanguage{english}{#1}
% \gr{}
% syntactic suggar for greek text inside english
% example \gr{Άσπρη πέτρα ξέξασπρη κι απτον ήλιο ξεξασπρότερη}
\newcommand{\gr}[1]{\foreignlanguage{greek}{#1}}
% \setEnglish
% Selects english for the rest of the text
\newcommand{\setEnglish}{\selectlanguage{english}}
% \setGreek
% Selects greek for the rest of the text
\newcommand{\setGreek}{\selectlanguage{greek}}
% \BottomTitleSpace{}
% example \BottomTitleSpace{8em}
\newcommand{\BottomTitleSpace}[1]{
\renewcommand{\bottomtitlespace}{#1}
} }
% \FirstPage % \FirstPage
@@ -119,17 +160,23 @@
% vertical space % vertical space
% Authors % Authors
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushleft} \large \begin{flushleft}
\emph{Συντάκτης :} \\ \large
\ifdefined \WorkGroup \emph{\textsc{\WorkGroup}}\\[2ex]\fi
\ifdefined \CoAuthorName \emph{Συντάκτες:} \else \emph{Συντάκτης:}\fi \\
\textsc{\AuthorName} \\ \textsc{\AuthorName} \\
\textsc{AEM:\AuthorAEM} \\[1ex] \textsc{AEM:\AuthorAEM} \\[1ex]
\normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
\large
\ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi
\ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi
\ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi
\end{flushleft} \end{flushleft}
\end{minipage} \end{minipage}
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushright} \large \begin{flushright} \large
\emph{Διδάσκον :} \\ % Instructor \emph{Διδάσκων:} \\ % Instructor
\textsc{\InstructorName}\\[1ex] \textsc{\InstructorName} \\[1ex]
\normalsize \normalsize
\href{mailto:\InstructorMail}{\eng{\InstructorMail}} \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
\end{flushright} \end{flushright}
@@ -141,53 +188,44 @@
\newpage \newpage
} }
% \FirstPageCoAuthor{}{}{} % \TitleHeader
% [1]: CoAuthor's name \newcommand{\TitleHeader}{
% [2]: CoAuthor's AEM \thispagestyle{plain}
% [3]: CoAuthor's email \begin{center} % Center everything on the page
% example: \FirstPage{someone}{1000}{someone@someone.com}
\newcommand{\FirstPageCoAuthor}[3]{
\begin{titlepage}
% Logo % Logo
\begin{figure} \begin{figure}
\begin{flushleft} \center
\includegraphics[width=5cm]{config/images/auth_logogr.png} \includegraphics[width=5cm]{config/images/auth_logogr.png}
\end{flushleft}
\end{figure} \end{figure}
% Titles % Titles
\center % Center everything on the page \textsc{\Large \Department} \\[0.4cm] % Department
\textbf{} \\[3.5cm] % vertical space \textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
\textsc{\Large \Department} \\[0.5cm] % Department {\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
\textsc{\Large \ClassName} \\[1.5cm] % Class/Course name {\large \CurrentDate} \\[0.4cm] % date
\Hrule \\[0.4cm] % -------
{\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
\Hrule \\[3.5cm] % -------
% vertical space
% Authors % Authors
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushleft} \large \begin{flushleft}
\emph{Συντάκτες :} \\ \large
\textsc{\AuthorName} \\ \ifdefined \CoAuthorName \emph{Συντάκτες:} \else \emph{Συντάκτης:}\fi \\
\textsc{AEM:\AuthorAEM} \\[1ex] \textsc{\AuthorName} \\
\normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex] \textsc{AEM:\AuthorAEM} \\[1ex]
\textsc{#1} \\ \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
\textsc{AEM:#2} \\[1ex] \large
\normalsize \href{mailto:#3}{\eng{#3}} \ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi
\ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi
\ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi
\end{flushleft} \end{flushleft}
\end{minipage} \end{minipage}
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushright} \large \begin{flushright} \large
\emph{Διδάσκον :} \\ % Instructor \emph{Διδάσκων:} \\ % Instructor
\textsc{\InstructorName}\\[1ex] \textsc{\InstructorName} \\[1ex]
\normalsize \normalsize
\href{mailto:\InstructorMail}{\eng{\InstructorMail}} \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
\end{flushright} \end{flushright}
\end{minipage} \\ \end{minipage}
\vfill \end{center}
{\large \CurrentDate} \\ % date \text{} \\
\end{titlepage}
\newpage
} }
% \setFancyHead{}{} % \setFancyHead{}{}
@@ -243,4 +281,3 @@
\vspace{-20pt} \vspace{-20pt}
\end{wrapfigure} \end{wrapfigure}
} }