avm99963 | f7ad158 | 2021-05-26 00:17:58 +0200 | [diff] [blame] | 1 | \documentclass[11pt,a4paper]{article} |
| 2 | \usepackage[utf8]{inputenc} |
| 3 | \usepackage[catalan]{babel} |
| 4 | \usepackage{fancyhdr} |
| 5 | \usepackage{graphicx} |
| 6 | \usepackage[labelfont=bf]{caption} |
| 7 | \usepackage{siunitx} |
| 8 | \usepackage{geometry} |
| 9 | \geometry{top=25mm} |
| 10 | \usepackage{amsmath} |
| 11 | \usepackage{amsfonts} |
| 12 | \usepackage{booktabs} |
| 13 | \usepackage{chemformula} |
| 14 | \usepackage{multicol} |
| 15 | %\usepackage{hyperref} %TODO: Uncomment |
| 16 | \usepackage{biblatex} |
| 17 | \usepackage{pgfplotstable} |
| 18 | \usepackage{adjustbox} |
| 19 | \usepackage{array} |
| 20 | \usepackage{float} |
| 21 | \usepackage{stackengine} |
| 22 | |
| 23 | \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} |
| 24 | \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} |
| 25 | \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} |
| 26 | |
| 27 | \pgfplotsset{compat=1.16} |
| 28 | \pgfplotstableset{ |
| 29 | empty cells with={--}, % replace empty cells with ’--’ |
| 30 | every head row/.style={before row=\toprule,after row=\midrule}, |
| 31 | every last row/.style={after row=\bottomrule}, |
| 32 | set thousands separator={\,}%, |
| 33 | } |
| 34 | \sisetup{separate-uncertainty=true} |
| 35 | \setlength{\parskip}{1em} |
| 36 | \pagestyle{fancy} |
| 37 | \fancyhf{} |
| 38 | |
| 39 | % Plantilles del notate |
| 40 | \def\myupbracefill#1{\rotatebox{90}{\stretchto{\{}{#1}}} |
| 41 | \def\rlwd{.5pt} |
| 42 | \newcommand\notate[4][B]{% |
| 43 | \if B#1\else\def\myupbracefill##1{}\fi% |
| 44 | \def\useanchorwidth{T}% |
| 45 | \setbox0=\hbox{$\displaystyle#2$}% |
| 46 | \def\stackalignment{c}\stackunder[-6pt]{% |
| 47 | \def\stackalignment{c}\stackunder[-1.5pt]{% |
| 48 | \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{% |
| 49 | \rule{\rlwd}{#3\baselineskip}}}{% |
| 50 | \strut\kern9pt$\rightarrow$\smash{\rlap{$~#4$}}}% |
| 51 | } |
| 52 | \newcommand\lnotate[4][B]{% |
| 53 | \if B#1\else\def\myupbracefill##1{}\fi% |
| 54 | \def\useanchorwidth{T}% |
| 55 | \setbox0=\hbox{$\displaystyle#2$}% |
| 56 | \def\stackalignment{c}\stackunder[-6pt]{% |
| 57 | \def\stackalignment{c}\stackunder[-1.5pt]{% |
| 58 | \stackunder[2pt]{\strut $\displaystyle#2$}{\myupbracefill{\wd0}}}{% |
| 59 | \rule{\rlwd}{#3\baselineskip}}}{% |
| 60 | \strut\kern-9pt$\leftarrow$\smash{\llap{$~#4\quad\;\,$}}}% |
| 61 | } |