blob: c832f7439e8c92188b96bd01258ee2f654cbace0 [file] [log] [blame]
Adrià Vilanova Martínez52e98432023-03-20 20:00:28 +01001% !TEX root = main.tex
2\usepackage[utf8]{inputenc}
3\usepackage[catalan]{babel}
4\usepackage{fancyhdr}
5\usepackage{graphicx}
6\usepackage[labelfont=bf, font=small]{caption}
7\usepackage{siunitx}
8\usepackage{geometry}
9\geometry{
10 margin=20mm,
11 heightrounded
12}
13\usepackage{amsmath}
14\usepackage{amsfonts}
15\usepackage{booktabs}
16\usepackage{chemformula}
17\usepackage{hyperref}
18\usepackage[style=english]{csquotes}
19\usepackage{biblatex}
20\usepackage{pgfplotstable}
21\usepackage{adjustbox}
22\usepackage{array}
23\usepackage{float}
24\usepackage{stackengine}
25\usepackage{titling}
26\usepackage{algpseudocode}
27\usepackage{xcolor}
28\usepackage{multicol}
29\usepackage{gincltex}
30\usepackage{makecell}
31
32\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
33\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
34\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
35
36\pgfplotsset{compat=1.16}
37\pgfplotstableset{
38 empty cells with={--}, % replace empty cells with ’--’
39 every head row/.style={before row=\toprule,after row=\midrule},
40 every last row/.style={after row=\bottomrule},
41 set thousands separator={\,}%,
42}
43\sisetup{separate-uncertainty=true}
44\setlength{\parskip}{1em}
45\pagestyle{fancy}
46\fancyhf{}
47
48% Plantilles del notate
49\def\myupbracefill#1{\rotatebox{90}{\stretchto{\{}{#1}}}
50\def\rlwd{.5pt}
51\newcommand\notate[4][B]{%
52 \if B#1\else\def\myupbracefill##1{}\fi%
53 \def\useanchorwidth{T}%
54 \setbox0=\hbox{$\displaystyle#2$}%
55 \def\stackalignment{c}\stackunder[-6pt]{%
56 \def\stackalignment{c}\stackunder[-1.5pt]{%
57 \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
58 \rule{\rlwd}{#3\baselineskip}}}{%
59 \strut\kern9pt$\rightarrow$\smash{\rlap{$~#4$}}}%
60}
61\newcommand\lnotate[4][B]{%
62 \if B#1\else\def\myupbracefill##1{}\fi%
63 \def\useanchorwidth{T}%
64 \setbox0=\hbox{$\displaystyle#2$}%
65 \def\stackalignment{c}\stackunder[-6pt]{%
66 \def\stackalignment{c}\stackunder[-1.5pt]{%
67 \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
68 \rule{\rlwd}{#3\baselineskip}}}{%
69 \strut\kern-9pt$\leftarrow$\smash{\llap{$~#4\quad\;\,$}}}%
70}
71
72\newcommand{\Ham}{\mathcal{H}}
73
74\definecolor{CommentGray}{gray}{0.5}
75\algrenewcommand\algorithmiccomment[1]{{\color{CommentGray} \hfill\(\triangleright\) #1}}%
76
77% To prevent underfull/overfull messages in bibliography
78\usepackage{etoolbox}
79\apptocmd{\sloppy}{\hbadness 10000\relax}{}{}
80
81\usepackage{enumitem}
82\setlist{nolistsep}