A LaTeX configuration files to use for various reports
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

AuthReportConfig.tex 11 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. %
  2. % AUTH report settings
  3. %
  4. % author:
  5. % Χρήστος Χουτουρίδης ΑΕΜ 8997
  6. % cchoutou@ece.auth.gr
  7. % Requirements
  8. % ===============================================================
  9. %
  10. % \ClassName: To print Class name
  11. % \DocTitle: To print document title
  12. % \InstructorName: To print instructor's mame
  13. % \InstructorMail: To print instructor's mame
  14. % \CurrentDate: To print the date
  15. % Exported commands
  16. % ===============================================================
  17. % \eng{}
  18. % \FirstPage
  19. % \FirstPageCoAuthor{}{}{}
  20. % \TitleHeader
  21. % \TitleHeaderCoAuthor{}{}{}
  22. % \setFancyHeadLR{}{}
  23. % \setFancyHeadLERO{}{}
  24. % \InsertFigure{}{}{}{}
  25. % \WrapFigure{}{}{}{}{}
  26. % Global configuration
  27. % ===============================================================
  28. % Note: You can reassign them with \renewcommand
  29. % AFTER the \input{AuthReportConfig.tex}
  30. %
  31. \newcommand{\AuthorName}{Χρήστος Χουτουρίδης}
  32. \newcommand{\AuthorMail}{cchoutou@ece.auth.gr}
  33. \newcommand{\AuthorAEM}{8997}
  34. \newcommand{\Department}{Τμημα ΗΜΜΥ. Τομεάς Ηλεκτρονικής}
  35. % Packages and document configuration
  36. % ===============================================================
  37. \documentclass[11pt, twoside, a4paper]{article}
  38. \usepackage[margin=20mm, top=25mm]{geometry} % Document margins
  39. \usepackage[LGR, T1]{fontenc} % Language hyphenation and typographical rules
  40. \usepackage[utf8]{inputenc}
  41. \usepackage{microtype}
  42. \usepackage{lmodern}
  43. \usepackage[english, greek]{babel}
  44. \usepackage[pdfencoding=auto]{hyperref}
  45. \usepackage{enumitem} % Customized lists
  46. \setlist[itemize]{noitemsep} % Make itemize lists more compact
  47. \usepackage{graphicx} % Graphics and figures
  48. \graphicspath{ {images/} }
  49. \usepackage{wrapfig}
  50. % Custom captions under/above floats in tables or figures
  51. \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}
  52. % Allows customization of section/subsection titles
  53. \usepackage[nobottomtitles]{titlesec}
  54. \renewcommand{\bottomtitlespace}{0.12\textheight}
  55. \usepackage{titling}
  56. % Change the look of the section and subsection titles
  57. \titleformat{\section}[block]{\large\scshape}{\thesection.}{1em}{}
  58. \titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{}
  59. % Headers
  60. \usepackage{fancyhdr}
  61. \pagestyle{fancy} % All pages have headers and footers
  62. \fancyhead{} % Blank out the default header
  63. \fancyfoot{} % Blank out the default footer
  64. \fancyfoot[RO,LE]{\thepage} % Custom footer text
  65. \pagenumbering{arabic}
  66. \usepackage[bottom]{footmisc} % Place footnotes always as much to the bottom as possible.
  67. \usepackage{alphabeta}
  68. \usepackage{amsmath,amsfonts,mathtools}
  69. %\usepackage{multicol}
  70. %\usepackage{csvsimple}
  71. %\usepackage{tabularx}
  72. %\usepackage{lscape}
  73. % Local commands
  74. % ===============================================================
  75. % syntactic suggar for horizaontal rule
  76. \newcommand{\Hrule}{
  77. \rule{\linewidth}{0.1mm}
  78. }
  79. % AUTH report exported commands
  80. % ===============================================================
  81. % \BottomTitleSpace{}
  82. % example \BottomTitleSpace{8em}
  83. \newcommand{\BottomTitleSpace}[1]{
  84. \renewcommand{\bottomtitlespace}{#1}
  85. }
  86. % \eng{}
  87. % syntactic suggar for english text
  88. % example \eng{A quick brown fox jumpedover the lazy dog}
  89. \newcommand{\eng}[1]{
  90. \foreignlanguage{english}{#1}
  91. }
  92. % \FirstPage
  93. \newcommand{\FirstPage}{
  94. \begin{titlepage}
  95. % Logo
  96. \begin{figure}
  97. \begin{flushleft}
  98. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  99. \end{flushleft}
  100. \end{figure}
  101. % Titles
  102. \center % Center everything on the page
  103. \textbf{} \\[3.5cm] % vertical space
  104. \textsc{\Large \Department} \\[0.5cm] % Department
  105. \textsc{\Large \ClassName} \\[1.5cm] % Class/Course name
  106. \Hrule \\[0.4cm] % -------
  107. {\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
  108. \Hrule \\[3.5cm] % -------
  109. % vertical space
  110. % Authors
  111. \begin{minipage}{0.4\textwidth}
  112. \begin{flushleft} \large
  113. \emph{Συντάκτης :} \\
  114. \textsc{\AuthorName} \\
  115. \textsc{AEM:\AuthorAEM} \\[1ex]
  116. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}}
  117. \end{flushleft}
  118. \end{minipage}
  119. \begin{minipage}{0.4\textwidth}
  120. \begin{flushright} \large
  121. \emph{Διδάσκον :} \\ % Instructor
  122. \textsc{\InstructorName}\\[1ex]
  123. \normalsize
  124. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  125. \end{flushright}
  126. \end{minipage} \\
  127. \vfill
  128. {\large \CurrentDate} \\ % date
  129. \end{titlepage}
  130. \newpage
  131. }
  132. % \FirstPageCoAuthor{}{}{}
  133. % [1]: CoAuthor's name
  134. % [2]: CoAuthor's AEM
  135. % [3]: CoAuthor's email
  136. % example: \FirstPage{someone}{1000}{someone@someone.com}
  137. \newcommand{\FirstPageCoAuthor}[3]{
  138. \begin{titlepage}
  139. % Logo
  140. \begin{figure}
  141. \begin{flushleft}
  142. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  143. \end{flushleft}
  144. \end{figure}
  145. % Titles
  146. \center % Center everything on the page
  147. \textbf{} \\[3.5cm] % vertical space
  148. \textsc{\Large \Department} \\[0.5cm] % Department
  149. \textsc{\Large \ClassName} \\[1.5cm] % Class/Course name
  150. \Hrule \\[0.4cm] % -------
  151. {\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
  152. \Hrule \\[3.5cm] % -------
  153. % vertical space
  154. % Authors
  155. \begin{minipage}{0.4\textwidth}
  156. \begin{flushleft} \large
  157. \emph{Συντάκτες :} \\
  158. \textsc{\AuthorName} \\
  159. \textsc{AEM:\AuthorAEM} \\[1ex]
  160. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
  161. \textsc{#1} \\
  162. \textsc{AEM:#2} \\[1ex]
  163. \normalsize \href{mailto:#3}{\eng{#3}}
  164. \end{flushleft}
  165. \end{minipage}
  166. \begin{minipage}{0.4\textwidth}
  167. \begin{flushright} \large
  168. \emph{Διδάσκον :} \\ % Instructor
  169. \textsc{\InstructorName}\\[1ex]
  170. \normalsize
  171. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  172. \end{flushright}
  173. \end{minipage} \\
  174. \vfill
  175. {\large \CurrentDate} \\ % date
  176. \end{titlepage}
  177. \newpage
  178. }
  179. % \TitleHeader
  180. \newcommand{\TitleHeader}{
  181. \thispagestyle{plain}
  182. \begin{center} % Center everything on the page
  183. % Logo
  184. \begin{figure}
  185. \center
  186. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  187. \end{figure}
  188. % Titles
  189. \textsc{\Large \Department} \\[0.4cm] % Department
  190. \textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
  191. {\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
  192. {\large \CurrentDate} \\[0.4cm] % date
  193. % Authors
  194. \begin{minipage}{0.4\textwidth}
  195. \begin{flushleft} \large
  196. \emph{Συντάκτης :} \\
  197. \textsc{\AuthorName}
  198. \textsc{AEM:\AuthorAEM} \\[1ex]
  199. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}}
  200. \end{flushleft}
  201. \end{minipage}
  202. \begin{minipage}{0.4\textwidth}
  203. \begin{flushright} \large
  204. \emph{Διδάσκον :} \\ % Instructor
  205. \textsc{\InstructorName}\\[1ex]
  206. \normalsize
  207. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  208. \end{flushright}
  209. \end{minipage}
  210. \end{center}
  211. \text{} \\
  212. }
  213. % \TitleHeaderCoAuthor{}{}{}
  214. % [1]: CoAuthor's name
  215. % [2]: CoAuthor's AEM
  216. % [3]: CoAuthor's email
  217. % example: \TitleHeader{someone}{1000}{someone@someone.com}
  218. \newcommand{\TitleHeaderCoAuthor}[3]{
  219. \thispagestyle{plain}
  220. \begin{center} % Center everything on the page
  221. % Logo
  222. \begin{figure}
  223. \center
  224. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  225. \end{figure}
  226. % Titles
  227. \textsc{\Large \Department} \\[0.4cm] % Department
  228. \textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
  229. {\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
  230. {\large \CurrentDate} \\[0.4cm] % date
  231. % Authors
  232. \begin{minipage}{0.4\textwidth}
  233. \begin{flushleft} \large
  234. \emph{Συντάκτες :} \\
  235. \textsc{\AuthorName}
  236. \textsc{AEM:\AuthorAEM} \\[1ex]
  237. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
  238. \textsc{#1}
  239. \textsc{AEM:#2} \\[1ex]
  240. \normalsize \href{mailto:#3}{\eng{#3}}
  241. \end{flushleft}
  242. \end{minipage}
  243. \begin{minipage}{0.4\textwidth}
  244. \begin{flushright} \large
  245. \emph{Διδάσκον :} \\ % Instructor
  246. \textsc{\InstructorName}\\[1ex]
  247. \normalsize
  248. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  249. \end{flushright}
  250. \end{minipage}
  251. \end{center}
  252. \text{} \\
  253. }
  254. % \setFancyHead{}{}
  255. % [1]: Left text
  256. % [2]: Right text
  257. % example: \setFancyHead{Μαθημα}{Εργασία}
  258. \newcommand{\setFancyHeadLR}[2]{
  259. \fancyhead[L]{#1}
  260. \fancyhead[R]{#2}
  261. }
  262. % \setFancyHead{}{}
  263. % [1]: Left, even page text
  264. % [2]: Right, odd page text
  265. % example: \setFancyHead{Μαθημα}{Εργασία}
  266. \newcommand{\setFancyHeadLERO}[2]{
  267. \fancyhead[LE]{#1}
  268. \fancyhead[RO]{#2}
  269. }
  270. % \InsertFigure{}{}{}{}
  271. % [1]: scale
  272. % [2]: Label
  273. % [3]: Figure file
  274. % [4]: Caption text
  275. % example: \InsertFigure{0.8}{fig:lala}{lala.png}{\eng{Makes lala}}
  276. \newcommand{\InsertFigure}[4]{
  277. \begin{figure*}[h!]
  278. \captionsetup{format=plain}
  279. \centering
  280. \includegraphics[width=#1\textwidth]{#3}
  281. \caption{#4}
  282. \label{#2}
  283. \end{figure*}
  284. }
  285. % \WrapFigure{}{}{}{}
  286. % [1]: scale
  287. % [2]: place left or right r,l,R,L
  288. % [3]: Label
  289. % [4]: Figure file
  290. % [5]: Caption text
  291. % example: \WrapFigure{0.8}{r}{fig:lala}{lala.png}{\eng{Makes lala}}
  292. \newcommand{\WrapFigure}[5]{
  293. \begin{wrapfigure}{#2}{#1\textwidth}
  294. \vspace{-20pt}
  295. \begin{center}
  296. \captionsetup{format=plain}
  297. \includegraphics[width=#1\textwidth]{#4}
  298. \caption{#5}
  299. \label{#3}
  300. \end{center}
  301. \vspace{-20pt}
  302. \end{wrapfigure}
  303. }