diff options
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx b/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx index 61a4a4f0b51..71f43141bf6 100644 --- a/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx +++ b/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx @@ -19,7 +19,7 @@ %\fi % \iffalse % Doc-Source file to use with LaTeX2e -% Copyright (C) 2016-17 Cameron Gray <c.gray@bangor.ac.uk>, all rights reserved. +% Copyright (C) 2016-22 Cameron Gray <c.gray@bangor.ac.uk>, all rights reserved. % \fi % \iffalse %<*driver> @@ -40,7 +40,7 @@ \end{document} %</driver> %\fi -%\CheckSum{668} +%\CheckSum{696} %\RecordChanges %\changes{v1.0}{2016/09/26}{Initial version.} %\changes{v1.1}{2016/10/17}{Added two from four exam mode.} @@ -54,10 +54,11 @@ %\changes{v1.2.2}{2017/06/26}{Changed resit description to 'Summer' due to change in regulations.} %\changes{v1.3.0}{2017/10/06}{Replaced exam types with generalised n-from forms, with or without a compulsory Section A.} %\changes{v1.4.0}{2017/11/21}{Updated coversheet to adhere to changed regulations.} +%\changes{v1.5.0}{2022/11/28}{Updated coversheet to adhere to changed regulations.} %\pagestyle{fancy} %\title{Bangor University Computer Science Department\\ Exam Document Class} %\author{Cameron Gray \texttt{<c.gray@bangor.ac.uk>}} -%\date{November 21, 2017} +%\date{November 28, 2022} %\maketitle % %\begin{abstract} @@ -297,11 +298,11 @@ %\end{macrocode} %\fi %\begin{macrocode} -\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] % Based on the Exam document class by Philip S. Hirschhorn % Developed/Adapted for Bangor University by C. Gray @@ -330,7 +331,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.}% @@ -338,6 +341,7 @@ \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)}}% % ******************************************************************* % Class Level Options @@ -348,19 +352,28 @@ \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})}% }% % Exam Type % ------------------------------------------------------------------- \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}{% |