diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-04 20:28:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-04 20:28:54 +0000 |
commit | 0a50feb91cf2dd22fe5d98be0ab085b4262c656e (patch) | |
tree | c29b7e1050afea92282b352c08623e021107e033 /Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls | |
parent | 0b1a953c4329c6015ac59aa773775496f8e6c5d2 (diff) |
uantwerpendocs (4oct21)
git-svn-id: svn://tug.org/texlive/trunk@60696 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls index 4172a414c01..827087e2a99 100644 --- a/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls +++ b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenexam.cls @@ -26,9 +26,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{uantwerpenexam} - [2021/08/03 v4.1 .dtx skeleton file] -\def\fileversion{4.1} -\def\filedate{2021/08/03} + [2021/10/04 v4.2 .dtx skeleton file] \newif\if@examiner \DeclareOption{examiner}{\@examinertrue} \input{uantwerpencommonoptions.clo} @@ -39,7 +37,7 @@ \addtolength{\parskip}{0.75\baselineskip} \setcounter{secnumdepth}{3} \RequirePackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} -\RequirePackage{expl3} +\RequirePackage[check-declarations]{expl3} % I use this during debug phase \RequirePackage{xparse} \RequirePackage{iftex} \RequirePackage{xstring} @@ -48,20 +46,15 @@ \IfFileExists{shellesc.sty}{\RequirePackage{shellesc}}{} \newcommand{\@emptymacro}{} \RequirePackage{graphicx} +\RequirePackage{soul} \RequirePackage[export]{adjustbox} \RequirePackage{color} \RequirePackage{tikz} -\usetikzlibrary{positioning} +\usetikzlibrary{positioning,calc} \RequirePackage{eso-pic} \RequirePackage{uantwerpencolorlogoscheme} \RequirePackage{fancyhdr} -\definecolor{uacorpbord}{cmyk} {0.00,1.00,0.60,0.37} -\definecolor{uacorpblue}{cmyk} {1.00,0.25,0.00,0.50} -\definecolor{uacorplightblue}{cmyk}{1.00,0.00,0.08,0.13} -\definecolor{uacorporange}{cmyk} {0.00,0.32,1.00,0.09} -\definecolor{uaftifresh}{cmyk} {0.34,1.00,0.00,0.00} -\definecolor{uaftisober}{cmyk} {0.10,1.00,0.00,0.49} \definecolor{lightgray}{cmyk} {0.00,0.00,0.00,0.05} \definecolor{darkgray}{cmyk} {0.00,0.00,0.00,0.80} \definecolor{watermark}{cmyk} {0.00,0.00,0.00,0.05} @@ -111,9 +104,10 @@ } } {} + \uantwerpendocspropread{degree} + \uantwerpendocspropread{doctype} \makeatletter } - \newcommand*{\facultyacronym}[1]{ \PackageError{uantwerpendocs} {The '\protect\facultyacronym{}' macro is no longer available. Use @@ -140,7 +134,9 @@ \if_int_compare:w \seq_count:N \g__uantwerpendocs_lecturers > 1 \uantwerpendocsprop{lecturersname} \else: + \if_int_compare:w \seq_count:N \g__uantwerpendocs_lecturers > 0 \uantwerpendocsprop{lecturername} + \fi \fi: } \AtBeginDocument{ @@ -155,6 +151,27 @@ {See the uantwerpendocs manual} } \newcommand*\degree[1]{\renewcommand*\@degree{#1}} +\newcommand*\@bamadoctype{ + \PackageError{uantwerpendocs} + {Please, specify the offical document type, either using + the '\protect\bamadoctype{}' macro or the '\protect\bamadegree{}' + macro in the preamble of your document.} + {See the uantwerpendocs manual}} +\newcommand*\bamadoctype[1]{ + \renewcommand*\@bamadoctype{\uantwerpendocsdoctype{#1}} +} +\ExplSyntaxOn +\NewDocumentCommand{\bamadegree}{m}{ + \seq_new:N \l__uantwerpendocs_degreechunks + \regex_extract_all:nnN { [^-]+ } { #1 } \l__uantwerpendocs_degreechunks + \bamadoctype{\seq_item:Nn\l__uantwerpendocs_degreechunks {2} - \seq_item:Nn\l__uantwerpendocs_degreechunks {3}} + \degree{\uantwerpendocsdegree{ + \seq_item:Nn\l__uantwerpendocs_degreechunks {1} - + \seq_item:Nn\l__uantwerpendocs_degreechunks {2} - + \seq_item:Nn\l__uantwerpendocs_degreechunks {3} - + \seq_item:Nn\l__uantwerpendocs_degreechunks {4} }} +} +\ExplSyntaxOff \newcommand*{\programme}[3]{ \PackageError{uantwerpendocs} {The '\protect\programme{}{}{}' macro is no longer available. Use |