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.

327 lignes
11 KiB

  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. \usepackage[nobottomtitles*]{titlesec}
  53. % Allows customization of section/subsection titles
  54. \usepackage{titlesec}
  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{alphabeta}
  67. \usepackage{amsmath,amsfonts,mathtools}
  68. %\usepackage{multicol}
  69. %\usepackage{csvsimple}
  70. %\usepackage{tabularx}
  71. %\usepackage{lscape}
  72. % Local commands
  73. % ===============================================================
  74. % syntactic suggar for horizaontal rule
  75. \newcommand{\Hrule}{
  76. \rule{\linewidth}{0.1mm}
  77. }
  78. % AUTH report exported commands
  79. % ===============================================================
  80. % \eng{}
  81. % syntactic suggar for english text
  82. % example \eng{A quick brown fox jumpedover the lazy dog}
  83. \newcommand{\eng}[1]{
  84. \foreignlanguage{english}{#1}
  85. }
  86. % \FirstPage
  87. \newcommand{\FirstPage}{
  88. \begin{titlepage}
  89. % Logo
  90. \begin{figure}
  91. \begin{flushleft}
  92. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  93. \end{flushleft}
  94. \end{figure}
  95. % Titles
  96. \center % Center everything on the page
  97. \textbf{} \\[3.5cm] % vertical space
  98. \textsc{\Large \Department} \\[0.5cm] % Department
  99. \textsc{\Large \ClassName} \\[1.5cm] % Class/Course name
  100. \Hrule \\[0.4cm] % -------
  101. {\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
  102. \Hrule \\[3.5cm] % -------
  103. % vertical space
  104. % Authors
  105. \begin{minipage}{0.4\textwidth}
  106. \begin{flushleft} \large
  107. \emph{Συντάκτης :} \\
  108. \textsc{\AuthorName} \\
  109. \textsc{AEM:\AuthorAEM} \\[1ex]
  110. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}}
  111. \end{flushleft}
  112. \end{minipage}
  113. \begin{minipage}{0.4\textwidth}
  114. \begin{flushright} \large
  115. \emph{Διδάσκον :} \\ % Instructor
  116. \textsc{\InstructorName}\\[1ex]
  117. \normalsize
  118. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  119. \end{flushright}
  120. \end{minipage} \\
  121. \vfill
  122. {\large \CurrentDate} \\ % date
  123. \end{titlepage}
  124. \newpage
  125. }
  126. % \FirstPageCoAuthor{}{}{}
  127. % [1]: CoAuthor's name
  128. % [2]: CoAuthor's AEM
  129. % [3]: CoAuthor's email
  130. % example: \FirstPage{someone}{1000}{someone@someone.com}
  131. \newcommand{\FirstPageCoAuthor}[3]{
  132. \begin{titlepage}
  133. % Logo
  134. \begin{figure}
  135. \begin{flushleft}
  136. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  137. \end{flushleft}
  138. \end{figure}
  139. % Titles
  140. \center % Center everything on the page
  141. \textbf{} \\[3.5cm] % vertical space
  142. \textsc{\Large \Department} \\[0.5cm] % Department
  143. \textsc{\Large \ClassName} \\[1.5cm] % Class/Course name
  144. \Hrule \\[0.4cm] % -------
  145. {\huge \bfseries \DocTitle} \\[0.1cm] % Document/Assignement Title
  146. \Hrule \\[3.5cm] % -------
  147. % vertical space
  148. % Authors
  149. \begin{minipage}{0.4\textwidth}
  150. \begin{flushleft} \large
  151. \emph{Συντάκτες :} \\
  152. \textsc{\AuthorName} \\
  153. \textsc{AEM:\AuthorAEM} \\[1ex]
  154. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
  155. \textsc{#1} \\
  156. \textsc{AEM:#2} \\[1ex]
  157. \normalsize \href{mailto:#3}{\eng{#3}}
  158. \end{flushleft}
  159. \end{minipage}
  160. \begin{minipage}{0.4\textwidth}
  161. \begin{flushright} \large
  162. \emph{Διδάσκον :} \\ % Instructor
  163. \textsc{\InstructorName}\\[1ex]
  164. \normalsize
  165. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  166. \end{flushright}
  167. \end{minipage} \\
  168. \vfill
  169. {\large \CurrentDate} \\ % date
  170. \end{titlepage}
  171. \newpage
  172. }
  173. % \TitleHeader
  174. \newcommand{\TitleHeader}{
  175. \thispagestyle{plain}
  176. \begin{center} % Center everything on the page
  177. % Logo
  178. \begin{figure}
  179. \center
  180. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  181. \end{figure}
  182. % Titles
  183. \textsc{\Large \Department} \\[0.4cm] % Department
  184. \textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
  185. {\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
  186. {\large \CurrentDate} \\[0.4cm] % date
  187. % Authors
  188. \begin{minipage}{0.4\textwidth}
  189. \begin{flushleft} \large
  190. \emph{Συντάκτης :} \\
  191. \textsc{\AuthorName}
  192. \textsc{AEM:\AuthorAEM} \\[1ex]
  193. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}}
  194. \end{flushleft}
  195. \end{minipage}
  196. \begin{minipage}{0.4\textwidth}
  197. \begin{flushright} \large
  198. \emph{Διδάσκον :} \\ % Instructor
  199. \textsc{\InstructorName}\\[1ex]
  200. \normalsize
  201. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  202. \end{flushright}
  203. \end{minipage}
  204. \end{center}
  205. \text{} \\
  206. }
  207. % \TitleHeaderCoAuthor{}{}{}
  208. % [1]: CoAuthor's name
  209. % [2]: CoAuthor's AEM
  210. % [3]: CoAuthor's email
  211. % example: \TitleHeader{someone}{1000}{someone@someone.com}
  212. \newcommand{\TitleHeaderCoAuthor}[3]{
  213. \thispagestyle{plain}
  214. \begin{center} % Center everything on the page
  215. % Logo
  216. \begin{figure}
  217. \center
  218. \includegraphics[width=5cm]{config/images/auth_logogr.png}
  219. \end{figure}
  220. % Titles
  221. \textsc{\Large \Department} \\[0.4cm] % Department
  222. \textsc{\Large \ClassName} \\[0.1cm] % Class/Course name
  223. {\Large \bfseries \DocTitle} \\[0.2cm] % Document/Assignement Title
  224. {\large \CurrentDate} \\[0.4cm] % date
  225. % Authors
  226. \begin{minipage}{0.4\textwidth}
  227. \begin{flushleft} \large
  228. \emph{Συντάκτες :} \\
  229. \textsc{\AuthorName}
  230. \textsc{AEM:\AuthorAEM} \\[1ex]
  231. \normalsize \href{mailto:\AuthorMail}{\eng{\AuthorMail}} \\[2ex]
  232. \textsc{#1}
  233. \textsc{AEM:#2} \\[1ex]
  234. \normalsize \href{mailto:#3}{\eng{#3}}
  235. \end{flushleft}
  236. \end{minipage}
  237. \begin{minipage}{0.4\textwidth}
  238. \begin{flushright} \large
  239. \emph{Διδάσκον :} \\ % Instructor
  240. \textsc{\InstructorName}\\[1ex]
  241. \normalsize
  242. \href{mailto:\InstructorMail}{\eng{\InstructorMail}}
  243. \end{flushright}
  244. \end{minipage}
  245. \end{center}
  246. \text{} \\
  247. }
  248. % \setFancyHead{}{}
  249. % [1]: Left text
  250. % [2]: Right text
  251. % example: \setFancyHead{Μαθημα}{Εργασία}
  252. \newcommand{\setFancyHeadLR}[2]{
  253. \fancyhead[L]{#1}
  254. \fancyhead[R]{#2}
  255. }
  256. % \setFancyHead{}{}
  257. % [1]: Left, even page text
  258. % [2]: Right, odd page text
  259. % example: \setFancyHead{Μαθημα}{Εργασία}
  260. \newcommand{\setFancyHeadLERO}[2]{
  261. \fancyhead[LE]{#1}
  262. \fancyhead[RO]{#2}
  263. }
  264. % \InsertFigure{}{}{}{}
  265. % [1]: scale
  266. % [2]: Label
  267. % [3]: Figure file
  268. % [4]: Caption text
  269. % example: \InsertFigure{0.8}{fig:lala}{lala.png}{\eng{Makes lala}}
  270. \newcommand{\InsertFigure}[4]{
  271. \begin{figure*}[h!]
  272. \captionsetup{format=plain}
  273. \centering
  274. \includegraphics[width=#1\textwidth]{#3}
  275. \caption{#4}
  276. \label{#2}
  277. \end{figure*}
  278. }
  279. % \WrapFigure{}{}{}{}
  280. % [1]: scale
  281. % [2]: place left or right r,l,R,L
  282. % [3]: Label
  283. % [4]: Figure file
  284. % [5]: Caption text
  285. % example: \WrapFigure{0.8}{r}{fig:lala}{lala.png}{\eng{Makes lala}}
  286. \newcommand{\WrapFigure}[5]{
  287. \begin{wrapfigure}{#2}{#1\textwidth}
  288. \vspace{-20pt}
  289. \begin{center}
  290. \captionsetup{format=plain}
  291. \includegraphics[width=#1\textwidth]{#4}
  292. \caption{#5}
  293. \label{#3}
  294. \end{center}
  295. \vspace{-20pt}
  296. \end{wrapfigure}
  297. }