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