You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.7KB

  1. %%%%%% PACKAGES %%%%%
  2. \usepackage[T1]{fontenc}
  3. \usepackage{fourier}
  4. \usepackage[protrusion=true,expansion=true]{microtype}
  5. %%% Lang / Locale
  6. \usepackage[english]{babel}
  7. \usepackage[utf8]{inputenc}
  8. %%% Format
  9. \usepackage{multicol} % multi colums
  10. \usepackage[margin=2.6cm]{geometry} % margin
  11. \usepackage{datetime} % dates formatted
  12. \usepackage{abstract} % abstract
  13. %%% Glossary and references
  14. \usepackage[acronym]{glossaries} % acronyms
  15. \usepackage[hidelinks]{hyperref} % removes ugly colored border arround the links
  16. \usepackage[super]{natbib} % makes the reference as word¹
  17. %\usepackage[comma]{natbib} % makes the reference as word¹
  18. \usepackage{natbib} % references
  19. \usepackage{url} % \url
  20. \usepackage{dirtytalk}
  21. %%% Code
  22. \usepackage{listings} % embed code
  23. \usepackage{xcolor} % colors with words
  24. %%% Images
  25. \usepackage{graphicx}
  26. \usepackage{tikz}
  27. \usetikzlibrary{arrows,shapes,decorations.pathmorphing,backgrounds,positioning,fit,petri}\usepackage{caption}
  28. \usepackage{xifthen}
  29. \usepackage{capt-of}
  30. %%% Math packages
  31. \usepackage{amsmath,amsfonts,amsthm}
  32. \usepackage{graphicx}
  33. \usepackage{url}
  34. %%% Custom sectioning
  35. \usepackage{sectsty}
  36. \allsectionsfont{\centering \normalfont\scshape}
  37. %%% Custom headers/footers (fancyhdr package)
  38. \usepackage{lastpage}
  39. \usepackage{fancyhdr}
  40. \pagestyle{fancyplain}
  41. \fancyhead{} % No page header
  42. \fancyfoot[L]{} % Empty
  43. \fancyfoot[C]{} % Empty
  44. \newcommand{\enablePageNumbering}{\fancyfoot[R]{\thepage\space of \pageref{LastPage}}}
  45. \newcommand{\disablePageNumbering}{\fancyfoot[R]{}}
  46. \renewcommand{\headrulewidth}{0pt} % Remove header underlines
  47. \renewcommand{\footrulewidth}{0pt} % Remove footer underlines
  48. \setlength{\headheight}{13.6pt}
  49. %%% Equation and float numbering
  50. \numberwithin{equation}{section} % Equation numbering: section.eq#
  51. \numberwithin{figure}{section} % Figure numbering: section.fig#
  52. \numberwithin{table}{section} % Table numbering: section.tab#
  53. %%% CONFIGURATION
  54. % Configure code embed
  55. \hypersetup{pdfborder={0 0 0}}
  56. \lstdefinestyle{colored}{
  57. belowcaptionskip=1\baselineskip,
  58. breaklines=true,
  59. frame=L,
  60. xleftmargin=\parindent,
  61. language=Ruby,
  62. showstringspaces=false,
  63. basicstyle=\footnotesize\ttfamily,
  64. numberstyle=\color{red},
  65. keywordstyle=\color{green},
  66. commentstyle=\itshape\color{purple},
  67. identifierstyle=\color{blue},
  68. stringstyle=\color{orange},
  69. }
  70. \lstset{escapechar=@,style=colored}
  71. % ...
  72. \usepackage{setspace}
  73. %%% NEW Commands
  74. \newcommand{\inlinecode}{\texttt}
  75. \newcommand{\italic}[1]{{\em #1}}
  76. \newcommand{\italicpl}[1]{{\em #1}{\em s}}
  77. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  78. %\setcitestyle{authoryear,open={(},close={)}}