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.

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