summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls')
-rw-r--r--Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls24
1 files changed, 18 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls b/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
index 386456e85c3..db36cf7a54e 100644
--- a/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
+++ b/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
@@ -39,11 +39,11 @@
%% Right bracket \] Circumflex\^ Underscore\_
%% Grave accent \` Left brace\{ Vertical bar \|
%% Right brace \} Tilde \~}
-\def\version{1.4.0 }
+\def\version{1.5.0 }
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{bangorexam}[2017/11/21 \version C. Gray]
+\ProvidesClass{bangorexam}[2022/11/28 \version C. Gray]
\RequirePackage[dvipsnames]{xcolor}
@@ -67,7 +67,9 @@
\newcommand{\engATypeText}{Answer {\bf Section A} (compulsory) and {\bf any \arabic{qN}} questions from {\bf Section B}.}%
+\newcommand{\engATypeTextSingle}{Answer {\bf Section A} (compulsory) and {\bf one} question from {\bf Section B} only.}%
\newcommand{\welATypeText}{Atebwch {\bf Adran A} (gorfodol) ac {\bf unrhyw \arabic{qN}} gwestiwn o {\bf Adran B}.}%
+\newcommand{\welATypeTextSingle}{Atebwch {\bf Adran A} (gorfodol) ac {\bf un} cwestiwn yn unig o {\bf Adran B}.}%
\newcommand{\engBTypeText}{Answer any \textbf{\arabic{qN}} questions.}%
\newcommand{\welBTypeText}{Atebwch unrhyw \textbf{\arabic{qN}} o'r pedwar cwestiwn.}%
\newcommand{\engCTypeText}{Answer all questions.}%
@@ -75,22 +77,32 @@
\newcommand{\sectionAHeader}{\textbf{SECTION A} --- Answer \textbf{ALL} questions (Total marks \total{sectiona})}%
\newcommand{\sectionBHeader}{\textbf{SECTION B} --- Answer any \textbf{\arabic{qN}} questions (\total{sectionb} marks each)}%
\newcommand{\sectionAOnlyHeader}{Answer \textbf{ALL} questions (Total marks \total{sectiona})}%
+\newcommand{\sectionBHeaderSingle}{{\textbf{SECTION B} --- Answer one question only (\total{sectionb} marks each)}}%
\DeclareOption{welsh}{%
\newcommand{\welsh}{true}%
\renewcommand{\sectionAHeader}{\textbf{ADRAN A} --- Atebwch BOB cwestiwn (Cyfanswm marciau \total{sectiona})}%
-\renewcommand{\sectionBHeader}{\textbf{ADRAN B} --- Atebwch unrhyw \textbf{\arabic{qN}} chwestiwn (\total{sectionb} marc yr un)}%
+v%
\renewcommand{\sectionAOnlyHeader}{Atebwch \textbf{BOB} cwestiwn (Cyfanswm marciau \total{sectiona})}%
}%
\newcounter{qN}
-\newcommand{\nfrom}[1]{\setcounter{qN}{#1}}
+\newcommand{\nfrom}[1]{%
+ \setcounter{qN}{#1}%
+ \ifnum \value{qN}=1%
+ \renewcommand{\engTypeText}{\engATypeTextSingle}%
+ \renewcommand{\welTypeText}{\welATypeTextSingle}%
+ \ifthenelse{\isundefined{\welsh}}{\renewcommand{\sectionBHeader}{{\textbf{SECTION B} --- Answer one question only (\total{sectionb} marks each)}}}%
+ {\renewcommand{\sectionBHeader}{\textbf{ADRAN B} --- Atebwch un cwestiwn yn unig (\total{sectionb} marc yr un)}}%
+ \else%
+ \renewcommand{\engTypeText}{\engATypeText}%
+ \renewcommand{\welTypeText}{\welATypeText}%
+ \fi%
+}
\newcommand{\engTypeText}{}
\newcommand{\welTypeText}{}
\DeclareOption{ab}{%
\newcommand{\examtype}{ab}%
-\renewcommand{\engTypeText}{\engATypeText}%
-\renewcommand{\welTypeText}{\welATypeText}%
\nfrom{2}%
}%
\DeclareOption{aonly}{%