blob: 363f6d6975213c88ab1a4bd085c2a72f398bb846 [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
31\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
32\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
33\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
34
35\pgfplotsset{compat=1.16}
36\pgfplotstableset{
37 empty cells with={--}, % replace empty cells with ’--’
38 every head row/.style={before row=\toprule,after row=\midrule},
39 every last row/.style={after row=\bottomrule},
40 set thousands separator={\,}%,
41}
42\sisetup{separate-uncertainty=true}
43\setlength{\parskip}{1em}
44\pagestyle{fancy}
45\fancyhf{}
46
47% Plantilles del notate
48\def\myupbracefill#1{\rotatebox{90}{\stretchto{\{}{#1}}}
49\def\rlwd{.5pt}
50\newcommand\notate[4][B]{%
51 \if B#1\else\def\myupbracefill##1{}\fi%
52 \def\useanchorwidth{T}%
53 \setbox0=\hbox{$\displaystyle#2$}%
54 \def\stackalignment{c}\stackunder[-6pt]{%
55 \def\stackalignment{c}\stackunder[-1.5pt]{%
56 \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
57 \rule{\rlwd}{#3\baselineskip}}}{%
58 \strut\kern9pt$\rightarrow$\smash{\rlap{$~#4$}}}%
59}
60\newcommand\lnotate[4][B]{%
61 \if B#1\else\def\myupbracefill##1{}\fi%
62 \def\useanchorwidth{T}%
63 \setbox0=\hbox{$\displaystyle#2$}%
64 \def\stackalignment{c}\stackunder[-6pt]{%
65 \def\stackalignment{c}\stackunder[-1.5pt]{%
66 \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
67 \rule{\rlwd}{#3\baselineskip}}}{%
68 \strut\kern-9pt$\leftarrow$\smash{\llap{$~#4\quad\;\,$}}}%
69}
70
71\newcommand{\Ham}{\mathcal{H}}
72
73\definecolor{CommentGray}{gray}{0.5}
74\algrenewcommand\algorithmiccomment[1]{{\color{CommentGray} \hfill\(\triangleright\) #1}}%
75
76% To prevent underfull/overfull messages in bibliography
77\usepackage{etoolbox}
78\apptocmd{\sloppy}{\hbadness 10000\relax}{}{}
79
80\usepackage{enumitem}
81\setlist{nolistsep}