\newif\ifland
\landtrue
%\landfalse              % Comenta aquesta linia per obtenir el formulari, descomenta-la per veure totes les formules en gran

\ifland
\documentclass[10pt]{article}
\else
\documentclass[12pt]{article}
\fi

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\ifland
\usepackage{fp}
\def\rate{1.08}

\FPeval{\he}{297 * \rate}
\FPeval{\wi}{210 * \rate}

\usepackage[landscape,paperheight=\he mm,paperwidth=\wi mm,margin=0.2in,top=0.2in,bottom=0.2in]{geometry}

\else
\usepackage[margin=1in]{geometry}
\fi

\usepackage[pdftex]{hyperref}
\usepackage{amsmath,amsthm,amssymb,graphicx,mathtools,tikz,hyperref,enumerate}
\usepackage{mdframed,cleveref,cancel,stackengine,mathrsfs,thmtools}
\usepackage{xfrac,stmaryrd,commath,units,titlesec,multicol, esint}
\usepackage{catchfilebetweentags}
\usepackage[catalan]{babel}

\ifland
\titlespacing{\section}{0pt}{5pt}{0pt}
\titlespacing{\subsection}{0pt}{5pt}{0pt}
\titlespacing{\subsubsection}{0pt}{5pt}{0pt}
\setlength{\parindent}{0pt}
\pagenumbering{gobble}
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\bfseries}
\setlength{\columnseprule}{0.5pt}
\fi

\newcommand{\bimplies}{\fbx{$\implies$}}
\newcommand{\bimpliedby}{\fbx{$\impliedby$}}

\newcommand{\n}{\mathbb{N}}
\newcommand{\z}{\mathbb{Z}}
\newcommand{\q}{\mathbb{Q}}
\newcommand{\cx}{\mathbb{C}}
\newcommand{\real}{\mathbb{R}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\A}{\mathbb{A}}
\newcommand{\R}{\mathcal{R}}
\newcommand{\C}{\mathscr{C}}
\newcommand{\Pa}{\mathcal{P}}
\newcommand{\Es}{\mathcal{E}}
\newcommand{\V}{\mathcal{V}}
\newcommand{\bb}[1]{\mathbb{#1}}
\let\u\relax
\newcommand{\u}[1]{\underline{#1}}
\newcommand{\pdv}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
\newcommand{\dv}[3][]{\frac{\dif^{#1} #2}{\dif #3^{#1}}}
\let\k\relax
\newcommand{\k}{\Bbbk}
\newcommand{\ita}[1]{\textit{#1}}
\newcommand\inv[1]{#1^{-1}}
\newcommand\setb[1]{\left\{#1\right\}}
\newcommand{\vbrack}[1]{\langle #1\rangle}
\newcommand{\determinant}[1]{\begin{vmatrix}#1\end{vmatrix}}
\newcommand{\Po}{\mathbb{P}}
\newcommand{\lp}{\left(}
\newcommand{\rp}{\right)}
\newcommand{\ci}{\textbullet\;}
\DeclareMathOperator{\fr}{Fr}
\DeclareMathOperator{\Id}{Id}
\DeclareMathOperator{\ext}{Ext}
\DeclareMathOperator{\inte}{Int}
\DeclareMathOperator{\rie}{Rie}
\DeclareMathOperator{\rg}{rg}
\DeclareMathOperator{\gr}{gr}
\DeclareMathOperator{\nuc}{Nuc}
\DeclareMathOperator{\car}{car}
\DeclareMathOperator{\im}{Im}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\vol}{vol}
\DeclareMathOperator{\grad}{grad}
\DeclareMathOperator{\rot}{rot}
\DeclareMathOperator{\diver}{div}
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\graf}{graf}
\DeclareMathOperator{\tq}{\;t.q.\;}
\DeclareMathOperator{\disc}{disc}
\let\emptyset\varnothing
\renewcommand{\thesubsubsection}{\Alph{subsubsection}}
\setcounter{secnumdepth}{4}

\hypersetup{
    colorlinks,
    linkcolor=blue
}
\def\upint{\mathchoice%
    {\mkern13mu\overline{\vphantom{\intop}\mkern7mu}\mkern-20mu}%
    {\mkern7mu\overline{\vphantom{\intop}\mkern7mu}\mkern-14mu}%
    {\mkern7mu\overline{\vphantom{\intop}\mkern7mu}\mkern-14mu}%
    {\mkern7mu\overline{\vphantom{\intop}\mkern7mu}\mkern-14mu}%
  \int}
\def\lowint{\mkern3mu\underline{\vphantom{\intop}\mkern7mu}\mkern-10mu\int}

\setlength\parindent{0pt}

\begin{document}
\ifland
\raggedright
\begin{multicols}{5}
\fi

\ExecuteMetaData[parcial1.tex]{retallat}
\input{parcial2}

\noindent\makebox[\linewidth]{\rule{\linewidth}{0.5pt}}
\vspace{15pt}
\raggedleft
{\Large Nom: \underline{\hspace{4cm}}}

\ifland
\end{multicols}
\fi

\end{document}
