diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-29 21:08:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-29 21:08:17 +0000 |
commit | 7dd57cf20865906cdeb390110bd8c9d61ed0016a (patch) | |
tree | 27a29af492f80043b87edd2f444d24ee8da894dd /Master/texmf-dist/tex/latex/bangorexam | |
parent | 4e523780356eba9daec5c742fecd34f5e8402078 (diff) |
bangorexam (29nov22)
git-svn-id: svn://tug.org/texlive/trunk@65140 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bangorexam')
-rw-r--r-- | Master/texmf-dist/tex/latex/bangorexam/bangorexam.cls | 24 |
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}{% |