-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tex
122 lines (108 loc) · 3.15 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
\usepackage{xparse}
% Fonts
\usepackage[T1]{fontenc}
\usepackage[supstfm=libertinesups]{superiors}
\usepackage[mono=false]{libertinus}
\usepackage{libertinust1math}
\usepackage{libertinehologopatch}
\usepackage{microtype}
\microtypesetup{tracking=smallcaps,letterspace=50}
\usepackage{textcomp}
\usepackage{fnpct}
%\usepackage[scaled=0.83]{beramono}
%\usepackage[varqu,varl]{inconsolata}
\usepackage[scaled=1.05]{zlmtt}
\usepackage{listings}
\lstset{
basicstyle = \ttfamily\small,
numbers = left,
numberstyle = \tiny,
xleftmargin = 1em,
numbersep = .75em,
columns = fullflexible,
breaklines = true,
keepspaces = true,
breakindent = 1em,
frame = tb,
framerule = .8pt,
rulecolor = \color{listingrulecolor}
}
\usepackage[per-mode=symbol]{siunitx}
\usepackage{bm}
\usepackage{upgreek}
\usepackage{amsmath}
% TikZ
\usepackage{tikz}
\usepackage{pgf-pie}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\input{tex/theme-syntra-bizz}
\input{tex/headings}
\usepackage[abbreviations,automake,stylemods=mcols,shortcuts=ac,nonumberlist,indexcrossrefs=true]{glossaries-extra}
\newcommand{\abbr}[1]{\textsc{\MakeLowercase{#1}}}
\newcommand{\iacs}[1]{\index{#1@\acs{#1}}}
\newcommand{\iacl}[1]{\index{\acl{#1}}}
\setlength{\columnsep}{3em}
\setabbreviationstyle{long-short-sc}
\renewcommand*{\glsabbrvscfont}[1]{\abbr{#1}}
\makeglossaries
\loadglsentries{tex/abbreviations}
\loadglsentries{tex/glossary}
\glsdisablehyper
% Links
\usepackage{varioref}
\usepackage{hyperref}
\usepackage{cleveref}
\urlstyle{rm}
\hypersetup{colorlinks=true,allcolors=linkcolor,linktocpage}
\creflabelformat{equation}{#2\textup{#1}#3} % remove the brackets from an equation reference, i.e. "eq. 2.1" instead of "eq. (2.1)"
\useosf
\title{Computer networks}
\author{Tom Marcoen}
\date{2021--2023}
\begin{document}
\mode<article>{
\input{tex/titlepages}
\frontmatter
\clearforchapter
\tableofcontents*
\clearforchapter
\listoffigures
\clearforchapter
\listoftables
\input{chapters/preface}
\printglossary[type=abbreviations,style=mcolindexgroup]
\mainmatter
}
%\makeatletter
\titleslide[\subtitle]{Computer networks}
%\makeatother
\include{chapters/introduction}
\include{chapters/ip}
\include{chapters/transport}
\include{chapters/firewalls}
\include{chapters/ethernet}
\include{chapters/physical}
\include{chapters/applications}
%\mode<article>{\appendix}
%\include{chapters/cisco-pt}
%\chapter{eve-ng}
\mode<article>{
\backmatter
\glsaddall
\setglossarystyle{indexgroup}
\printglossary
%\nocite{*}
\printbibliography[notkeyword={RFC}]
\defbibnote{myprenote}{%
Requests for comments are quite often way too advanced and dry, they sometimes can provide quite useful details.
I have listed the \acsp{RFC} only for completeness.}
\printbibliography[keyword={RFC},title={Requests for comments},prenote=myprenote]
\input{tex/index-references} % Cannot appear on the same page as \printindex thus it must appear before \clearforchapter
\clearforchapter
%\markboth{\indexname}{\textsc{\indexname}}
\markboth{\indexname}{\indexname}
\printindex
\include{tex/colophon}
}
\end{document}