diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls | 106 |
1 files changed, 73 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls index b8571e27b00..3aa93735a2c 100644 --- a/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls +++ b/Master/texmf-dist/tex/latex/uantwerpendocs/uantwerpenphdthesis.cls @@ -26,9 +26,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{uantwerpenphdthesis} - [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@filled \DeclareOption{filled}{\@filledtrue} \newif\if@cameraready @@ -43,7 +41,7 @@ \RequirePackage[paperwidth=180mm,paperheight=260mm, top=2.5cm,bottom=2.5cm,left=2.6cm,right=1.8cm,twoside] {geometry} -\RequirePackage{expl3} +\RequirePackage[check-declarations]{expl3} % I use this during debug phase \RequirePackage{xparse} \RequirePackage{iftex} \RequirePackage{xstring} @@ -52,24 +50,43 @@ \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} \usepackage{ean13isbn} \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} +\newcommand\insettext[1]{ + \textcolor{basecolor}{ + \begin{tabular}{@{\hskip3ex\textcolor{maincolor}{\vrule width 2.5pt}\hskip3ex\large\bfseries}p{0.88\textwidth}} + \strut #1 + \end{tabular} + } +} +\newcommand\insetquote[1]{ + \insettext{ + \begin{tikzpicture}[scale=0.65] + \fill[green!60!black] (0.4,0) -- (0.5,0) -- (0.75,-0.15) -- (0.75,0) -- + (0.9,0) arc(-90:0:0.1) -- (1,0.65) arc(0:90:0.1) -- (0.1,0.75) arc + (90:180:0.1) -- (0,0.1) arc(-180:-90:0.1) -- cycle; + \foreach \x in {0.35,0.7} { + \begin{scope}[shift={(\x,0.425)},scale=0.25] + \fill[white] (0,0) circle[radius=0.5]; + \fill[white] (0.5,0) arc(0:-90:1) -- + (-0.5,-0.725) arc(-90:0:0.725) -- cycle; + \end{scope} + } + \end{tikzpicture}\\ + #1 + } +} \if@cameraready \RequirePackage[cam,center,width=21truecm,height=29.7truecm]{crop} \fi @@ -119,9 +136,10 @@ } } {} + \uantwerpendocspropread{degree} + \uantwerpendocspropread{doctype} \makeatletter } - \newcommand*{\facultyacronym}[1]{ \PackageError{uantwerpendocs} {The '\protect\facultyacronym{}' macro is no longer available. Use @@ -142,7 +160,6 @@ } \newcommand\affiliation[1]{\renewcommand\@affiliation{#1}} \ExplSyntaxOn - \seq_new:N \g__uantwerpendocs_supervisors \seq_new:N \g__uantwerpendocs_supervisorswithaffiliation \cs_new:Nn \__uantwerpendocs_addsupervisor:nn { @@ -152,24 +169,26 @@ \NewDocumentCommand{\supervisor}{mm}{ \__uantwerpendocs_addsupervisor:nn { #1 } { #2 } } -\NewDocumentCommand{\jointsupervisors}{m}{ - \seq_use:Nn \g__uantwerpendocs_supervisors { #1 } +\NewDocumentCommand{\jointsupervisors}{mm}{ + \seq_use:Nnnn \g__uantwerpendocs_supervisors { #2 } { #1 } { #2 } } -\NewDocumentCommand{\jointsupervisorswithaffiliation}{m}{ - \seq_use:Nn \g__uantwerpendocs_supervisorswithaffiliation { #1 } +\NewDocumentCommand{\jointsupervisorswithaffiliation}{mm}{ + \seq_use:Nnnn \g__uantwerpendocs_supervisorswithaffiliation { #2 } { #1 } { #2 } } -\NewDocumentCommand{\supervisorsname}{}{ - \if_int_compare:w \seq_count:N \g__uantwerpendocs_supervisors > 1 - \uantwerpendocsprop{supervisorsname} +\NewDocumentCommand{\supervisorsname}{m}{ + \if_int_compare:w \seq_count:N \g__uantwerpendocs_supervisors > 2 + \uantwerpendocsprop{supervisorsname} #1 \else: - \if_int_compare:w \seq_count:N \g__uantwerpendocs_supervisors = 1 - \uantwerpendocsprop{supervisorname} + \if_int_compare:w \seq_count:N \g__uantwerpendocs_supervisors = 2 + \uantwerpendocsprop{supervisorname} #1 \else: \fi: \fi: } \AtBeginDocument{ + \seq_gpush:Nn \g__uantwerpendocs_supervisors {} \seq_greverse:N \g__uantwerpendocs_supervisors + \seq_gpush:Nn \g__uantwerpendocs_supervisorswithaffiliation {} \seq_greverse:N \g__uantwerpendocs_supervisorswithaffiliation } \ExplSyntaxOff @@ -213,6 +232,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 @@ -274,20 +314,20 @@ \vspace*{1ex}% \begin{flushright} \makebox[0pt][l]{\rule[-0.4em]{10cm}{1.8em}}\textcolor{white} - {\bf\LARGE~\chaptername~} + {\LARGE\textbf{~\chaptername~}} \raisebox{-24pt}{ \begin{tikzpicture} \foreach \theta in {0,5,...,355} { \node[color=white] at (\theta:0.025) - {\bf\fontsize{72}{12}\selectfont\thechapter}; + {\fontsize{72}{12}\selectfont\textbf{\thechapter}}; } \node[color=gray] at (0,0) - {\bf\fontsize{72}{12}\selectfont\thechapter}; + {\fontsize{72}{12}\selectfont\textbf{\thechapter}}; \end{tikzpicture} }\hspace*{-8pt} \par\nobreak \interlinepenalty\@M - \bf\huge\textcolor{darkgray}{\rule[-0.5ex]{0em}{2.6ex}~#1} + \huge\textbf{\textcolor{darkgray}{\rule[-0.5ex]{0em}{2.6ex}~#1}} \par\nobreak \end{flushright} \rule{\textwidth}{1pt} @@ -300,7 +340,7 @@ \def\@makeschapterhead#1{% \vspace*{1ex}% \begin{flushright} - \bf\LARGE\textcolor{darkgray}{\rule[-0.5ex]{0em}{2.6ex}~#1} + \LARGE\textbf{\textcolor{darkgray}{\rule[-0.5ex]{0em}{2.6ex}~#1}} \end{flushright} \rule{\textwidth}{1pt} \vspace{5\p@}\par @@ -362,8 +402,8 @@ (SN) at (2.55,4.9) { \begin{tabular}{@{}l@{~\,}p{11.5cm}} - \textsf{\supervisorsname} - & \textsf{\textbf{\jointsupervisors{ | }}} + \textsf{\supervisorsname{}} + & \textsf{\textbf{\jointsupervisors{ | }{}}} \end{tabular} }; @@ -404,8 +444,8 @@ \hfill \begin{minipage}[b]{0.4\textwidth} \flushright - \supervisorsname\\ - \jointsupervisors{\\} + \supervisorsname{\\} + \jointsupervisors{\\}{} \end{minipage} \end{center} \clearpage @@ -413,8 +453,8 @@ \textbf{\uantwerpendocsprop{jurychairmanname}}\hfill\break \@jurychairman{}\ifdefvoid{\@jurychairmanaff}{}{, \@jurychairmanaff}\\ \hfill\break - \textbf{\supervisorsname}\hfill\break - \jointsupervisorswithaffiliation{\\}\\ + \textbf{\supervisorsname{}}\hfill\break + \jointsupervisorswithaffiliation{\\}{\\} \hfill\break \textbf{\uantwerpendocsprop{jurymembersname}}\hfill\break \jointjurymembers{\\} |