-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.tex
108 lines (83 loc) · 4.05 KB
/
packages.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
\def\LangCS{cs}
\def\LangEN{en}
\def\ConfirmExpr{yes}
%%% TiKz
% Memoize package needs to be loaded as soon as possible, in beamer even before document declaration
\ifx\PackagesIncludeTikz\ConfirmExpr
\usepackage{memoize}
\usepackage{collargs}
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{circuitikz}
\mmzset{memo dir=memoize}
\mmzset{auto={circuitikz}{memoize}}
\mmzset{auto={tikzcdi}{memoize, verbatim}}
\mmzset{auto={tikzpicture}{memoize, verbatim}}
\usetikzlibrary{calc}
\usetikzlibrary{fadings}
\usetikzlibrary{shapes.geometric, arrows, positioning}
\tikzstyle{layerheader} = [rectangle, minimum width=4cm, minimum height=1cm, text centered, draw=black, fill=gray!30]
\tikzstyle{startstop} = [ellipse, minimum width=4cm, minimum height=1cm, text centered, draw=black, fill=red!30]
\tikzstyle{process} = [rectangle, minimum width=4cm, minimum height=1cm, text centered, draw=black, fill=blue!20]
\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!20]
\tikzstyle{arrow} = [thick,->,>=stealth]
\fi
\ifx\DocLanguage\LangCS
\usepackage[czech]{babel}
\babelprovide[transforms = oneletter.nobreak]{czech} % non break on single letter words in czech
\else
\usepackage[english]{babel}
\fi
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern,textcomp}
\usepackage[a-2u]{pdfx} % adding metadata to pdf with .xmpdata file
\usepackage{graphicx} % inserting pictures
\usepackage{caption} % captions of figures
\usepackage{subcaption} % multiple figures in one figure environment
\usepackage{hyperref} % handling of hypertext
\usepackage{tabularx} % table environment
\usepackage{xcolor,colortbl} % more options for colors
\usepackage{textpos} % more precise control over positioning of elements
\usepackage{longtable} % longtable environment to enable multipage tables
\usepackage{fancyhdr} % custom header and footer
\usepackage{xurl} % extension to url handeling, allows linebreaks in urls and more special characters
\usepackage{enumitem} % more options for labeling lists
\usepackage{multicol} % simplest environment to achieve multiple columns
%%% Math packages
\usepackage{pgfplots} % graphs
\usepackage{amsmath} % extension for math
\usepackage{amsthm} % environment for lemmas, proofs, theorems, etc.
\usepackage{amssymb} % math symbols
\usepackage{mathrsfs} % math symbols
\usepackage{mathabx} % math symbols
\usepackage{mathrsfs} % Fancy italic used to denote Hilbert spaces and such
\usepackage{bbm} % blackboard variants of computer Modern fonts useful for number groups, mean value notation
\usepackage{esint} % adds more integrals
\usepackage{accents} % multiple mathematical accents
\usepackage{arcs} % arcs over and under words
\usepackage{steinmetz} % Steinmetz notation for complex numbers
\usepackage{mathtools}
%%% Basic configuration of packages
\def\columnseprulecolor{\color{black}}
\setlength{\columnseprule}{0.3pt}
\hypersetup{pdfborder=0 0 0}
\hypersetup{unicode}
\hypersetup{breaklinks=true}
\pgfplotsset{compat=1.15}
%%% Bibliography
\ifx\PackagesIncludeBib\ConfirmExpr
\usepackage[backend=biber,style=iso-numeric,sortlocale=cs_CZ, url=true]{biblatex}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} % force biblatex to make brackets around numbers
\ExecuteBibliographyOptions{maxcitenames=2} % In citation with full bibliography entry cite just two names at max, per ISO 690
\let\familynameformat=\textsc % Use caps-and-small-caps for family names in ISO 690 style.
% We want to separate multiple authors in citations by commas
% (while we use semicolons in the bibliography as per the ISO standard)
\DeclareDelimFormat[textcite]{multinamedelim}{\addcomma\space}
\DeclareDelimFormat[textcite]{finalnamedelim}{\space and~}
\fi
%%% Minted
\ifx\PackagesIncludeMinted\ConfirmExpr
\usepackage{minted}
\setminted{mathescape,escapeinside=@@,linenos,numbersep=5pt,frame=lines,breaklines,tabsize=2,framesep=2mm}
\fi