Hi all, I have completed an exam paper and included code to handle summation of marks and including a line Ans .................................. [2 marks]
There is a total of 17 questions and 75 marks. All works correctly until the final question and \part
I have coded;
\question
The triangle below is \textbf{NOT} drawn to scale.\\
\begin{parts}
\part[3]
Calculate the length of the side marked $x$.\\
\begin{tikzpicture}
\coordinate [label=left:$P$] (p) at (0, 0);
\coordinate [label=right:$Q$] (q) at (3, 0);
\coordinate [label=right:$R$] (r) at (3, 7);
\draw [thick] (p)--(q)--(r)--cycle;
\draw [thick] (2.7, 0)--(2.7, 0.3)--(3, 0.3);
\tkzLabelSegment[below=2pt](p,q){$3 cm$}
\tkzLabelSegment[above left=2pt](p,r){$x cm$}
\tkzMarkAngle[size=1.5](q,p,r)
\tkzLabelAngle[pos=0.9](q,p,r){$52^ \circ$}
\end{tikzpicture}
\vspace{30mm}
\ans
\vspace{10mm}
\part[2]
Calculate the size of the missing angle $PRQ$.
\end{parts}
\vspace*{60mm}
\ans
\part[2] should return Ans ......................... [2 marks] but returns [5 marks]
Although this is not a major problem, I am finding it frustrating that I cannot find the problem since all other questions, marks are displaying correctly and sums correctly on the cover page. It doesn't matter what number I place in the [n] it displays [5 marks]
Any ideas please?