Lab moderna: add P1

Change-Id: Ibbbfa656bfcd29eef2afb9dbd78488e4484054b6
diff --git a/quad12/labmoderna/p1b/preamble.tex b/quad12/labmoderna/p1b/preamble.tex
new file mode 100644
index 0000000..c832f74
--- /dev/null
+++ b/quad12/labmoderna/p1b/preamble.tex
@@ -0,0 +1,82 @@
+% !TEX root = main.tex
+\usepackage[utf8]{inputenc}
+\usepackage[catalan]{babel}
+\usepackage{fancyhdr}
+\usepackage{graphicx}
+\usepackage[labelfont=bf, font=small]{caption}
+\usepackage{siunitx}
+\usepackage{geometry}
+\geometry{
+  margin=20mm,
+  heightrounded
+}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{booktabs}
+\usepackage{chemformula}
+\usepackage{hyperref}
+\usepackage[style=english]{csquotes}
+\usepackage{biblatex}
+\usepackage{pgfplotstable}
+\usepackage{adjustbox}
+\usepackage{array}
+\usepackage{float}
+\usepackage{stackengine}
+\usepackage{titling}
+\usepackage{algpseudocode}
+\usepackage{xcolor}
+\usepackage{multicol}
+\usepackage{gincltex}
+\usepackage{makecell}
+
+\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
+\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
+\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
+
+\pgfplotsset{compat=1.16}
+\pgfplotstableset{
+  empty cells with={--}, % replace empty cells with ’--’
+  every head row/.style={before row=\toprule,after row=\midrule},
+  every last row/.style={after row=\bottomrule},
+  set thousands separator={\,}%,
+}
+\sisetup{separate-uncertainty=true}
+\setlength{\parskip}{1em}
+\pagestyle{fancy}
+\fancyhf{}
+
+% Plantilles del notate
+\def\myupbracefill#1{\rotatebox{90}{\stretchto{\{}{#1}}}
+\def\rlwd{.5pt}
+\newcommand\notate[4][B]{%
+  \if B#1\else\def\myupbracefill##1{}\fi%
+  \def\useanchorwidth{T}%
+  \setbox0=\hbox{$\displaystyle#2$}%
+  \def\stackalignment{c}\stackunder[-6pt]{%
+    \def\stackalignment{c}\stackunder[-1.5pt]{%
+      \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
+    \rule{\rlwd}{#3\baselineskip}}}{%
+  \strut\kern9pt$\rightarrow$\smash{\rlap{$~#4$}}}%
+}
+\newcommand\lnotate[4][B]{%
+  \if B#1\else\def\myupbracefill##1{}\fi%
+  \def\useanchorwidth{T}%
+  \setbox0=\hbox{$\displaystyle#2$}%
+  \def\stackalignment{c}\stackunder[-6pt]{%
+    \def\stackalignment{c}\stackunder[-1.5pt]{%
+      \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{%
+    \rule{\rlwd}{#3\baselineskip}}}{%
+  \strut\kern-9pt$\leftarrow$\smash{\llap{$~#4\quad\;\,$}}}%
+}
+
+\newcommand{\Ham}{\mathcal{H}}
+
+\definecolor{CommentGray}{gray}{0.5}
+\algrenewcommand\algorithmiccomment[1]{{\color{CommentGray} \hfill\(\triangleright\) #1}}%
+
+% To prevent underfull/overfull messages in bibliography
+\usepackage{etoolbox}
+\apptocmd{\sloppy}{\hbadness 10000\relax}{}{}
+
+\usepackage{enumitem}
+\setlist{nolistsep}