settings.tex (1904B)
1 \usepackage[utf8]{inputenc} 2 \usepackage{amsmath} 3 \usepackage{amsfonts} 4 \usepackage{amssymb} 5 \usepackage{graphicx} 6 \usepackage[final]{pdfpages} 7 \usepackage{stmaryrd} 8 \usepackage{listings} 9 \usepackage[hidelinks]{hyperref} 10 \usepackage[english]{babel} 11 \usepackage{color} 12 \usepackage{fancyhdr} 13 \usepackage{xcolor} 14 \usepackage{url} 15 \usepackage{sectsty} 16 \usepackage{etoolbox} 17 \usepackage{tikz} 18 \usepackage{parskip} 19 \usepackage[style=long,nonumberlist,toc,sort=use]{glossaries} 20 \usepackage{caption} 21 22 % Abstract 23 \patchcmd{\abstract}{\null\vfil}{}{}{} 24 25 % Margins 26 \topmargin=-0.2in 27 \oddsidemargin=0.4in 28 \textwidth=5.5in 29 30 % Graphics and images 31 \graphicspath{{./images/}} 32 33 % Set headers to sans serif 34 \allsectionsfont{\sffamily} 35 36 % Defining colors for syntax highlighting 37 \definecolor{commentsColor}{rgb}{0.497495, 0.497587, 0.497464} 38 \definecolor{keywordsColor}{rgb}{0.000000, 0.000000, 0.635294} 39 \definecolor{stringColor}{rgb}{0.558215, 0.000000, 0.135316} 40 41 \lstset{aboveskip=20pt,belowskip=20pt} 42 43 % Source: https://denbeke.be/blog/programming/syntax-highlighting-in-latex/ 44 \lstset{ 45 backgroundcolor=\color{white}, 46 basicstyle=\ttfamily\small, 47 breakatwhitespace=false, 48 breaklines=true, 49 postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space}, 50 captionpos=b, 51 commentstyle=\color{commentsColor}\textit, 52 deletekeywords={...}, 53 escapeinside={\%*}{*)}, 54 extendedchars=true, 55 frame=tb, 56 keepspaces=true, 57 keywordstyle=\color{keywordsColor}\bfseries, 58 %language=Python, 59 otherkeywords={*,...}, 60 %numbers=left, 61 numbersep=5pt, 62 numberstyle=\tiny\color{commentsColor}, 63 rulecolor=\color{black}, 64 showspaces=false, 65 showstringspaces=false, 66 showtabs=false, 67 stepnumber=1, 68 stringstyle=\color{stringColor}, 69 tabsize=2, 70 title=\lstname, 71 columns=fixed 72 } 73 74 % Bibliography 75 \bibliographystyle{unsrt} 76 77 % Pagestyle 78 \pagestyle{fancy} 79 80 % Hyperlinks 81 \hypersetup{ 82 colorlinks=true, 83 allcolors=black 84 }