\enableregime[utf]
\setupbodyfont [cmr,11pt]
\mainlanguage[ca]
\setuppagenumbering [location={footer}]
\setuppapersize [A4]
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]
\setuphead[title][align={center},style={\sca}, after={\medskip}]
\setuphead[subject][after={\hrule\medskip}]

% AMSTHM
\defineenumeration
  [exercici]
  [text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]


% Heads and footers
\setupfootertexts[\pagenumber]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}]

% underline
\setupunderbar[alternative=b]


\starttext

\title{Examen de Matemàtiques}

\bigskip
\startframedtext[width=broad, location=middle, before={}]
\startalignment[middle]
Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B
\stopalignment
\stopframedtext

\subject{Part comuna}

\startcolumns

\startexercici Resoleu emprant el mètode de substitució:

\placeformula
\startformula
\startmathalignment
\NC x + 3y \NC = 9 \NR[+]
\NC 2x - y \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici

\startexercici Resoleu pel mètode de reducció:
\placeformula
\startformula
\startmathalignment
\NC 3x + 7y \NC = -23 \NR[+]
\NC 5x + 4y \NC = -23 \NR
\stopmathalignment
\stopformula

\stopexercici

\stopcolumns


\subject{Opció A}

\startexercici Resoleu pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+]
\NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici


\subject{Opció B}

\startmixedcolumns

\startexercici Resoleu aquest sistema pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC -2x - y \NC = -11 \NR[+]
\NC 3x - y \NC = 9 \NR
\stopmathalignment
\stopformula

\stopexercici
%\bigskip

\column

\startexercici Resoleu el sistema següent pel mètode que considereu oportú:

\placeformula
\startformula
\startmathalignment
\NC 2x + \frac{5y}{2} \NC = 7 \NR[+]
\NC -3x + y \NC = -1 \NR
\stopmathalignment
\stopformula
\stopexercici

\stopmixedcolumns

\stoptext
