LaTeX_confing/AuthReportConfig.tex

284 lines
9.3 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%
% AUTH report settings
%
% author:
% Χρήστος Χουτουρίδης ΑΕΜ 8997
% cchoutou@ece.auth.gr
% Configuration requirements as new commands
% ===============================================================
%
% \AuthorName: Author's name
% \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
% \InstructorMail: To print instructor's mame
% \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
% ===============================================================
% \eng{}
% \gr{}
% \setEnglish
% \setGreek
% \BottomTitleSpace{}
% \FirstPage
% \TitleHeader
% \setFancyHeadLR{}{}
% \setFancyHeadLERO{}{}
% \InsertFigure{}{}{}{}
% \WrapFigure{}{}{}{}{}
% Packages and document configuration
% ===============================================================
\documentclass[11pt, twoside, a4paper]{article}
\usepackage[margin=20mm, top=25mm]{geometry} % Document margins
\usepackage[LGR, T1]{fontenc} % Language hyphenation and typographical rules
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage{lmodern}
\usepackage[english, greek]{babel}
\usepackage[pdfencoding=auto]{hyperref}
\usepackage{enumitem} % Customized lists
\setlist[itemize]{noitemsep} % Make itemize lists more compact
\usepackage{graphicx} % Graphics and figures
\graphicspath{ {images/} }
\usepackage{wrapfig}
% Custom captions under/above floats in tables or figures
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}
% Allows customization of section/subsection titles
\usepackage[nobottomtitles]{titlesec}
\renewcommand{\bottomtitlespace}{0.12\textheight}
\usepackage{titling}
% Change the look of the section and subsection titles
\titleformat{\section}[block]{\large\scshape}{\thesection.}{1em}{}
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{}
% Headers
\usepackage{fancyhdr}
\pagestyle{fancy} % All pages have headers and footers
\fancyhead{} % Blank out the default header
\fancyfoot{} % Blank out the default footer
\fancyfoot[RO,LE]{\thepage} % Custom footer text
\pagenumbering{arabic}
\usepackage[bottom]{footmisc} % Place footnotes always as much to the bottom as possible.
\usepackage{alphabeta}
\usepackage{amsmath,amsfonts,mathtools}
%\usepackage{multicol}
%\usepackage{csvsimple}
%\usepackage{tabularx}
%\usepackage{lscape}
% Local commands
% ===============================================================
% syntactic suggar for horizaontal rule
\newcommand{\Hrule}{
\rule{\linewidth}{0.1mm}
}
% AUTH report exported commands
% ===============================================================
% \eng{}
% syntactic suggar for english text inside greek
% example \eng{A quick brown fox jumpedover the lazy dog}
\newcommand{\eng}[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
\newcommand{\FirstPage}{
\begin{titlepage}
% Logo
\begin{figure}
\begin{flushleft}
\includegraphics[width=5cm]{config/images/auth_logogr.png}
\end{flushleft}
\end{figure}
% Titles
\center % Center everything on the page
\textbf{} \\[3.5cm] % vertical space
\textsc{\Large \Department} \\[0.5cm] % Department
\textsc{\Large \ClassName} \\[1.5cm] % Class/Course name
\Hrule \\[0.4cm] % -------
{\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
\Hrule \\[3.5cm] % -------
% vertical space
% Authors
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
\large
\ifdefined \WorkGroup \emph{\textsc{\WorkGroup}}\\[2ex]\fi
\ifdefined \CoAuthorName \emph{Συντάκτες:} \else \emph{Συντάκτης:}\fi \\
\textsc{\AuthorName} \\
\textsc{AEM:\AuthorAEM} \\[1ex]
\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{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Διδάσκων:} \\ % Instructor
\textsc{\InstructorName} \\[1ex]
\normalsize
\href{mailto:\InstructorMail}{\eng{\InstructorMail}}
\end{flushright}
\end{minipage} \\
\vfill
{\large \CurrentDate} \\ % date
\end{titlepage}
\newpage
}
% \TitleHeader
\newcommand{\TitleHeader}{
\thispagestyle{plain}
\begin{center} % Center everything on the page
% Logo
\begin{figure}
\center
\includegraphics[width=5cm]{config/images/auth_logogr.png}
\end{figure}
% Titles
\textsc{\Large \Department} \\[0.4cm] % Department
\textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
{\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
{\large \CurrentDate} \\[0.4cm] % date
% Authors
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
\large
\ifdefined \CoAuthorName \emph{Συντάκτες:} \else \emph{Συντάκτης:}\fi \\
\textsc{\AuthorName} \\
\textsc{AEM:\AuthorAEM} \\[1ex]
\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{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Διδάσκων:} \\ % Instructor
\textsc{\InstructorName} \\[1ex]
\normalsize
\href{mailto:\InstructorMail}{\eng{\InstructorMail}}
\end{flushright}
\end{minipage}
\end{center}
\text{} \\
}
% \setFancyHead{}{}
% [1]: Left text
% [2]: Right text
% example: \setFancyHead{Μαθημα}{Εργασία}
\newcommand{\setFancyHeadLR}[2]{
\fancyhead[L]{#1}
\fancyhead[R]{#2}
}
% \setFancyHead{}{}
% [1]: Left, even page text
% [2]: Right, odd page text
% example: \setFancyHead{Μαθημα}{Εργασία}
\newcommand{\setFancyHeadLERO}[2]{
\fancyhead[LE]{#1}
\fancyhead[RO]{#2}
}
% \InsertFigure{}{}{}{}
% [1]: scale
% [2]: Label
% [3]: Figure file
% [4]: Caption text
% example: \InsertFigure{0.8}{fig:lala}{lala.png}{\eng{Makes lala}}
\newcommand{\InsertFigure}[4]{
\begin{figure*}[h!]
\captionsetup{format=plain}
\centering
\includegraphics[width=#1\textwidth]{#3}
\caption{#4}
\label{#2}
\end{figure*}
}
% \WrapFigure{}{}{}{}
% [1]: scale
% [2]: place left or right r,l,R,L
% [3]: Label
% [4]: Figure file
% [5]: Caption text
% example: \WrapFigure{0.8}{r}{fig:lala}{lala.png}{\eng{Makes lala}}
\newcommand{\WrapFigure}[5]{
\begin{wrapfigure}{#2}{#1\textwidth}
\vspace{-20pt}
\begin{center}
\captionsetup{format=plain}
\includegraphics[width=#1\textwidth]{#4}
\caption{#5}
\label{#3}
\end{center}
\vspace{-20pt}
\end{wrapfigure}
}