Compare commits

..
2 Commits
Author SHA1 Message Date
hoo2 5523c571a9 Add support for working group in first page 2020-12-20 19:54:33 +02:00
hoo2 4b3765f4ab Better eng-gr support 2020-11-08 20:59:32 +02:00
+16 -14
View File
@@ -15,6 +15,7 @@
% \CoAuthorMail: Co-author's mail [optional] % \CoAuthorMail: Co-author's mail [optional]
% \DocTitle: To print document title (also in fancyheader) % \DocTitle: To print document title (also in fancyheader)
% \CoAuthorAEM : Co-author's AEM [optional] % \CoAuthorAEM : Co-author's AEM [optional]
% \WorkGroup: Working group of the assignment/project
% \Department: The School % \Department: The School
% \ClassName: Class name to print (also in fancyheader) % \ClassName: Class name to print (also in fancyheader)
% \InstructorName: To print instructor's mame % \InstructorName: To print instructor's mame
@@ -118,16 +119,12 @@
% \eng{} % \eng{}
% syntactic suggar for english text inside greek % 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{} % \gr{}
% syntactic suggar for greek text inside english % syntactic suggar for greek text inside english
% example \gr{Άσπρη πέτρα ξέξασπρη κι απτον ήλιο ξεξασπρότερη} % example \gr{Άσπρη πέτρα ξέξασπρη κι απτον ήλιο ξεξασπρότερη}
\newcommand{\gr}[1]{ \newcommand{\gr}[1]{\foreignlanguage{greek}{#1}}
\foreignlanguage{greek}{#1}
}
% \setEnglish % \setEnglish
% Selects english for the rest of the text % Selects english for the rest of the text
@@ -163,11 +160,14 @@
% vertical space % vertical space
% Authors % Authors
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushleft} \large \begin{flushleft}
\ifdefined \CoAuthorName \emph{Συντάκτες :} \else \emph{Συντάκτης :}\fi \\ \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}} \\[2ex] \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
\large
\ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi \ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi
\ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi \ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi
\ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi \ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi
@@ -175,8 +175,8 @@
\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}
@@ -204,11 +204,13 @@
{\large \CurrentDate} \\[0.4cm] % date {\large \CurrentDate} \\[0.4cm] % date
% Authors % Authors
\begin{minipage}{0.4\textwidth} \begin{minipage}{0.4\textwidth}
\begin{flushleft} \large \begin{flushleft}
\ifdefined \CoAuthorName \emph{Συντάκτες :} \else \emph{Συντάκτης :}\fi \\ \large
\ifdefined \CoAuthorName \emph{Συντάκτες:} \else \emph{Συντάκτης:}\fi \\
\textsc{\AuthorName} \\ \textsc{\AuthorName} \\
\textsc{AEM:\AuthorAEM} \\[1ex] \textsc{AEM:\AuthorAEM} \\[1ex]
\normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex] \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
\large
\ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi \ifdefined\CoAuthorName \textsc{\CoAuthorName} \\ \fi
\ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi \ifdefined\CoAuthorAEM \textsc{AEM:\CoAuthorAEM} \\[1ex] \fi
\ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi \ifdefined\CoAuthorMail \normalsize \href{mailto:\CoAuthorMail}{\eng{\CoAuthorMail}} \fi
@@ -216,8 +218,8 @@
\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}