texlive[65140] Master/texmf-dist: bangorexam (29nov22)
commits+karl at tug.org
commits+karl at tug.org
Tue Nov 29 22:08:17 CET 2022
Revision: 65140
http://tug.org/svn/texlive?view=revision&revision=65140
Author: karl
Date: 2022-11-29 22:08:17 +0100 (Tue, 29 Nov 2022)
Log Message:
-----------
bangorexam (29nov22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/bangorexam/README.txt
trunk/Master/texmf-dist/doc/latex/bangorexam/bangorexam.pdf
trunk/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx
trunk/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
Modified: trunk/Master/texmf-dist/doc/latex/bangorexam/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bangorexam/README.txt 2022-11-29 21:08:03 UTC (rev 65139)
+++ trunk/Master/texmf-dist/doc/latex/bangorexam/README.txt 2022-11-29 21:08:17 UTC (rev 65140)
@@ -1,7 +1,7 @@
Bangor University Computer Science Department
Exam Document Class
Cameron Gray <c.gray at bangor.ac.uk>
-November 21, 2017
+November 28, 2022
Abstract
Starting with the 2016/17 academic year, the Computer Science department at
Modified: trunk/Master/texmf-dist/doc/latex/bangorexam/bangorexam.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx 2022-11-29 21:08:03 UTC (rev 65139)
+++ trunk/Master/texmf-dist/source/latex/bangorexam/bangorexam.dtx 2022-11-29 21:08:17 UTC (rev 65140)
@@ -19,7 +19,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2016-17 Cameron Gray <c.gray at bangor.ac.uk>, all rights reserved.
+% Copyright (C) 2016-22 Cameron Gray <c.gray at 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 at 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}{%
Modified: trunk/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls 2022-11-29 21:08:03 UTC (rev 65139)
+++ trunk/Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls 2022-11-29 21:08:17 UTC (rev 65140)
@@ -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}{%
More information about the tex-live-commits
mailing list.