summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls17
1 files changed, 13 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls b/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
index f7163b7e76f..76db594d305 100644
--- a/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
+++ b/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
@@ -39,7 +39,7 @@
%% Right bracket \] Circumflex\^ Underscore\_
%% Grave accent \` Left brace\{ Vertical bar \|
%% Right brace \} Tilde \~}
-\def\version{1.1.2 }
+\def\version{1.1.3 }
\NeedsTeXFormat{LaTeX2e}
@@ -316,18 +316,27 @@ Time allowed:~\timeAllowed~hours
}
\newcommand{\be@adduppoints}[1]{%
+\def\temp{#1}\ifx\temp\empty%
+ \def\temp{0}%
+ \fi%
\ifnumcomp{\value{question}}{=}{\value{lq}}
{% Same question
- \addtocounter{lqp}{#1}%
+ \addtocounter{lqp}{\temp}%
}
{% Moved onto next question
- \be@addpoints{\totalpoints}%
+ \be@addpoints{\value{lqp}}%
\setcounter{lq}{\value{question}}%
\setcounter{lqp}{0}%
- \addtocounter{lqp}{#1}%
+ \addtocounter{lqp}{\temp}%
}%
}
+\let\oldendq\endquestions%
+\renewcommand{\endquestions}{%
+ \addtocounter{question}{-1}%
+ \be@adduppoints{0}%
+}
+
\newcommand{\be@addpoints}[1]{%
\edef\mytemp{{\inDoc}}%
\expandafter\ifstrequal\mytemp{secA}%