-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
235 lines (185 loc) · 8.12 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Journal Article
% LaTeX Template
% Version 1.0.1 (2020-11-30)
%
% Original authors:
% Frits Wenneker (http://www.howtotex.com) and
% Vel (vel@LaTeXTemplates.com) from http://www.LaTeXTemplates.com
%
% Modified by Nils Höll
%
% License:
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PAPER SETUP
%----------------------------------------------------------------------------------------
\newcommand*{\mytitle}{Catchy Title} % Paper Title
\newcommand*{\myauthor}{John Doe} % Paper Author
\newcommand*{\mymail}{\href{mailto:author@university.com}{author@university.com}} % eMail address
\newcommand*{\mydate}{January 2021} % Publication Date
\newcommand*{\myorg}{University of Paper Writing} % Organization or University this paper was published in
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[twoside,twocolumn]{article}
\usepackage{blindtext} % Package to generate dummy text throughout this template
% ------- FONTS -------
\usepackage[sc]{mathpazo} % Use the Palatino font
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\linespread{1.05} % Line spacing - Palatino needs more space between lines
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[english]{babel} % Language hyphenation and typographical rules
% ------- DOCUMENT MARGINS -------
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} % Document margins
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats in tables or figures
\usepackage{booktabs} % Horizontal rules in tables
\usepackage{graphicx}
\usepackage{lettrine} % The lettrine is the first enlarged letter at the beginning of the text
% ------- LISTS -------
\usepackage{enumitem} % Customized lists
\setlist[itemize]{noitemsep} % Make itemize lists more compact
% ------- ABSTRACT -------
\usepackage{abstract} % Allows abstract customization
\renewcommand{\abstractnamefont}{\normalfont\bfseries} % Set the "Abstract" text to bold
\renewcommand{\abstracttextfont}{\normalfont\small\itshape} % Set the abstract itself to small italic text
% ------- SECTION TITLES -------
\usepackage{titlesec} % Allows customization of titles
\renewcommand\thesection{\Roman{section}} % Roman numerals for the sections
\renewcommand\thesubsection{\roman{subsection}} % roman numerals for subsections
\titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{} % Change the look of the section titles
\titleformat{\subsection}[block]{\large}{\thesubsection.}{1em}{} % Change the look of the section titles
% ------- HEADERS AND FOOTERS -------
\usepackage{fancyhdr} % Headers and footers
\pagestyle{fancy} % All pages have headers and footers
\fancyhead{} % Blank out the default header
\fancyfoot{} % Blank out the default footer
\fancyhead[C]{\mytitle\, $\bullet$ \mydate\, $\bullet$ \myorg} % Custom header text
\fancyfoot[RO,LE]{\thepage} % Custom footer text
\usepackage{titling} % Customizing the title section
% ------- HYPERREF -------
\usepackage{hyperref} % For hyperlinks in the PDF
\AtBeginDocument{
\hypersetup{pdftitle={\mytitle}} % Set the PDF's title to your title
\hypersetup{pdfauthor={\myauthor}} % Set the PDF's author to your name
\hypersetup{hidelinks} % Prints all links black; comment out for default LaTeX behavior
}
% ------- BIBTEX -------
\usepackage[backend=bibtex,style=numeric,citestyle=numeric,natbib=true]{biblatex}
\addbibresource{sources.bib}
\usepackage[autostyle=true]{csquotes}
% ------- COLORS -------
% Define colors for highlighting
\usepackage{xcolor}
\definecolor{lstbg}{gray}{0.95}
\definecolor{lstComment}{RGB}{51, 102, 0}
\definecolor{lstKey}{RGB}{0, 51, 204}
\definecolor{lstStr}{RGB}{162, 43, 43}
%------------------------------------------------
% CODE LISTINGS
%------------------------------------------------
\usepackage{listings}
% Load required languages
\lstloadlanguages{Python}
% Styling
\lstset{
showtabs=false,
showspaces=false,
showstringspaces=false,
basicstyle=\ttfamily,
numbers=left, numberstyle=\tiny,
columns=fullflexible,
frame=single,
breaklines=true,
% prebreak={\\},
backgroundcolor=\color{lstbg},
commentstyle=\color{lstComment},
stringstyle=\color{lstStr},
keywordstyle=\color{lstKey},
literate=
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {ß}{{\ss}}1
}
% Better highlighting for inline code
\newcommand{\linecode}[1]{%
\colorbox{lstbg}{\textcolor{lstStr}{\textbf{\texttt{#1}}}}%
}
%------------------------------------------------
% ACRONYMS
%------------------------------------------------
\usepackage[nohyperlinks, printonlyused]{acronym} % Prints only used acronyms in overview
\newacro{http}[HTTP]{Hypertext Transport Protocol}
\newacro{https}[HTTPS]{Hypertext Transport Protocol Secure}
\newacro{fido}[FIDO]{Fast Identity Online}
\newacro{fido2}[FIDO2]{Fast Identity Online 2}
% \newacro{id}[ABRV]{Abbreviation}
% \acro{}[]{}
% Use
% - \ac{id} for standard behavior
% - \acs{id} for acronym
% - \acl{id} for long version
% - \acp{id} for plural (with 's' at the end)
%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------
\setlength{\droptitle}{-4\baselineskip} % Move the title up
\pretitle{\begin{center}\Huge\bfseries} % Article title formatting
\posttitle{\end{center}} % Article title closing formatting
\title{\mytitle} % Article title
\author{%
\textsc{\myauthor} \\[1ex] % First author's name
\normalsize \myorg \\ % First author's institution
\normalsize \mymail % First author's email address
% \and % Uncomment if 2 authors are required, duplicate these 4 lines if more
% \textsc{Author 2} \\[1ex] % Second author's name
% \normalsize University 2 \\ % Second author's institution
% \normalsize \href{mailto:author@university.com}{author@university.com} % Second author's email address
}
\date{\mydate} % Leave empty to omit a date
\renewcommand{\maketitlehookd}{%
%------------------------------------------------
% ABSTRACT
%------------------------------------------------
\begin{abstract}
\noindent \blindtext
\end{abstract}
}
%----------------------------------------------------------------------------------------
\begin{document}
% Print the title
\maketitle
%----------------------------------------------------------------------------------------
% ARTICLE CONTENTS
%----------------------------------------------------------------------------------------
% Section 1 - Introduction
\input{Sections/section1.tex}
%------------------------------------------------
% Section 2 - Foundations
\input{Sections/section2.tex}
%------------------------------------------------
% Section 3 - Methods
\input{Sections/section3.tex}
%------------------------------------------------
% Section 4 - Results
\input{Sections/section4.tex}
%------------------------------------------------
% Section 5 - Discussion
\input{Sections/section5.tex}
% Single column layout for the rest of the paper
\onecolumn
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\printbibliography[heading=bibintoc]
%------------------------------------------------
% Section 5 - Appendix
\input{Sections/appendix.tex}
%----------------------------------------------------------------------------------------
\end{document}